Agent ResearchAnthropicClaude
Evidence check
  • Preprint
  • No code released
  • Not independently replicated

Berkeley Study: The Coding Agent Wrapper Can Double Your Bill, Not Your Score

UC Berkeley ran eight models in Claude Code, Codex CLI and Pi. The harness barely moved success rates but often moved cost, by a median 1.33x and up to 5.1x.

Christopher Ort
By i10X News Desk · Reviewed by Christopher Ort · 7 min read
Share
A laptop showing a dark code editor on a desk at night, with a desk lamp, a mug and two small stacks of coins beside a printed sheet
Image: AI-generated, i10X
On this page
  1. What the harness changes, and what it does not
  2. Where the extra money goes
  3. Five knobs, tested one at a time
  4. When the harness does change the result
  5. What remains open
  6. How it fits with the other harness studies
  7. One step further: why the wrapper now decides the AI coding bill
  8. What teams running coding agents can do
  9. About this analysis
  10. i10x Perspective

When a coding agent gets expensive, most teams blame the model. A new study from UC Berkeley’s Sky Lab and Arena, with Ion Stoica and Matei Zaharia among the authors, points at the software around it. The researchers ran eight models, from Claude Fable 5 and Opus 5.5 to GPT-5.6 Sol and the open-weight Kimi K3, inside three production harnesses: Claude Code, OpenAI’s Codex CLI and the open-source Pi. Holding the model fixed, the harness almost never changed how many tasks got solved, but it often changed what they cost. At similar success rates, the pricier harness charged a median of 1.33 times as much and up to 5.1 times. The paper then takes the harnesses apart to show where that money goes.

What the harness changes, and what it does not

  • Cost moves, success does not: Across SWE-bench Lite, Terminal-Bench 2.0 and 4.0, cost gaps between harnesses were statistically detectable in 51 of 72 same-model comparisons, success gaps in only 2, and none survived correction for multiple testing.
  • Model beats wrapper: Success rates varied by 1.8 percentage points (standard deviation) when only the harness changed, against 15.9 points when the model changed. For cost the spread was 1.5x across harnesses and 3.0x across models, so both matter for the bill.
  • Four tools are enough: Pi offers just read, write, edit and bash, yet it sat on the cost and success frontier on all four benchmarks.
  • No home advantage: Claude models in Claude Code and GPT-5.6 models in Codex never had a detectable lead over the best rival harness in 21 comparisons, and cost more than Pi in 17 of them.
  • A concrete case: With Claude Fable 5 on Terminal-Bench 4.0, a run cost $26.26 in Claude Code, $23.32 in Codex and $12.24 in Pi. Success rates of 28.6%, 42.9% and 33.3% were not statistically distinguishable on 63 tasks.
Grouped bar chart of cost per run relative to the Pi harness. Claude Fable 5 on Terminal-Bench 4.0: Claude Code 2.1x, Codex 1.9x, Pi 1.0x. GPT-5.6 Sol on Terminal-Bench 4.0: Claude Code 6.1x, Codex 1.6x. GPT-5.6 Luna on SWE-bench Lite: Claude Code 5.1x, Codex 1.2x.
i10X chart; ratios computed by i10X from the cost per run in Pan, Yang, Arabzadeh, Chiang, Stoica and Zaharia (2026), arXiv:2612.05657, Figure 5. For GPT-5.6 Sol on Terminal-Bench 4.0 the success rates also differ (31.7% Claude Code, 41.3% Pi). Own chart; the paper is licensed CC BY 4.0.

Where the extra money goes

Because a model provider bills the input tokens of every request, everything a harness re-sends on each call adds up. On short tasks the fixed prefix dominates. Claude Code’s first call with Fable 5 carried about 32,000 input tokens on Terminal-Bench 4.0, mostly tool definitions, while the task itself took about 600. On SWE-bench Lite the model never touched 18 of Claude Code’s 23 tools, yet their definitions made up 31% of the run cost. Tool definitions and instructions explained 94% of Claude Code’s extra cost over Pi in that setting.

