HarnessTax: How Much Does the Harness Matter for Coding Agents?
Melissa Z. Pan, Shuo Yang, Negar Arabzadeh, Wei-Lin Chiang, Ion Stoica, Matei Zaharia
Abstract
Every coding agent runs a model inside a , yet we lack a principled understanding of what the harness adds and which of its components matter. We present the first systematic study of how production coding-agent harnesses and their individual components affect cost and success rate, and examine where the harness adds cost and when it changes what a model can solve. We evaluate eight models in three production harnesses (Claude Code, Codex, Pi) on four benchmarks: SWE-bench Lite, Terminal-Bench 2.0 and 4.0, and Terminal-Bench Science 0.1. 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. With Claude Fable 5 on Terminal-Bench 4.0, for example, Claude Code costs as much as Pi, with no statistically detectable gap in success rate. Pi, with only four tools, is on the cost-success Pareto frontier on every benchmark. Models also perform competitively outside their provider's harness, often at a lower cost. Much of the extra cost comes from the system prompt, tool definitions, and accumulated context that the harness re-sends with every model call, including definitions of tools the model never calls. Success rates rarely differ significantly across harnesses. When they do, part of the gap comes from system-level features such as handling large image inputs. We also modify five components one at a time to isolate the effects of harness design choices. Enabling subagents in Codex, for instance, increases the cost by on Terminal-Bench 2.0 without improving the success rate. HarnessTax is a step toward understanding how each harness component affects cost and success rate, and we hope it guides future research on what matters in a coding-agent harness.
Create a lesson
Metadata
- Categories
- cs.AI, cs.LG, cs.SE
Related papers
Diagnosing State Validity in Agent-Generated Code
Shared title terminologycs.AIAbhishek Kaushik, Jordan Feldstein, Dalila Pîrvu et al.
Dream-Folding-Bench: Can Coding Agents Fold Proteins on Their Own?
Shared title terminologycs.AITong Zheng, Yanshuo Chen, Xidong Wu et al.
Predict the Product, Not the Observation: Product-Level World Models for Coding Agents
Shared title terminologycs.AIQingyao Li, Xinyi Dai, Di Yin et al.
Paper2Frame: Framework-Conditioned Paper-to-Code Generation with Coding Agents
Shared title terminologycs.AISungmin Kang, Seok-Ju Hahn, Zhengzhong Tu et al.
StageGate-RSI: Stage-Decoupled Attribution and Statistically Gated Recursive Self-Improvement for Agentic Vulnerability Discovery
Shared title terminologycs.AIJingyang Lu, Jingwei Zhang, Jialin Yu et al.
CADAgentBench: Benchmarking LLM Agents on End-to-End Mechanical Engineering Workflows
Shared title terminologycs.AIJiale Liu, Guanguan Ke, Shaokun Zhang et al.