The paper measures how much the harness (system prompt, tools, context management) around a language model affects coding performance, holding the model fixed. Three production harnesses (Claude Code, mini-SWE-agent, OpenCode) were run with five models on SWE-bench Verified (447 tasks and a 45-task hard subset). Ten rerun pairs of the same configuration established baseline noise. The finding: on the 447-task pool, the two most extreme harnesses are equivalent within five points; on the hard subset, swapping harnesses flips as many tasks as rerunning the same harness (13% in both cases). The only harness effect that clears noise is a loss: OpenCode trails by up to 9 points due to an output cap. The harness does decide cost: with the same model and tasks, cost per task differs by up to 3x, driven by the preamble of system prompt and tool schemas sent with every step. This matters because harness changes are commonly advertised as score improvements, but here they barely move pass rate while significantly affecting cost.
Coding harnesses change token costs more reliably than success rates
Across three production harnesses, pass-rate differences largely resembled rerun noise, while per-task costs varied by up to threefold.
Academic
Yangze Liu · Zhongyi Han
Shandong University
Research Digest··2 min read
Thread:Agent Harness Optimization
In one line
Swapping a coding agent's harness moves pass rate no more than rerunning the same harness.
Before you read this
Three ideas this paper builds onagent harnessA system that structures, verifies, monitors, or controls how an AI agent interacts with external tools, environments, or execution runs.188 papers →non-determinismSame inputs give different outputs across runs, confounding testing and evaluation.31 papers →coding agentAn AI-powered software system that autonomously writes, modifies, or extends source code based on high-level instructions.178 papers →
Read it as
Liu and Han held language models fixed while comparing Claude Code, mini-SWE-agent and OpenCode on SWE-bench Verified, a benchmark of real repository repair tasks.
The authors ran five models through three pinned production harnesses on 45 tasks from the two hardest SWE-bench Verified difficulty bands.
How it works
stage by stageThe Daily Edition
The front page in your inbox each weekday morning: the lead, the picks, and why each one earned its place.