On long tasks the growing history takes over: every earlier tool output and model reply is billed again on each later call, so cost rises roughly with the square of the number of calls until the context is compacted. Re-sent context accounted for 51% of Claude Code’s extra cost over Pi with Fable 5 on Terminal-Bench 4.0, extra output for another 25%. Subagents are the third driver. With GPT-5.6 models, Claude Code started subagents in nearly every Terminal-Bench 4.0 run, and with GPT-5.6 Luna on SWE-bench Lite they caused 72% of its extra cost over Pi.

Five knobs, tested one at a time

To find causes rather than correlations, the team changed single components and kept everything else fixed. None of the 24 Codex variants moved success by a detectable amount, but several moved cost a lot:

  • Subagents on: Giving Codex its delegation instructions tripled cost on Terminal-Bench 2.0 (60.0% success vs 63.3% without). On Terminal-Bench Science the agent spawned 60.8 subagents per run and cost 14.2 times as much, with no reliable gain. Runs also took longer, not shorter.
  • Output cap: Keeping only 2,000 tokens of each tool output cut cost by 26% with GPT-5.6 Luna and 14% with Sol.
  • Smaller, direct tool set: Four tools called directly instead of through Codex’s JavaScript code mode were cheaper in 10 of 12 comparisons.
  • Shorter tool descriptions: Trimming 492 tokens from the definitions made no detectable difference.
  • Earlier compaction: Lowering Claude Code’s threshold from 167,000 to 100,800 or 64,800 tokens made runs about 1.6 times longer, raised cost by 1.47 to 1.70 times and lowered success by 13 to 24 points, a drop that was statistically detectable at the most aggressive setting. Never compacting, with a 1M token window, had no detectable effect.

When the harness does change the result

Simple has limits on long tasks. Five of Pi’s 70 runs with Opus 5.5 on Terminal-Bench Science ended at a limit outside the model: four hit the provider’s 30 MB request cap because Pi passes large images through unchanged, and one hung because its bash tool has no default timeout. Claude Code shrinks images and times out commands. Small design choices also decided single tasks: on one Terminal-Bench 2.0 job that needs a server left running, Claude Code and Codex shut down background processes at the end and failed 17 of 48 runs, while Pi passed all 24.

The most surprising finding concerns rules. Terminal-Bench Science forbids looking up solutions online, but with GPT-5.6 Sol, Claude Code’s main agent repeated that rule in only 24% of its subagent prompts. Subagents then fetched benchmark material in 21 runs, 7 of which passed. Of 187 subagents that were told to stay offline, none did it. The lesson goes beyond benchmarks: a subagent only knows the constraints its parent passes on.

What remains open

All four benchmarks are public, so contamination could hide real harness differences. The study does not measure user experience, safety or interactive sessions, where features like task lists or approvals may justify their tokens. Costs use list prices and exclude sandbox compute. With 30 to 63 tasks per benchmark, a true 10-point success gap would be detected only about half the time, which is why the authors call success rates “similar” only when a gap above 10 points can be ruled out. The paper links a code repository and a Hugging Face dataset with 11,887 runs; neither was publicly reachable when we checked on 4 December. Compute and API credits came from Amazon, Arena (whose Wei-Lin Chiang is a co-author) and the Laude Institute; there is no competing-interest statement.

How it fits with the other harness studies

This is the third independent result in two weeks pointing the same way. Artificial Analysis found that swapping among 13 harnesses changed cost far more than score, and Microsoft Research’s Freehand harness beat Codex and Claude Code at about half the cost with frontier models. HarnessTax adds the missing part, a cost breakdown by component, and it confirms what we reported from an earlier study on parallel subagents: fan-out to helper agents buys little and costs a lot.

One step further: why the wrapper now decides the AI coding bill

The cause is volume. GitHub reports that by September 2026 more than 40% of pull requests started with an agent, up from 17% in March, about 110 million in September alone. At that scale a constant overhead per call becomes a budget line. By our calculation, a median harness tax of 1.33x means roughly a quarter of the spend in the pricier harness (1 minus 1/1.33) buys no measurable extra success. For 1,000 Terminal-Bench 4.0 style runs with Fable 5, the paper’s per-run costs add up to $26,260 in Claude Code against $12,240 in Pi, a difference of $14,020.

The consequences reach beyond individual teams. Vendors bundle their harness with their models, but the study finds no home advantage, which weakens lock-in and strengthens open harnesses such as Pi. Anthropic itself has shifted its advice: an October 22, 2026 guide recommends fewer subagents in favor of loading context and tools on demand, which matches the 3x to 14x subagent costs measured here. What is still open is how much of the tax users actually see. Many developers pay flat subscriptions rather than list prices per token, and the paper does not model those plans.

