An Empirical Study of Harness Design for Coding Agents
Summary
This paper empirically studies harness design for coding agents, evaluating components like planning and context management to improve performance in software engineering tasks.
View Cached Full Text
Cached at: 09/18/26, 03:02 AM
Paper page - An Empirical Study of Harness Design for Coding Agents
Source: https://huggingface.co/papers/2609.20804
Abstract
Codingharnessesshapehowautonomouscodingagentstranslatemodelcapabilitiesintolong-horizonsoftware-engineeringperformance,yetexistingworktypicallyevaluatesharnessesasmonolithicsystems,leavingtheeffectivenessofindividualcomponentsunclear.Toenablecomponent-levelcomparisons,westudythisquestionwithalightweightcodingharnesswhoseexecutionloopisfixedwhilethreecomponentsarevaried:planning,actionspace,andcontextmanagement.AcrossfourmodelsevaluatedonSWE-BenchVerifiedandTerminal-Bench2.1,weevaluate176matchedsettingsspanningfivecontext-managementstrategies,fourcontext-windowbudgets,andtargetedablationsofplanningandactionspace.Wefindthat:(1)Contextmanagementbecomesincreasinglyvaluableasthecontext-windowbudgettightens,withmostofitsbenefitcomingfrompreventingcontext-overflowfailures.(2)Stagingrule-basedelisionbeforeLLM-basedsummarizationprovidesthestrongestoverallefficiencyamongthecontext-managementstrategies,whereasmakingelidedcontentrecoverableaddsmachinerythatmodelsrarelyuseandyieldsnoaccuracygain.(3)Planningshiftsfromanaccuracyscaffoldforweakermodelstoacostsaverforstrongermodels,withlittlechangeinaccuracy.(4)Predefinedtoolsimproveperformanceformodelswithweakerbashproficiency,whereasbash-capablemodelscanoperateeffectivelywithabash-onlyinterfaceandachievesubstantiallylowercost,especiallyoncommand-line-centrictasks.Trajectory-levelanalysisexplainstheseeffects:contextmanagementextendsexecutiontrajectorieswithoutsubstantiallyalteringagentbehavior,planningchangeswheretrajectoriesstop,andtheactionspacechangesthegranularityatwhichcodeiswritten.Thesefindingsinformmodel-andbudget-awareharnessdesignandprovideamodularframeworkforevaluatingfutureharnesscomponents.
View arXiv pageView PDFAdd to collection
Get this paper in your agent:
hf papers read 2609\.20804
Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash
Models citing this paper0
No model linking this paper
Cite arxiv.org/abs/2609.20804 in a model README.md to link it from this page.
Datasets citing this paper0
No dataset linking this paper
Cite arxiv.org/abs/2609.20804 in a dataset README.md to link it from this page.
Spaces citing this paper0
No Space linking this paper
Cite arxiv.org/abs/2609.20804 in a Space README.md to link it from this page.
Collections including this paper0
No Collection including this paper
Add this paper to acollectionto link it from this page.
Similar Articles
HarnessTax: How Much Does the Harness Matter for Coding Agents?
This article investigates the impact of the harness on coding agents, analyzing how different setups affect their performance and outcomes in coding tasks.
Same Model, Different Harness: Different Coding-Agent Results
This paper investigates how changing the harness configuration in a coding agent impacts performance on coding benchmarks when the model remains fixed. The study shows that a treatment harness, which shortens older tool results to manage context, improves task completion rates, especially under tight context constraints.
@dair_ai: Super interesting work from Zoom and colleagues. If you maintain a hand-built coding harness, there are some great insi…
This article summarizes an empirical study on harness design for coding agents, showing that context management prevents overflow failures, rule-based elision before LLM summarization is cost-effective, and planning's role varies with model strength.
Code as Agent Harness
This survey paper presents a unified view of code as the operational substrate for agent reasoning and execution in agentic systems, organizing the discussion around three layers: harness interface, mechanisms, and scaling.
Harness design for long-running application development
Anthropic engineers detail a multi-agent harness design using generator and evaluator agents to improve Claude's ability to build complete, high-quality frontend applications autonomously over long durations.