← all writing
01 · 04 Dec 2026 · 7 MIN READ

Same model, up to 5.1× the bill: harnesses change cost, not pass rates

I've spent a fair amount of time arguing about which coding agent to use: Claude Code, Codex, something leaner. HarnessTax, a new study from Berkeley's Sky Lab (Melissa Pan, Ion Stoica, Matei Zaharia and colleagues), says I was mostly arguing about the wrong number. Hold the model fixed, swap the harness around it, and the pass rate barely moves. The invoice does.

They ran eight models (Fable 5, Opus 5.5, Opus 4.8, Sonnet 4.6, Haiku 4.5, GPT-5.6 Sol and Luna, Kimi K3) inside three production harnesses (Claude Code, Codex CLI and the open-source Pi) on SWE-bench Lite, Terminal-Bench 2.0 and 4.0, and Terminal-Bench Science. That's 7,092 scored runs, paired by task, with exact sign-flip tests and Holm correction. This is not a vibes comparison.

For a fixed model, the harness has little effect on success rate but a much larger effect on cost, which we call the harness tax.

Pass rates barely notice which harness you pick

The statistical picture is lopsided. Across SWE-bench Lite, TB2 and TB4 there were 72 same-model harness comparisons:

The headline example: Fable 5 on Terminal-Bench 4.0 costs 2.1× as much in Claude Code as in Pi, with no detectable difference in success. Claude Code took only 1.3× as many turns to get there. Pi has four tools (read, write, edit, bash), short instructions and no built-in subagents, and it sits on the cost-success Pareto frontier on every benchmark.

The provider-loyalty assumption doesn't hold either. In 21 comparisons of a Claude or GPT model in its own vendor's harness against the best alternative, the home harness never had a detectable lead, and it cost more than Pi in 17 of them.

Model choice decides what gets solved. Harness choice mostly decides what you pay to solve it.

Most of the bill is text the model never asked for

The cost breakdown is the part I'd make every harness builder read. On short tasks, extra cost comes from the prefix the harness re-sends on every call. Claude Code's first call with Fable 5 carries about 32K input tokens; the task itself is roughly 600. On SWE-bench Lite, Claude Code never called 18 of its 23 tools in any Fable 5 run, yet those definitions made up 31% of its cost. Instructions and tool definitions together explained 94% of its extra cost over Pi on that benchmark.

On long tasks the culprit shifts to accumulated context. Every tool output and model response gets re-billed on each later call until compaction, so context cost grows roughly with the square of the number of calls. On TB4, accumulated context accounted for 51% of Claude Code's extra cost over Pi with Fable 5, and new output for another 25%.

To be fair to the bigger harnesses, caching softens this: most of the re-sent prefix is billed as cache reads at a tenth of the input price or less. The paper's cost numbers already include that. A 2× gap after caching is still a 2× gap.

Subagents tripled the cost and bought nothing measurable

This is the controlled experiment that should change some defaults. Codex normally only spawns subagents when the user, an AGENTS.md or a skill asks. The authors turned on the delegation instructions Codex reserves for its ultra effort level and changed nothing else.

On TB2 at high effort, about 3 subagents per run raised cost 3.0× while success went from 63.3% to 60.0% (not detectable). Runs also took 24% longer, so parallel workers didn't even buy wall-clock time. On TB-Science at max effort, 60.8 subagents per run raised cost 14.2×; success nudged from 26.7% to 31.1%, but dropped to 24.4% once runs that fetched forbidden benchmark material were counted as failures.

That last detail is the uncomfortable one. Every TB-Science task forbids looking up solutions online. With GPT-5.6 Sol, Claude Code's main agent restated that rule in only 24% of its subagent prompts. None of the 187 subagents told to stay offline fetched benchmark material; 26 of the other 680 did. The main agent itself never did. The subagents weren't malicious, they just never got the rule.

If you run sub-agent architectures, the lesson isn't only about cost. A subagent knows what you hand it and nothing else, so constraints have to travel with the delegation explicitly.

Where the lean harness lost, and why that matters

Pi isn't free of trade-offs, and the paper is honest about it. On long tasks, the few runs it lost were often lost to systems plumbing rather than reasoning. Four of Pi's 70 TB-Science runs with Opus 5.5 hit the provider's 30 MB request-size cap because Pi doesn't shrink images the way Claude Code does (about 0.7 MB per image). On one microscopy task, Pi crashed after 18 images while Claude Code read 437 and passed. Another Pi run hung until the deadline because its bash tool has no default timeout.

Conversely, Claude Code and Codex failed 17 of 48 runs on a TB2 task because they kill background servers when the agent finishes; all 24 Pi runs passed. Small runtime decisions decide individual tasks, even if they wash out in aggregate.

Two further results are worth keeping in mind before you start ripping things out. Trimming Codex's tool descriptions by 492 tokens changed nothing detectable, so cosmetic prompt diets don't help much. And compacting Claude Code earlier (100.8K or 64.8K tokens instead of 167K) made TB4 runs about 1.6× slower, raised cost 1.47-1.70× and lowered success by 13-24%, detectably so at the 64.8K setting. Capping each tool output at 2,000 tokens, on the other hand, cut Codex cost 14% with Sol and 26% with Luna with no detectable success change.

Limits apply. All four benchmarks are public and may be in training data. The study doesn't measure interactive use, safety or user experience, which is where a lot of Claude Code's extra machinery earns its keep. A permission system or a plan mode costs tokens on a benchmark and saves you on a real repo. I'd read this as a verdict on autonomous batch workloads, not on the IDE session where I'm reviewing every diff.

The audit I'm running on my own setup

If you build or configure agent harnesses, the paper hands you a checklist with numbers attached:

My prediction: within a year, harness benchmarks report dollars next to pass rates by default, and the default tool set in the big harnesses shrinks to a handful of always-loaded tools with everything else fetched on demand. The model is the CPU, as the authors put it; it's about time we started profiling the operating system.


Working on something similar?

Say hello — I read every email.