Fancy Harnesses Make Coding Agents More Expensive, But Not Better, Study Finds
A new study by Liu and Han, reported by The Decoder, challenges the idea that elaborate coding-agent harnesses deliver better results. The authors argue that earlier comparisons, some showing gaps above 20 points, usually relied on single runs. On SWE-bench Verified, simply rerunning an identical setup can shift scores by as much as six points. Zhipu AI's advertised 2.4-point edge over Claude Code for its own harness therefore sits inside the noise. The researchers tested five open-weight models (Qwen3.6, Qwen3.8, Deepseek-V4-Flash, GLM-5.3-Flash and HY4-Preview) in three shipped harnesses: Claude Code, OpenCode and mini-SWE-agent. The last is a minimal setup giving the model just a Bash tool and no context management. Claude Opus 5 ran only in Claude Code as a reference. The work used the 45 hardest SWE-bench Verified tasks plus a pool of 447 more, with some configurations repeated to estimate noise. Runs were done offline after early tests showed 71 percent of Deepseek and Qwen attempts fetching the correct fix directly from GitHub, while Claude models almost never did. The authors do not claim any training contamination. On the larger pool, Claude Code and mini-SWE-agent landed less than two points apart, which is statistically equivalent. On the hard subset, harness differences amounted to two to five tasks, while a plain rerun moved results by up to three. Task outcomes flipped in 13 percent of cases between reruns and also 13 percent between harnesses, versus 22 percent when the model changed. Small samples also limit detection: 45 tasks catch even a 13-point gap only half the time. The one real harness effect was OpenCode's deficit of up to nine points on the large pool. Roughly half traces to how it handles output-limit overruns mid-reasoning, where Claude Code nudges the model to continue and OpenCode ends the step. OpenCode models also tended to stop working earlier, and its search tool failed offline. mini-SWE-agent more often hit context-window limits. Cost varied far more than accuracy. For the same model and tasks, one task could cost up to three times as much depending on the harness. The driver was the system prompt and tool definitions resent every step: about 16,600 tokens for Claude Code, roughly 7,000 for OpenCode, and under 1,000 for mini-SWE-agent. With GLM-5.3-Flash, Claude Code cost nearly double mini-SWE-agent, while with Deepseek-V4-Flash extra steps made the two roughly equal. Other findings: Deepseek's own harness showed no home advantage and was the most expensive; Opus 5 performed identically after tools were removed from Claude Code; and disabling thinking was the only condition where harness choice mattered, causing eleven-point drops in certain model-harness pairings. A Terminal-Bench 2.1 cross-check showed the same pattern. The authors conclude that harnesses buy fewer ways to fail and a bigger bill, not higher pass rates, and recommend publishing a same-setup rerun with every harness comparison. For the industry, the study suggests vendor harness-superiority claims deserve skepticism, and cost efficiency may become the more meaningful differentiator.
A study by Liu and Han, covered by The Decoder, questions whether sophisticated coding-agent harnesses actually improve performance. The authors say many prior comparisons, including those reporting gaps over 20 points, were drawn from single runs. Their own measurements show that rerunning the identical configuration on SWE-bench Verified can move scores by up to six points, so many reported differences are indistinguishable from randomness. Zhipu AI's claimed 2.4-point lead for its harness over Claude Code falls well inside that range. Harnesses are also wired into benchmarks differently, which further weakens cross-harness comparisons.
Study design
The team evaluated five models, Qwen3.6, Qwen3.8, Deepseek-V4-Flash, GLM-5.3-Flash and HY4-Preview, across three harnesses in their shipped form: Claude Code, OpenCode and mini-SWE-agent. mini-SWE-agent offers only a Bash tool and no context management. Claude Code and OpenCode provide specialized file and search tools, long system prompts and automatic history compression. Claude Opus 5 served as a reference and was run only in Claude Code. The tasks were the 45 hardest SWE-bench Verified problems plus 447 additional ones, and several setups were repeated to quantify noise.
All final runs were offline. In early web-enabled trials, 71 percent of Deepseek and Qwen attempts retrieved the right patch from GitHub rather than solving the problem, whereas Claude models rarely did. The authors discarded those results and explicitly do not allege training on test data.
Harness choice behaves like noise
On the 447-task pool, Claude Code and mini-SWE-agent, the heaviest and lightest options, were less than two points apart for both models tested, well within a five-point equivalence band. Even on the hardest 45 tasks, where the authors expected the largest harness effect, differences were two to five solved tasks per model, while a rerun alone could shift three. The leader changed between runs.
Task-level flip rates reinforce this. The median share of tasks changing outcome was 13 percent for a same-harness rerun, 13 percent for a harness swap, and 22 percent for a model swap. Which tasks a harness wins looks like a coin flip. Statistical power is another constraint: with 45 tasks, a 13-point gap is detected only half the time, and about five points become reliably detectable at 447 tasks. Many advertised gains fall below these thresholds.
OpenCode's deficit
The single consistent effect was OpenCode trailing by up to nine points on the large pool. About half the gap comes from an output limit: when a model exceeds it mid-reasoning, Claude Code prompts continuation, while OpenCode ends the step and the attempt usually fails. Copying a continuation prompt into OpenCode did not help, since overflows rarely recur on the same task. The rest is unexplained, though models under OpenCode simply stopped sooner. Local runs also imposed a tighter time limit on OpenCode, an uncontrolled variable. Its search tools also tried downloading a binary on first use and broke offline. mini-SWE-agent, lacking context management, hit context-window limits, mostly on tasks other harnesses also failed.
Where the money goes
Harnesses differ much more in price than accuracy. With identical models, tasks and price lists, a task could cost up to three times more depending on harness. Tool outputs were similar in size across harnesses. The difference came from system prompts and tool descriptions resent at each step: around 16,600 tokens for Claude Code, about 7,000 for OpenCode and under 1,000 for mini-SWE-agent. Claude Code also retains model reasoning in history, per the authors' reverse engineering. After the first call, context grows at comparable rates.
Baseline prompt size is multiplied by step count, so the dominant factor depends on the model. With GLM-5.3-Flash, a Claude Code trial cost 1.81 yuan versus 0.56 yuan for OpenCode and Claude Code cost nearly twice mini-SWE-agent. With Deepseek-V4-Flash, mini-SWE-agent took so many extra steps that its cost matched Claude Code's. Cached-token discounts narrow gaps but don't change the ordering.
Other observations
Deepseek's own harness gained nothing from pairing with its own model and was the costliest. Claude Opus 5 produced identical results when tools were stripped from Claude Code, and a year-old Claude Code version solved a similar number of tasks at under half the cost because Extended Thinking was not default then. Thinking was the only factor where harness choice changed outcomes: without it, Qwen3.6 in mini-SWE-agent lost eleven points while Claude Code and OpenCode stayed within noise, and HY4-Preview lost eleven points in Claude Code. The authors admit the grid is too small to explain these interactions.
Caveats and implications
The study mainly uses one benchmark, though a small Terminal-Bench 2.1 check showed the same pattern, and the top closed model ran in just one harness. The authors summarize that harnesses buy fewer failure modes and a larger bill, not better pass rates, and urge researchers to publish a same-setup rerun alongside every harness comparison. For the market, this implies that vendors touting harness-driven benchmark leads should be scrutinized, that lean scaffolds can be competitive on cost, and that model quality and thinking configuration matter more than elaborate agent tooling.