An Empirical Study of Harness Design for Coding Agents
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
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.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 32 of its 37 references that are in the map. First posted on arXiv 17 Sep 2026.
Builds on
32 of 37 references.
Closest ancestors · 11
Same direction, newest first
- 2026Same Model, Different Harness: Different Coding-Agent Results26 Aug
- 2026Inside the Scaffold: A Source-Code Taxonomy of Coding Agent Architectures3 Apr
- 2026Beyond Resolution Rates: Behavioral Drivers of Coding Agent Success and Failure2 Apr
- 2026Qwen3-Coder-Next Technical Report28 Feb
- 2026GLM-5: from Vibe Coding to Agentic Engineering17 Feb
- 2025Confucius Code Agent: Scalable Agent Scaffolding for Real-World Codebases11 Dec
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
- 2024MASAI: Modular Architecture for Software-engineering AI Agents17 Jun
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
- 2024Executable Code Actions Elicit Better LLM Agents1 Feb
Other references · 21
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 515
- 2026Kimi K2.5: Visual Agentic Intelligencecited by 449
- 2021Recursively Summarizing Books with Human Feedbackcited by 287
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
- 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
- 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarizationcited by 132
9 more
- 2025ACON: Optimizing Context Compression for Long-horizon LLM Agentscited by 126
- 2024CodeR: Issue Resolving with Multi-Agent and Task Graphscited by 89
- 2025Memory as Action: Autonomous Context Curation for Long-Horizon Agentic Taskscited by 62
- 2025NVIDIA Nemotron 3: Efficient and Open Intelligencecited by 54
- 2024Do Advanced Language Models Eliminate the Need for Prompt Engineering in Software Engineering?cited by 19
- 2025Sculptor: Empowering LLMs with Cognitive Agency via Active Context Managementcited by 17
- 2025AgentArch: A Comprehensive Benchmark to Evaluate Agent Architectures in Enterprisecited by 8
- 2026LCM: Lossless Context Managementcited by 3
- 2026LLM Agents Are Latent Context Managers: Eliciting Self-Managed Context via State Proprioceptioncited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Code as Agent Harness
- 2026Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents -- A Source-Code Study of Eleven Systems
- 2026Don't Blame the Large Language Model: How Agent Harness Evolution Shapes Coding Agent Quality
- 2026Harness-of-Harness: Multi-Day Autonomous Software Development with Continual Improvement
- 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses
- 2026Composing Task-specific Agent Harnesses at Test Time with Reusable Primitives
- 2026Harness or Model? Isolating the Harness Effect in Agentic Coding with a Contamination-Controlled Private Suite
- 2026Harness Engineering for Predictable Agentic Systems: An Empirical Study of Deterministic Execution Constraints