Same model, same tasks, 2.1x the bill: what harness tax means for builders
With the same model on Terminal-Bench 4.0, Claude Code cost 2.1 times as much as the minimal Pi agent, with no detectable gap in success, Berkeley researchers found. The model still sets capability. The harness sets cost and control, which is why I build my own.
On 3 December researchers at UC Berkeley published HarnessTax, a study of how much the harness changes what a coding agent costs and how often it succeeds1. A harness is the code around a model: the prompt, the tools, the loop and the limits. With Claude Fable 5 on Terminal-Bench 4.0, a set of long command-line tasks, Claude Code cost 2.1 times as much as Pi, a small open-source agent with four tools, and the paper found no statistically detectable gap in success rate1. My short version has been "the model isn't the bottleneck, the harness is", and I've argued that the harness matters more than the model. This study makes me narrow that. On capability, the model still matters far more. On cost and control, the harness is where the decisions sit, and that is the best argument I know for building your own. I'd change my mind if the heavy harnesses started buying a measurable pass rate with their extra tokens, or if off-the-shelf tools let you decide what goes into each call.
The study covers eight models, three main harnesses (Claude Code, Codex CLI and Pi) and four benchmarks. Across 72 comparisons of two harnesses on the same model and benchmark, cost gaps were statistically detectable in 51, and 37 of those held after correcting for running many tests at once. Success-rate gaps were detectable in 2, and none held after the correction1.
Harness comparisons with the same model and benchmark where the gap was statistically detectable at the 5% level, before correction for multiple tests (HarnessTax, UC Berkeley, 3 December 2026).
The paper also shows where the extra money goes. On short tasks it goes mostly into the fixed prefix that every call carries. Claude Code's first call held about 32,000 input tokens on Terminal-Bench 4.0, mostly tool definitions, while the task itself took about 600. With Fable 5 on SWE-bench Lite, a set of real GitHub issues, Claude Code never called 18 of its 23 tools in any run, yet their definitions made up 31% of its cost, and tool definitions and instructions accounted for 94% of its extra cost over Pi. On long tasks the bill comes from context piling up. On Terminal-Bench 4.0, accumulated context was 51% of Claude Code's extra cost and new output another 25%. It took 1.3 times Pi's turns and cost 2.1 times as much. Caching softens this, since most of the re-sent prefix is billed at a tenth of the input price or less, but it doesn't remove it. With GPT-5.6 Luna, sub-agents were 72% of Claude Code's extra cost on SWE-bench Lite, and the authors found today's sub-agent designs add cost without raising success1.
The Freehand preprint, published on 1 December by a team linked to Microsoft Research Asia, goes further2. Its harness is a single bash tool, a conversation history the model can edit as a file, a one-line meter that reports tokens, cost and time after each turn, and a prompt of about 200 words. Against the model makers' own harnesses (Codex, Claude Code and Gemini CLI) across 11 model and benchmark settings, the authors report an average gain of 5.1 points at 49% lower cost per task, $3.73 against $7.34. Against Pi the margin is smaller, 3.9 points at 28% lower cost, and no single Pi comparison survives their correction for multiple tests. These are the authors' own measurements, and the paper has not been peer reviewed. Their ablation, which removes or restores one part at a time, points at the same cause as HarnessTax: putting Codex's prompt and tools back raised cost by 68% on one benchmark and lowered accuracy by 3.8 points2.
This next part cuts against what I've said before. HarnessTax found that success rates vary about one-ninth as much across harnesses for a fixed model as across models in a fixed harness1. OpenClaw's ShellBench update, published on 3 December and covering 19 models in five harnesses, points the same way. The median gap between the best and worst model inside one harness was 47.9 points, against 8.3 points for one model across harnesses3. Among the five top models, though, the harness gap of 9.6 points was larger than the 7.9-point gap between models3, so at the frontier the harness can still move the score. Freehand also loses with smaller models. On Terminal-Bench 4.0 the model makers' own harnesses beat it by 5.1 to 6.7 points with smaller models, including GPT-6 Sol and Claude Sonnet 5.52. That suggests weaker models still need the extra scaffolding, while stronger ones do better without it. HarnessTax's test also catches a true 10-point success gap only about half the time on its smaller benchmarks, so a gap it can't detect isn't proof the two are equal1. I'd still choose the model for capability, and then look to the harness for cost.
That is why I build my own. In how I build agent harnesses I wrote that my framework keeps the context window lean, loads a skill only when a task needs it, and clears old tool output. Those match the two fixes HarnessTax suggests: send a small core tool set and load the rest on demand, and trim older context1. With an off-the-shelf harness you pay for every tool definition on every call, whether the agent uses it or not. With your own, you decide what goes into the loop, and you can meter what each part costs. In my Neon vs Claude post I compared models by cost per passing change. On my arithmetic, the same pass rate at 2.1 times the cost per attempt means roughly 2.1 times the cost per passing change, from the harness alone.
The strongest objection is that the heavy machinery buys things a cost chart doesn't price: sandboxing, permission prompts, timeouts, recovery and a better experience for the person at the keyboard. That's fair, and HarnessTax says so. It does not measure user experience, safety or real user sessions, where interactive features may justify their cost, and it notes that Pi's bash tool lacks the default timeout Claude Code includes1. I'd keep all of those controls. I'd put them in the environment and in code, which is where Freehand's authors put them too. They run the agent inside isolated containers or virtual machines with scoped credentials, and say safety boundaries are best enforced by the execution environment2. A permission check in code adds no tokens to a call, while the same rule in a prompt is paid for on every turn and the model can still ignore it.
I still pay for Claude Code, and in my Neon post I said I count its harness as part of what I pay for. On a subscription the extra tokens don't arrive as a bill, though I'd expect them to show up in how quickly you reach the usage limit. For work that runs through the API, these papers suggest the harness is the easiest place to save money, and it's the part of the stack I can actually control.
Nothing here is financial, legal or investment advice. Every figure is published by its named source and carries the date it was published; figures may since have changed.
References
-
Melissa Z. Pan et al., UC Berkeley, HarnessTax: How Much Does the Harness Matter for Coding Agents? (arXiv, 3 December 2026) ↑
-
Zezi Zeng et al., Freehand: The Bitter Lesson Comes to Agent Harnesses (arXiv preprint, 1 December 2026) ↑
-
OpenClaw, ShellBench expands to 19 models across five agent harnesses (3 December 2026) ↑