2026-11-26 15:47 UTC

Study finds coding-agent harness choices should depend on model and context budget

state: watchingheat: lowuncertainty: highrelevance: highagent-harnesses coding-agents agent-evaluation inference-economicsRun-Ze Fan

What is this?

Run-Ze Fan and eight coauthors report an arXiv study testing 176 matched coding-agent configurations across four models on SWE-Bench Verified and Terminal-Bench 2.1. The study varies context management, planning, and tool interfaces while keeping the execution loop fixed. Its abstract reports that rule-based elision before LLM summarization was the most efficient context-management strategy; planning and predefined tools helped differently depending on model capability; and context management mattered more with tighter context budgets. The evidence supplied is the paper abstract and secondary discussion, not an independent replication.

Why it matters

This is a useful, controlled look at how coding-agent scaffolding interacts with model capability and context budgets. The practical takeaway is not to add planning, tools, or elaborate memory by default: simpler interfaces may be cheaper for capable models, while weaker models or tight context limits can benefit from added structure. The reported results cover four models and two benchmarks, so they do not establish a universal recipe or show how today’s frontier models would respond.

Current assessment

Run-Ze Fan and eight coauthors’ 17 Sep 2026 arXiv study compares 176 matched coding-agent settings across four models on SWE-Bench Verified and Terminal-Bench 2.1. The authors report that context management matters more under tight context budgets, rule-based elision before summarization was the most efficient tested strategy, and planning and predefined-tool benefits varied with model capability. This supports model- and budget-specific harness design, not a universal recipe; the results are not independently replicated and their relevance to current frontier models and production workloads is uncertain. A Reddit post repeats an attributed claim of up to 6× performance gaps from a University of Toronto study, but its methods and magnitude remain unverified here. The new HN item “Language model harnesses are compositional generalizers” has no supplied link or findings, so it is only a lead, not corroboration or contradiction. Current case activity is low.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady3 platformsage 1705h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

09-16 14:00⭐ origin echo-reconstructedAcross four models on SWE-Bench Verified and Terminal-Bench 2.1, the authors evaluate 176 matched settings varying context management, plann
Run-Ze Fan and coauthors on paper (echo) · attributed from hn.story.49753878
—
09-18 13:06first on hacker news · published · +47.1hAn Empirical Study of Harness Design for Coding Agents
wek
—
09-19 05:58first on r/LocalLLaMA · published · +64.0hI enjoyed the daily HF papers today
ThomasAger
—
09-29 14:40first on r/ClaudeAI · published · +312.7hFrom Superpowers to Superbrainstorming
bobo-the-merciful
—
09-18 13:06amplified on hacker news 👑hn.story.49753878
wek
peak 225 · 59 comments · 57% of case engagement
09-19 05:58amplified on r/LocalLLaMAreddit.post.1wkdzdk
ThomasAger
peak 61 · 8 comments · 8% of case engagement
09-29 14:40amplified on r/ClaudeAIreddit.post.1wtby1j
bobo-the-merciful
peak 16 · 5 comments · 2% of case engagement
10-02 01:04amplified on hacker newshn.story.49928814
luispa
peak 2 · 0 comments · 0% of case engagement
10-09 11:34amplified on hacker newshn.story.50019040
jfaat
peak 1 · 0 comments · 0% of case engagement
10-10 16:28amplified on r/LocalLLaMAreddit.post.1x2ji7y
Express_Quail_1493
peak 0 · 11 comments · 1% of case engagement
3 more amplifiers in ainews.case_chain
09-18 14:21our radar first saw it · +48.4hdiscovery anchor: hn.story.49753878—
09-20 00:24reached heat=high · +82.4h · via ledger——

Evidence (10) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnAn Empirical Study of Harness Design for Coding Agents
Retrieved article excerpt

Open article · Retrieved 2026-09-18T14:22:36.824167+00:00

# Computer Science > Artificial Intelligence

**arXiv:2609.20804** (cs)

[Submitted on 17 Sep 2026]

# Title:An Empirical Study of Harness Design for Coding Agents

