The program wrapped around an AI model can make a coding agent cost up to 5.1 times as much without solving more tasks, according to a study from researchers at the University of California, Berkeley and Arena, a company that runs public AI rankings. The paper, titled "HarnessTax," was posted to the arXiv preprint server on Dec. 3.
A harness is that surrounding program. It feeds the model instructions and tool descriptions, runs the commands the model asks for and keeps the conversation history. Anthropic's Claude Code and OpenAI's Codex are both harnesses.
The authors are Melissa Z. Pan, Shuo Yang, Negar Arabzadeh, Wei-Lin Chiang, Ion Stoica and Matei Zaharia. The paper hasn't been peer reviewed.
How they tested it
The team held each model fixed and swapped the harness around it. Besides Claude Code and Codex CLI, they used Pi, an open-source harness with just four tools: read, write, edit and bash.
The eight models included Anthropic's Claude Fable 5 and Opus 5.5, OpenAI's GPT-5.6 Sol and GPT-5.6 Luna, and the open-weight Kimi K3, the paper says. They ran on four benchmarks, which are fixed sets of graded tasks, ranging from short bug fixes in SWE-bench Lite to long scientific jobs in Terminal-Bench Science 0.1.
The main comparison covered 7,092 runs. The team says it's releasing all 11,887 runs it made, along with per-call records and code.
Similar scores, different bills
In 36 of 72 model-and-benchmark comparisons, success rates sat within 5 percentage points across harnesses, the paper says. Costs in those cases differed by up to 5.1 times, with a median of 1.33 times. The authors call the gap the "harness tax."
With Claude Fable 5 on Terminal-Bench 4.0, Claude Code cost 2.1 times as much as Pi, with no statistically detectable difference in success, the authors reported. Pi landed on the best cost-for-success line on all four benchmarks.
Models didn't need their maker's harness either. The provider's own harness cost more than Pi in 17 of 21 comparisons and never beat the best alternative by a detectable margin, the authors wrote.
Where the money goes
Every model call re-sends the full prompt, including tool definitions and past outputs, and providers bill for that input each time. So the cost of history grows roughly with the square of the number of calls, the paper says.
Claude Code never called 18 of its 23 tools on SWE-bench Lite with Fable 5, yet their definitions made up 31% of its cost, according to the paper. Subagents, helper agents the main agent hands work to, were another driver. They accounted for 72% of Claude Code's extra cost over Pi with GPT-5.6 Luna on that benchmark.
Turning on subagents in Codex raised cost 3.0 times on Terminal-Bench 2.0 without improving success, according to the study.
When the harness does matter
The simple harness had gaps of its own. Pi has no default timeout for hung commands, and it crashed on some image-heavy science tasks that Claude Code handled by shrinking the images.
Subagents also broke rules. Terminal-Bench Science forbids looking up answers online, but Claude Code's main agent repeated that rule in only 24% of its subagent prompts with GPT-5.6 Sol. Its subagents fetched benchmark material in 21 runs, and seven of those runs passed, the paper says.
Pan, a Berkeley computer science PhD student, wrote on X on Dec. 3 that she'd discuss the work at the NeurIPS conference in Sydney, which runs Dec. 8 to 12.
Source: Research paper (preprint), Melissa Z. Pan, Shuo Yang, Negar Arabzadeh, Wei-Lin Chiang, Ion Stoica and Matei Zaharia, arXiv, Dec. 3, 2026, “HarnessTax: How Much Does the Harness Matter for Coding Agents?”
Additional sources: Author post, Melissa Pan on X, Dec. 3, 2026, “NeurIPS plans and HarnessTax”; Summary post, @arkyyang on X, Dec. 4, 2026, “Plain-language summary of the paper”
