Language models are changing how we build software and solve computational problems [1] [2]. Coding agents put these capabilities to work through harness, a software system that manages a model’s tools, context, and task execution [3] [4]. While models provide the core intelligence behind coding agents, harnesses are increasingly seen as central to how effectively that intelligence is used [5] [3]. Choosing a coding agent therefore means selecting both a model and a harness, even when the explicit focus is only on the model [6].
Millions of people already use coding agents [7], yet the impact of harness choice remains unclear. Could another harness help the same model solve more tasks or reduce costs?
We evaluate 21 model–harness pairs spanning seven models and three harnesses—Claude Code, Codex CLI, and Pi—on SWE-bench Lite and Terminal-Bench 2.0 [8] [9]. Our study reveals three surprising findings on these two open-source benchmarks:
- Harness choice has little effect on task success rate, but can significantly affect the cost on the benchmarks we test. The same model can achieve similar success rates at up to 5x costs.
- A simple harness can be competitive. Pi, a minimal, open-source harness can be competitive on both cost and task success rate.
- Models may perform better with other harnesses than with their own. So it turns out that your Claude models may not need Claude Code… 🤔
We examine each finding below and will publicly release our profiling traces.
We compare 21 model–harness pairs on the same 30 randomly sampled tasks from each benchmark: SWE-bench Lite and Terminal-Bench 2.0. We run each pair three times per task to capture variation between attempts. We start with each harness’s native configuration, select its high effort setting, and cap each attempt at 100 agent turns to control the cost of long runs. Turn counts and effort settings follow each harness’s own definitions. We measure task success using each benchmark’s official evaluator.
Measurement details. We average cost and success across each task’s three attempts, then across the 30 tasks. We estimate 95% confidence intervals using 10,000 bootstrap resamples, each drawing 30 task averages with replacement and recomputing the overall mean. We compute token costs using a fixed direct-API price list dated September 1, 2026, applying the same prices to each model across harnesses.
For SWE-bench Lite, we block external network access from all task containers, disable the default web tools in Claude Code and Codex, and reject hosted tool declarations at the API request level.
For Pi, we add two packages to configure subscription keys and control agent turns. We access Kimi K3 via Fireworks AI, using the single native thinking mode for this model across all three harnesses.
Harness affects cost more than correctness
The same model often achieves a similar success rate at substantially different costs. GPT-5.6 Luna offers the lowest cost on both benchmarks, while Claude Fable 5 reaches the highest success rate on SWE-bench Lite. Kimi K3, an open-weight model, is close to the Pareto frontier near GPT 5.6 Sol in SWE-Bench Lite, and sits just below the Pareto frontier on Terminal-Bench 2.0. However, these models show no substantial performance differences across harnesses. Claude Fable 5 solves 97.8% of attempts in Claude Code, 96.7% in Codex and 96.7% in Pi, yet Claude Code costs about twice as much as Pi ($1.33 vs $0.67).
Fable 5 achieves a slightly higher success rate in Claude Code than in Pi, at about twice the cost. The cost gap extends beyond Fable 5. Across shared models, Claude Code costs about 2.0× as much as Pi and 1.6× as much as Codex on SWE-bench Lite, and 1.5× as much as Pi on Terminal-Bench 2.0, using geometric means of cost ratios. Meanwhile, the average harness effect on success rate stays within ±2% on SWE-bench Lite and within about ±5% on Terminal-Bench 2.0.
Paying extra for essentially the same quality because the use of different harnesses is like paying a… Harness Tax 💰...[10] And you may be paying such a hidden “harness tax” when you accept a coding agent’s default harness without comparing alternatives. Model evaluations should therefore compare the same model’s cost and task success across commonly used harnesses.
A simple harness can be competitive
Pi reaches the Pareto frontier on both benchmarks by providing just four tools: read, write, edit, and bash [11]. To understand how harness design affects spending, we examine costs across completed attempts, recorded turn counts, and initial context.
Agents can take similar numbers of turns at substantially different costs. For Fable 5 on SWE-bench Lite, Pi and Claude Code average 15.4 and 15.3 turns per attempt, yet Claude Code costs about twice as much for a 1.1% increase in the success rate. This means higher spending per recorded turn, though turn definitions vary across harnesses.
A harness tax can begin with the first model call. Across all seven models, Claude Code’s mean initial context is over 10× Pi’s, with longer instructions and larger tool schemas. This additional context can raise costs, though total spending also depends on caching, generated tokens, and later calls.
The effectiveness of Pi and Codex demonstrates opportunities for open-source harness research with existing models. Researchers can work with SOTA coding harnesses without access to proprietary harnesses or co-training with the model. Richer harness features may still benefit other models, workloads, or interaction settings. Harness complexity should therefore be treated as an empirical trade-off.
Models can perform competitively outside their provider’s harness
Provider-specific optimization does not guarantee the best pairing. Providers sometimes optimize models for their coding environments: OpenAI, for example, describes GPT-5-Codex as optimized for software engineering in Codex [12]. Yet across the six Anthropic and OpenAI models and both benchmarks, an alternative harness achieves the highest observed success rate in nine of twelve comparisons.
The result extends beyond Opus and beyond Claude Code. Sonnet 4.6 solves 68.9% of attempts in Codex versus 66.7% in Claude Code on SWE-bench Lite at a similar cost. GPT-5.6 Sol also performs competitively outside its provider's harness: on Terminal-Bench 2.0, it achieves an 83.3% success rate in Pi versus 78.9% in Codex, at about half the cost ($0.42 versus $0.76). Across the six Anthropic and OpenAI models and both benchmarks, an alternative harness achieves the highest observed success rate in nine of twelve comparisons.
These results show that a model’s capabilities are compatible, generalizable and can carry over to other harnesses. Providers do report to optimize some models for their own coding environments: OpenAI, for example, describes GPT-5-Codex as optimized for agentic software engineering in Codex [12]. Yet we observe that a shared provider does not guarantee the best pairing. The practical question remains which harness delivers the best balance of cost and task success for a given model and workload.
Ending Notes
Our results show that the same model can achieve similar success rates at substantially different costs. On the benchmarks we test, simple open-source harnesses can be competitive, and models can perform well outside their own harness. A harness tax can go unnoticed when we focus only on task success.
Across models, Pi and Codex often achieve similar success at lower cost than Claude Code. These findings can be limited to the two open-source benchmarks we test, which the models may have encountered during training. Results may differ on other benchmarks and workloads.
Much prior work, including our work on retrieval agents [13], shows the value of choosing models and system configurations together. Harness selection is an even more pressing problem for coding agents given the volume and spread of its usage. The natural next step is to evaluate harnesses and automate their selection in real development workflows, where requirements evolve, developers provide feedback [14], and tasks extend across sessions [3].
More broadly, the need for different harnesses depends on the role of coding agents. For day-to-day tasks, coding agents are essentially interfaces to model intelligence: they manage context, access tools, and execute tasks [15]. As models become more capable, coding agents may need less of today’s scaffolding. General-purpose coding agents should therefore prioritize cost efficiency and reliability, as many tasks may not require fancy add-on features. For harder problems at the boundary of a model’s capabilities, including scientific discovery, (coding) agents may still benefit from harnesses that provide structured guidance for exploring ideas, evaluating candidates, and learning from feedback. Harness research can be viewed as a way to help models push the boundaries of knowledge, unlocking the next phase of intelligence in the process. Yet users should not have to make these configuration decisions themselves. We should envision a redesigned harness that adapts as tasks unfold while remaining general.
Citation
If HarnessTax is useful in your research or work, please cite the project as:
Acknowledgement
I thank the Amazon AI Fellowship for AWS compute credits, Arena Intelligence for sponsoring API access for our profiling experiments, and Laude for Anthropic API credits. I thank Michael Chang and Tyler Griggs for supporting AI subscriptions for my research, Mert Cemri for valuable feedback on the blog.
Our lab’s research is supported by gifts from Accenture, AMD, Anyscale, Broadcom Inc., Google, IBM, Intel, Intesa Sanpaolo, Lambda, Mibura Inc., Samsung SDS, and SAP. We thank all support for open research.
Reference
[1] Saffron Huang et al. “How AI Is Transforming Work at Anthropic.” Anthropic Research, December 2, 2025.
[2] AlphaEvolve team. “AlphaEvolve: A Gemini-powered coding agent for designing advanced algorithms.” Google DeepMind, May 14, 2025.
[3] Justin Young. “Effective harnesses for long-running agents.” Anthropic Engineering, November 26, 2025.
[4] Michael Bolin. “Unrolling the Codex agent loop.” OpenAI Engineering, January 23, 2026.
[5] John Yang et al. “SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering.” NeurIPS, 2024.
[6] Vinay Gaba, Ankit Mathur, Rishabh Singh, Patrick Wendell, and Matei Zaharia. “Benchmarking Coding Agents on Databricks’ Multi-Million Line Codebase.” Databricks, July 8, 2026.
[7] OpenAI. “Codex is becoming a productivity tool for everyone.” June 2, 2026.
[8] Carlos E. Jimenez, John Yang, and Jiayi Geng. “SWE-bench Lite.” Official benchmark description. Accessed September 16, 2026.
[9] Mike A. Merrill et al. “Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces.” arXiv:2601.11868, January 17, 2026.
[10] Siddharth Sambharia. “The Harness Tax: The Dead Weight Inside Your Coding Agent.” Portkey, April 13, 2026.
[11] Pi contributors. “Pi coding agent.” GitHub README. Accessed September 16, 2026.
[12] OpenAI. “Introducing upgrades to Codex.” September 15, 2025.
[13] Melissa Z. Pan, Negar Arabzadeh, Mathew Jacob, Fiodar Kazhamiaka, Esha Choukse, and Matei Zaharia. “Natural Language Query to Configuration for Retrieval Agents.” arXiv:2605.27361, May 26, 2026.
[14] Yifan Wu et al. “SWE-Together: Evaluating Coding Agents in Interactive User Sessions.” arXiv:2606.29957, June 29, 2026.
[15] Anthropic. “How Claude Code works.” Claude Code documentation. Accessed September 16, 2026.