Authors:[Run-Ze Fan](https://arxiv.org/search/cs?searchtype=author&query=Fan,+R), [Zihao Zhang](https://arxiv.org/search/cs?searchtype=author&query=Zhang,+Z), [Simin Ma](https://arxiv.org/search/cs?searchtype=author&query=Ma,+S), [Yebowen Hu](https://arxiv.org/search/cs?searchtype=author&query=Hu,+Y), [Shouju Wang](https://arxiv.org/search/cs?searchtype=author&query=Wang,+S), [Kaiqiang Song](https://arxiv.org/search/cs?searchtype=author&query=Song,+K), [Fei Liu](https://arxiv.org/search/cs?searchtype=author&query=Liu,+F), [Hamed Zamani](https://arxiv.org/search/cs?searchtype=author&query=Zamani,+H), [Xiaoyang Wang](https://arxiv.org/search/cs?searchtype=author&query=Wang,+X)

View a PDF of the paper titled An Empirical Study of Harness Design for Coding Agents, by Run-Ze Fan and 8 other authors

[View PDF](https://arxiv.org/pdf/2609.20804)
[HTML (experimental)](https://arxiv.org/html/2609.20804v1)
> Abstract:Coding harnesses shape how autonomous coding agents translate model capabilities into long-horizon software-engineering performance, yet existing work typically evaluates harnesses as monolithic systems, leaving the effectiveness of individual components unclear. To enable component-level comparisons, we study this question with a lightweight coding harness whose execution loop is fixed while three components are varied: planning, action space, and context management. Across four models evaluated on SWE-Bench Verified and Terminal-Bench 2.1, we evaluate 176 matched settings spanning five context-management strategies, four context-window budgets, and targeted ablations of planning and action space. We find that: (1) Context management becomes increasingly valuable as the context-window budget tightens, with most of its benefit coming from preventing context-overflow failures. (2) Staging rule-based elision before LLM-based summarization provides the strongest overall efficiency among the context-management strategies, whereas making elided content recoverable adds machinery that models rarely use and yields no accuracy gain. (3) Planning shifts from an accuracy scaffold for weaker models to a cost saver for stronger models, with little change in accuracy. (4) Predefined tools improve performance for models with weaker bash proficiency, whereas bash-capable models can operate effectively with a bash-only interface and achieve substantially lower cost, especially on command-line-centric tasks. Trajectory-level analysis explains these effects: context management extends execution trajectories without substantially altering agent behavior, planning changes where trajectories stop, and the action space changes the granularity at which code is written. These findings inform model- and budget-aware harness design and provide a modular framework for evaluating future harness components.

|  |
| --- |
| Comments: |
| Subjects: | Artificial Intelligence (cs.AI); Computation and Language (cs.CL); Machine Learning (cs.LG); Software Engineering (cs.SE) |
| Cite as: | [arXiv:2609.20804](https://arxiv.org/abs/2609.20804) [cs.AI] |
|  | (or  [arXiv:2609.20804v1](https://arxiv.org/abs/2609.20804v1) [cs.AI] for this version) |
|  | <https://doi.org/10.48550/arXiv.2609.20804> Focus to learn more  arXiv-issued DOI via DataCite (pending registration) |

## Submission history

From: Run-Ze Fan [[view email](https://arxiv.org/show-email/1cad69a8/2609.20804)]   
 **[v1]**
Thu, 17 Sep 2026 17:58:07 UTC (6,713 KB)

Full-text links:

## Access Paper:

View a PDF of the paper titled An Empirical Study of Harness Design for Coding Agents, by Run-Ze Fan and 8 other authors

- [View PDF](https://arxiv.org/pdf/2609.20804)
- [HTML (experimental)](https://arxiv.org/html/2609.20804v1)
- [TeX Source](https://arxiv.org/src/2609.20804)

[view license](http://arxiv.org/licenses/nonexclusive-distrib/1.0/ "Rights to this article")

### Current browse context:

cs.AI

[< prev](https://arxiv.org/prevnext?id=2609.20804&function=prev&context=cs.AI "previous in cs.AI (accesskey p)")
  |   
[next >](https://arxiv.org/prevnext?id=2609.20804&function=next&context=cs.AI "next in cs.AI (accesskey n)")

[new](https://arxiv.org/list/cs.AI/new)
 | 
[recent](https://arxiv.org/list/cs.AI/recent)
 | [2026-09](https://arxiv.org/list/cs.AI/2026-09)

Change to browse by:

[cs](https://arxiv.org/abs/2609.20804?context=cs)  
[cs.CL](https://arxiv.org/abs/2609.20804?context=cs.CL)  
[cs.LG](https://arxiv.org/abs/2609.20804?context=cs.LG)  
[cs.SE](https://arxiv.org/abs/2609.20804?context=cs.SE)

### References & Citations

- [NASA ADS](https://ui.adsabs.harvard.edu/abs/arXiv:2609.20804)
- [Google Scholar](https://scholar.google.com/scholar_lookup?arxiv_id=2609.20804)
- [Semantic Scholar](https://api.semanticscholar.org/arXiv:2609.20804)

export BibTeX citation
Loading...

## BibTeX formatted citation

×

loading...

Data provided by:

### Bookmark

[BibSonomy](http://www.bibsonomy.org/BibtexHandler?requTask=upload&url=https://arxiv.org/abs/2609.20804&description=An Empirical Study of Harness Design for Coding Agents "Bookmark on BibSonomy")
[Reddit](https://reddit.com/submit?url=https://arxiv.org/abs/2609.20804&title=An Empirical Study of Harness Design for Coding Agents "Bookmark on Reddit")



Bibliographic Tools

# Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer *([What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))*

Connected Papers Toggle

Connected Papers *([What is Connected Papers?](https://www.connectedpapers.com/about))*

Litmaps Toggle

Litmaps *([What is Litmaps?](https://www.litmaps.co/))*

scite.ai Toggle

scite Smart Citations *([What are Smart Citations?](https://www.scite.ai/))*

Code, Data, Media

# Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv *([What is alphaXiv?](https://alphaxiv.org/))*

Links to Code Toggle

CatalyzeX Code Finder for Papers *([What is CatalyzeX?](https://www.catalyzex.com))*

DagsHub Toggle

DagsHub *([What is DagsHub?](https://dagshub.com/))*

GotitPub Toggle

Gotit.pub *([What is GotitPub?](http://gotit.pub/faq))*

Huggingface Toggle

Hugging Face *([What is Huggingface?](https://huggingface.co/huggingface))*

ScienceCast Toggle

ScienceCast *([What is ScienceCast?](https://sciencecast.org/welcome))*

Demos

# Demos

Replicate Toggle

Replicate *([What is Replicate?](https://replicate.com/docs/arxiv/about))*

Spaces Toggle

Hugging Face Spaces *([What is Spaces?](https://huggingface.co/docs/hub/spaces))*

Spaces Toggle

TXYZ.AI *([What is TXYZ.AI?](https://txyz.ai))*

Related Papers

# Recommenders and Search Tools

Link to Influence Flower

Influence Flower *([What are Influence Flowers?](https://influencemap.cmlab.dev/))*

Core recommender toggle

CORE Recommender *([What is CORE?](https://core.ac.uk/services/recommender))*

- Author
- Venue
- Institution
- Topic


About arXivLabs

# arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? [**Learn more about arXivLabs**](https://info.arxiv.org/labs/index.html).

[Which authors of this paper are endorsers?](https://arxiv.org/auth/show-endorsers/2609.20804) |
Disable MathJax ([What is MathJax?](https://info.arxiv.org/help/mathjax.html))
wek22559
🟧 echo.paper ⭐Across four models on SWE-Bench Verified and Terminal-Bench 2.1, the authors evaluate 176 matched settings varying context management, plannRun-Ze Fan and coauthors——
🟠 redditI enjoyed the daily HF papers today
LocalLLaMA
ThomasAger618
🟠 redditFrom Superpowers to Superbrainstorming
ClaudeAI
bobo-the-merciful155
🟧 hnHarnessTax: How Much Does the Harness Matter for Coding Agents?luispa20
🟧 hnHarnessTax: How Much Does the Harness Matter for Coding Agents?jfaat10
🟠 redditHarness: System prompt token Diabetes - Biggest offender
LocalLLaMA
Express_Quail_1493011
🟠 redditHow to build a harness that actually improves your agent (based on 57 papers)
ClaudeAI
Marmelab21030
🟧 hnWe Tested Coding Agent Harnesses. Thinking Harder Beat All of Themlandonxi78
🟧 hnLanguage model harnesses are compositional generalizers0o77720

Interpretation history

Decision trace