Your coding agent harness changes the bill more than the score
With one model, 11 of 13 harnesses score 20 to 26 while a task costs $0.11 to $0.62. Rule out bad pairings, then take the cheapest tie.
Senior Full-Stack Engineer- Published
- 9 minReading time
- Artificial IntelligenceCategory
On 24 November Artificial Analysis (opens in a new tab) put Codex first out of 13 coding agent harnesses with GPT-6 Luna, and last out of 13 with GLM-5.3-Flash. The program and the tests were the same and only the model changed. A week earlier a developer on Hacker News (opens in a new tab), who runs one built for a single domain, wrote that the harness "appears to matter more than the model". I went through the data behind two public leaderboards and a paper that repeated its own runs to see what an off-the-shelf harness moves. Most of it was money.
TL;DR: A coding agent harness changes the bill more than the score. With GPT-6 Luna, 11 of 13 harnesses score 20 to 26, while a task costs $0.11 in one and $0.62 in another. Drop the pairings that break your model, then take the cheapest harness among the ones that tie. Check again when you change model.
Does the coding agent harness change the score?
Running the same coding agent harness twice flips almost as many results as swapping it for another. The harness is the program around the model, such as Claude Code, Codex, OpenCode or Pi: it writes the system prompt, offers the tools and decides what the model sees on each step.
A paper from Shandong University (opens in a new tab), revised on 18 November, ran seven models through Claude Code, mini-SWE-agent and OpenCode and then repeated the runs with nothing changed. On its 45 hardest tasks, a rerun flipped the result of 13% of them. Swapping the harness flipped 13%. Swapping the model flipped 26%. The paper is called "What Does a Harness Buy? Tokens, Mostly".
The Harness Leaderboard (opens in a new tab) on Hugging Face runs five open models through 12 harnesses, three attempts on each of 198 tasks. A rerun there flips 23.8% of tasks, a new harness 27.1% and a new model 33.9%.
So be careful with a screenshot where one tool beats another by three points on the same model. The paper says one run over 445 tasks can't reliably detect a gap under about 5 points. Ask whoever posted it for the second run.
How much does the harness change the bill?
The harness changes the bill by up to 5.4 times on the same model, from $0.114 to $0.616 a task. These are Artificial Analysis's numbers at maximum reasoning effort, read on 25 November. The score averages FrontierCode-AA 2.0, Terminal-Bench 4.1 and SWE-Atlas-QnA-AA, out of 100. The cost is the average API spend per task, passed or failed:
| Harness | GPT-6 Luna score | GPT-6 Luna cost | GLM-5.3-Flash score | GLM-5.3-Flash cost |
|---|---|---|---|---|
| Codex | 25.9 | $0.19 | 27.8 | $0.59 |
| mini-swe-agent | 25.1 | $0.16 | 37.9 | $0.65 |
| Muse Code | 23.2 | $0.62 | 32.4 | $0.80 |
| OpenCode | 22.9 | $0.16 | 38.5 | $0.60 |
| Claude Code | 22.2 | $0.18 | 38.9 | $0.58 |
| Pi | 21.2 | $0.11 | 29.8 | $0.41 |
| Kimi Code CLI | 20.4 | $0.34 | 37.5 | $0.56 |
Muse Code cost three times as much as Codex with GPT-6 Luna and scored lower.
That range includes harnesses that score badly, and giving up early is cheap. I wanted the price of a tie. The Harness Leaderboard marks which harnesses its statistics can't tell apart from the leader (a paired bootstrap over the 198 tasks), so I took the data behind its page (version 0.1.11, 25 November) and compared the cost per attempt inside each tied group:
| Open model | Tied for first | Cheapest of them | Priciest of them | Gap |
|---|---|---|---|---|
| GLM-5.3-Flash | 9 of 12 | Pi, $0.098 | DeepSeek Harness, $0.209 | 2.1x |
| DeepSeek-V4.1-Flash | 7 of 12 | Codex, $0.094 | mini-swe-agent, $0.128 | 1.4x |
| Inkling 2 Mini | 6 of 12 | Codex, $0.082 | mini-swe-agent, $0.108 | 1.3x |
| Flint | 5 of 12 | DeepSeek Harness, $0.202 | Kimi Code, $0.298 | 1.5x |
| Ripple-65B-Preview | 3 of 12 | Codex, $1.58 | Kimi Code, $1.93 | 1.2x |
On GLM-5.3-Flash that leaves nine harnesses, scoring 60.2 to 62.8, and the dearest costs twice the cheapest. Codex is the cheapest of the tied group on three of the five models, and last on GLM-5.3-Flash, where Artificial Analysis put it too with a different set of tasks.
Why does the same model cost more in another harness?
The same model costs more when the harness makes it read more. Every step sends the conversation again, so the paper splits the bill into three parts: the text a harness sends with every step, what it keeps in the history, and how many steps the model takes.
The paper counted the first part. Claude Code sends 16.6k tokens of system prompt and tool definitions with every step, OpenCode 7.0k and mini-SWE-agent 0.8k. A small opening doesn't guarantee a small bill. With DeepSeek-V4-Flash, mini-SWE-agent took 141 steps where Claude Code took 104, and the lightest harness used the most tokens.
Steps explain the outlier above too. With GPT-6 Luna, Muse Code averaged 259 steps and 26.9 million tokens per task. Pi averaged 59 steps and 5.6 million.
When does the harness change the score?
The harness changes the score when it and the model don't fit. These are three pairings to avoid, as measured this month:
| Pairing | What happened | Where |
|---|---|---|
| GLM-5.3-Flash in Codex | Last of 13, 27.8 against 38.9 in Claude Code | Artificial Analysis |
| Inkling 2 Mini in fx (Vercel Labs) | Last of 12, 15.9 against 48.5 in OpenCode | Harness Leaderboard |
| Qwen3.8-27B in OpenCode | 8 to 9 points behind the other two | Shandong paper |
The causes found so far sit in the connection between the two. The paper points to replies cut off at the output limit, where Claude Code asked the model to continue and OpenCode didn't. Artificial Analysis found that the definition of Codex's shell tool alone switches GLM-5.3-Flash into terse fragments of reasoning (opens in a new tab), in 12 of 12 replays. A new release can fix faults like these, so write the date and the version next to any pairing you rule out.
The two boards disagree about Pi. It ties for first with GLM-5.3-Flash on the Harness Leaderboard, at low and high effort. On Artificial Analysis, at maximum effort, it comes second from last. When two boards split, trust the one closer to the effort and the kind of task you run.
Does the harness matter with Claude Opus 5.5?
Three harnesses gave Opus 5.5 nearly the same score at nearly the same cost. Under the Artificial Analysis post someone replied that Luna and GLM "arent that interesting here" and asked for frontier models. The paper has one: Opus 5.5 passed 36 to 38 of its 45 hardest tasks in all three harnesses, at $0.39 to $0.42 a task. That's one frontier model on one task set. If it's yours, pick the harness you like working in.
Every cost in this post is an API price, paid per token. A flat subscription hides the difference from your invoice.
How do you pick a harness for your model?
Use the boards for the score and your own repo for the bill, because a small trial can measure only the second one. In the paper, 45 tasks caught a gap of a dozen points only about half the time. Five tasks of yours will crown whoever got lucky. Cost repeats better: for the two models where the paper saw large gaps, a second run put the three harnesses in the same order.
- Find your model on the boards. Cross out the harnesses outside the first group on one and at the bottom of the other.
- Keep two or three of what's left, and pin their versions. Where the boards split, as on Pi, go by the one that ran at your effort.
- Give each one its own API key, with the same model and the same reasoning effort.
- Run five real tasks from your repo in each, and read the spend per key.
- Take the cheapest one you'd enjoy using all day.
When should you repeat this?
Repeat it when you change model, and when your harness ships a major version. OpenCode was last or next to last on every model of the Harness Leaderboard on 2 November. On 9 November version 2 replaced version 1.19, talking to the model in its own format instead of through a translator, and it now leads the average of all five.
Frequently asked questions
What is a coding agent harness?
A coding agent harness is the software around a language model that turns it into an agent. It writes the system prompt, gives the model tools such as a shell and file edits, runs the calls, trims the history and decides when to stop. Claude Code, Codex, OpenCode and Pi are harnesses.
Is Claude Code more expensive than Codex?
It depends on the model. Artificial Analysis measured Claude Code at $0.18 a task and Codex at $0.19 with GPT-6 Luna, close to a tie. With GLM-5.3-Flash both cost about $0.59, but Claude Code scored 38.9 and Codex 27.8. Neither test used a Claude model.
Should you use the harness your model's vendor makes?
Try it first, then check the price. GPT-6 Luna did score highest in OpenAI's Codex on Artificial Analysis. On the Harness Leaderboard, DeepSeek's own harness ties for first with DeepSeek-V4.1-Flash and costs $0.125 an attempt, while Codex sits in the same tie at $0.094.
What to do next
Open the provider dashboard and find what one ordinary task cost you this week. Then run that task in one other harness from your model's first group, with its own key, and compare the two numbers. If they're close, stay where you are and skip the harness rankings until you change model. If one is half the other, run your other four tasks in both. Move if the saving holds, and leave the score to the boards.
More posts like this are on the gabs.app blog. I'm a senior full-stack engineer and my work is on gabs.app; if you're hiring, the contact form comes straight to me.