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))