Same model, Claude Code costs 2.1x as much as Pi, but success rates don't differ
The paper HarnessTax runs 8 models in three coding agent harnesses—Claude Code, Codex, and Pi—across four benchmarks. With the model held fixed, the harness has little effect on success rate but a large effect on cost. For Claude Fable 5 on Terminal-Bench 4.0, Claude Code costs 2.1x as much as Pi, with no statistically significant difference in success rate. Where does the money go? System prompts, tool definitions, and accumulated context are resent on every call, including tools the model never uses. Codex with subagents enabled costs 3x more, with no increase in success rate.
Put the same model into different coding agent harnesses, and the success rate barely moves, while the bill can differ by a lot. The paper HarnessTax tested this and calls the cost difference the harness tax.
The experimental setup is not complicated: 8 models, 3 harnesses from production environments—Claude Code, Codex, and Pi—run on 4 benchmarks: SWE-bench Lite, Terminal-Bench 2.0, Terminal-Bench 4.0, and Terminal-Bench Science 0.1. With the model fixed, success rates rarely show significant changes, while costs change a lot. The most direct example is Claude Fable 5 on Terminal-Bench 4.0: Claude Code's cost is 2.1x that of Pi, with no statistically detectable difference in success rate.
A harness can be understood as the engineering layer outside the model. System prompts, tool definitions, context assembly, and the call loop are all managed by it. The paper found that the bulk of the extra cost comes from the system prompt, tool definitions, and accumulated context that are resent on every model call, including tool definitions for tools the model never calls. One commenter put it bluntly: unused tool definitions are like paying rent every turn.
Pi is the counterintuitive one. It has only four tools, yet it sits on the cost-success Pareto frontier on every benchmark. Models are often competitive in harnesses not their own, at lower cost. Conversely, after Codex enables subagents, cost on Terminal-Bench 2.0 becomes 3.0x, with no improvement in success rate. When the harness adds features, the bill goes up first.
In the comments, someone asks whether the 2.1x accounts for cached input pricing; this question is worth checking in the paper's details. Another commenter mentions that Artificial Analysis observed anomalous reasoning snippets from GLM-5.3-Flash in Codex, with lower scores. This example shows that the harness can change model behavior, but the paper's main conclusion is still that, with the model fixed, success-rate differences are rarely significant. Don't treat isolated cases as the general rule, and don't ignore the harness cost.
When many teams encounter high agent bills, their first reaction is to switch models. This paper gives a clearer order: look at the harness first. The longer the tool list, the heavier the tax resent every turn. Removing unused tool definitions first may get closer to the truth of the bill than switching models.
Paper: arXiv:2612.05657
DAIR explainer page: HarnessTax
发布时间: 2026-12-05 05:29