Study Finds Context Overflow, Not Compression Quality, Drives Coding Agent Failure
A 176-setting ablation isolates which harness components move benchmark scores and which add cost.

A nine-member research team spanning UMass Amherst, Emory University, and UNC Charlotte — with work completed in part during internships at Zoom Video Communications — published an empirical study this week establishing, for the first time through controlled isolation, exactly which components of a coding agent's harness move benchmark scores and which add engineering complexity without measurable gain. The paper, "An Empirical Study of Harness Design for Coding Agents," appeared on arXiv on September 17 and reached the number three spot on HuggingFace Papers within 24 hours of submission.
The Question Every Agent Builder Has, Finally Answered at Scale
The study addresses a problem that has haunted coding-agent evaluation throughout 2026: a single model placed inside different harnesses can score 10 to 20 percentage points apart on the same benchmark, yet no prior work had systematically explained why in a controlled setting. Existing comparisons evaluate complete agent systems against each other, making it impossible to attribute performance differences to specific components. The research team solved this by building a modular harness with a fixed execution loop — the part that decides when to stop, call a tool, and advance the task — while varying only three components: context management, planning, and action space. The resulting experiment covered 176 matched configurations tested across four models on both SWE-Bench Verified, the 500-task Python software-engineering benchmark, and Terminal-Bench 2.1, an 89-task suite of terminal-centric operations spanning scientific computing, system administration, data science, and security.
The experimental design spans five context-management strategies and four different context-window budget levels — from very tight to effectively unconstrained — along with targeted ablations of planning modules and tool interfaces. The 176-setting scale and the cross-model, cross-benchmark breadth make this the most systematically controlled ablation study of harness components published in the harness engineering literature so far.
Context Overflow Is the Primary Failure Mode, Not Compression Quality
The study's most immediately actionable finding concerns context management. The researchers tested five strategies along a spectrum: doing nothing, applying rule-based elision to drop older context by rule, applying LLM-based summarization, staging rule-based elision before LLM summarization as a fallback, and making elided content recoverable so the agent could retrieve it later. They also tested this across four different context-window budgets to see how the value of each strategy changes as the budget tightens or relaxes.
The headline result is what did not work: recoverable elision. Giving agents the ability to retrieve content that was previously condensed added engineering complexity, but the paper reports that models rarely invoked the recovery mechanism, yielding no accuracy improvement over simpler approaches. The engineering effort to make elision recoverable simply was not justified by model behavior in practice.
What did work was the staging strategy: apply rule-based elision first and only escalate to the more expensive LLM-based summarization when needed. This combination achieved the best overall efficiency across the strategies tested. Critically, the researchers examined where the accuracy benefit of context management actually comes from and found that most of it stems from preventing context-overflow failures — situations where an agent's context window fills up and the execution trajectory terminates before the task is complete. Once overflow is prevented, adding more sophisticated compression on top contributes relatively little.
This finding has direct architectural implications. The field has invested significant research effort into LLM-based context compression, summarization quality, and retrievable memory systems. The study suggests that for coding agents operating under realistic context budgets, a simpler but reliable overflow-prevention mechanism captures the dominant portion of the accuracy gain. Teams can spend engineering budget on other components once overflow is reliably prevented.
Read more: OpenAI launches managed Codex harness API for developers
Planning and Tool Design Respond to Model Capability in Opposite Directions
The study's second major cluster of findings concerns how planning and action-space design interact with model capability. The results are not uniform — the right harness configuration depends fundamentally on which model you are using.
For planning, the trajectory-level analysis reveals a capability-dependent role reversal. For weaker models, adding a planning phase functions as an accuracy scaffold: it keeps the trajectory alive long enough for the agent to attempt an edit, raising success rates. For stronger models, the accuracy benefit largely disappears, but planning now functions as a cost saver, reducing redundant post-edit verification steps and lowering total inference cost without changing whether the task succeeds. The researchers frame this as planning shifting from scaffolding to efficiency as model strength increases — a result that argues against applying identical harness configurations across different model tiers.
The action-space results follow a similar logic. Models with weaker bash proficiency perform better when given a set of predefined structured tools, because predefined tools reduce reliance on composing shell commands and catch common failure modes. Models that are already proficient with bash, however, can operate effectively with a bash-only interface — and on command-line-centric tasks in particular, they achieve substantially lower cost when given only bash access, because they can combine multiple operations into a single tool call rather than dispatching separate structured tools. The researchers' trajectory analysis explains the mechanism: the action space changes the granularity at which code is written and composed, not whether the task is attempted or where it terminates.
Harness Engineering as a Discipline Meets Its First Controlled Baseline
The study arrives in the middle of a rapid formalization of harness engineering as a research field. Several parallel efforts released in 2026 address related but distinct problems. NVIDIA's SoL-Pi, open-sourced on September 11, takes an efficiency angle: using auto-research loops to discover mechanisms that reduce token traffic and API costs by 45–64% without stopping agents early or hiding evidence. Its four mechanisms — action fusion, context replay management, observation trimming, and selective log reading — target the same harness layer but optimize for cost rather than isolating component contributions. Meta-Harness, published by Lee et al. in 2026, takes yet another angle: automated harness search in which an agentic proposer iteratively proposes improved harness implementations from full execution traces, finding gains of more than 7 accuracy points on text classification benchmarks.
What distinguishes the paper from Fan et al. is methodological contribution. It does not propose a new harness configuration to adopt; it provides a controlled experimental design that others can use to evaluate future components. The fixed-execution-loop, three-varied-components framework is designed to produce results attributable to specific choices rather than to unmeasured interaction effects. This is a different kind of value from SoL-Pi's immediately deployable mechanisms or Meta-Harness's automated search — it is closer to a benchmark methodology for harness research itself.
Limits of the Study and What Needs Independent Confirmation
Several caveats apply. The paper uses four models — three sizes of the Nemotron-3 family (30B, 120B, and 550B) and Mistral-Medium-3.5-128B — as probes of capability and interaction style across a within-family capability axis and a cross-family comparison. The planning and bash-proficiency thresholds — at what capability level the role reversal occurs — are described qualitatively rather than specified in terms of a model-capability metric that practitioners can readily consult. The benchmark suite focuses on Python software engineering and terminal tasks; whether the same findings hold for multi-file, multi-language, or enterprise-scale codebases remains an open question.
The SWE-Bench Verified benchmark itself carries contamination concerns as of 2026 — frontier models now reach above 80% on the 500-task set, raising questions about how representative the remaining unsolved tasks are. Terminal-Bench 2.1 is a more recent construction and less likely to be saturated. Independent replication of the findings on a third benchmark, particularly SWE-Bench Pro (Scale AI's contamination-controlled successor), would significantly strengthen the conclusions.
The recoverable-elision finding — that models rarely invoke the retrieval mechanism — also deserves follow-up. Future models trained explicitly to use retrieval in long-horizon tasks might extract more value from such systems than the current generation, which means today's finding could become stale as training practices evolve.
The Harness Gap Is Now Measurable, Not Just Observable
Coding agent developers have observed harness-driven score gaps for years without being able to quantify which component causes them. The study moves that conversation from anecdote to data: context management matters most when the budget is tight, but only because overflow kills trajectories; planning is model-capability-dependent and may cost-optimize rather than accuracy-optimize for stronger models; and bash-only interfaces cut costs for capable models while structured tools remain necessary for those still learning the shell. The next step for the field is extending this controlled methodology to long-horizon benchmarks where trajectories run for hours, multi-agent settings where harness interaction across agents introduces new failure modes, and to context-management strategies for models with natively larger context windows — where the overflow threshold shifts and the relative value of each strategy likely changes again.
Read more: Anthropic redesigns Claude Code with coordinator agent and parallel threads