How we checked

Checked on 4 December 2026, 08:59 CET.

  • Read the full paper, arXiv:2612.05657v1 (submitted 3 December 2026), including Sections 3 to 9, Tables 6 and 7 and the acknowledgements
  • Checked the 40%, 17% and 110 million pull request figures in GitHub’s Octoverse post and the date of Anthropic’s subagent guide
  • The cost ratios in the chart, the quarter-of-spend estimate and the 1,000-run totals are our own arithmetic from the paper’s numbers
  • We did not rerun any harness; the code and dataset links in the paper were not reachable on 4 December

What teams running coding agents can do

  • Measure cost per solved task: Compare your harness against a lean one such as Pi on a slice of your own tasks before assuming the vendor tool is cheapest. The study found success nearly constant, so cost is the deciding number.
  • Keep subagents opt-in: Codex already starts them only on explicit request. If your harness spawns them by default, test a single-agent run first.
  • Pass rules to helpers: If you do use subagents, make sure task constraints (no internet, no secrets, scope limits) appear in every subagent prompt.
  • Trim what is re-sent: Unused tools and bulky tool outputs are paid for on every call. Capping outputs saved 14% to 26% here without hurting success.
  • Leave compaction alone: Earlier compaction made runs slower and more expensive, and aggressive settings cut success.
  • Mind the safety net: A lean harness needs command timeouts and image size limits for long jobs, or it will lose runs that the model could have solved.

About this analysis

Based on the full text of arXiv:2612.05657v1, submitted on 3 December 2026 and not yet peer reviewed. All benchmark figures come from the paper; the chart ratios are i10X calculations from Figure 5. Pi is an open-source harness (GitHub). More agent research: Studies: Agents.

i10x Perspective

Coding agent pricing has quietly shifted from “which model” to “which loop”. This paper is the clearest evidence yet that the loop is where waste hides: tool menus nobody orders from, histories billed again on every turn, and helper agents that mostly repeat each other. We expect vendors to respond by loading tools on demand and trimming prompts, because a 2x cost gap at equal results is hard to defend once buyers start measuring it. Teams should not wait. One afternoon of side-by-side runs on their own repositories will show whether they are paying the harness tax.

Christopher Ort

Christopher Ort

Christopher Ort is the editor of i10X News at i10x.ai. He has worked hands-on with AI tools, models and agent workflows for years and leads i10X’s coverage of AI launches, funding and research. He is the author of “The Style Penalty”, an SSRN study on how frontier AI models judge AI-written CVs, covered by heise online and t3n.

Timeline

What happened before

  1. Release

    Claude Haiku 5.5

    1M context · $0.1 / $0.5 per 1M tokens

    support.claude.com (source, opens in a new tab)
  2. Release

    Claude Sonnet 5.5

    1M context · $2 / $10 per 1M tokens

    support.claude.com (source, opens in a new tab)
  3. Release

    Claude Opus 5.5

    1M context · $4 / $20 per 1M tokens

    First model of the Claude 5.5 family; performs at the level of Claude Fable 5.1 on most work and costs 40% less to run than Opus 5.

    anthropic.com (source, opens in a new tab)
  4. Release

    Claude Fable 5.1 & Mythos 5.1

    1M context · $10 / $50 per 1M tokens

    Anthropic's most advanced models for coding and knowledge work. Price/context shown for Claude Fable 5.1 (models overview).

    support.claude.com (source, opens in a new tab)
  5. Release

    Claude Opus 5

    1M context · $5 / $25 per 1M tokens

    support.claude.com (source, opens in a new tab)
Full Claude timeline ›

Editor's picks

  1. Anthropic’s Terraform Provider for Claude Agents: What Ends Up in Your State
  2. DoorDash breach: AI tools exposed names, addresses and phone numbers of users
  3. Hacked Next.js servers lose AI, cloud and crypto keys in React2Keys campaign
  4. Gemini API Now Changes Agent Rules Mid-Session Without Breaking the Cache
  5. FLUX 3.1 Image Costs Less Than Half of Nano Banana 2.1 at 1K: Price Check