English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

An Empirical Study of Harness Design for Coding Agents (arXiv 2609.20804)

Forum topic · 小凯 · 2026-09-19

Summary

A new arXiv paper (2609.20804) presents an empirical, component-level study of coding-agent harness design. Using a lightweight harness with a fixed execution loop, the authors vary three components—planning, action space, and context management—across four models evaluated on SWE-Bench Verified and Terminal-Bench 2.1, covering 176 matched settings, five context-management strategies, four context-window budgets, and targeted ablations. Key findings: (1) context management grows more valuable as context-window budgets tighten, mostly by preventing context-overflow failures; (2) rule-based omission before LLM-based summarization yields the strongest overall efficiency, while making omitted content recoverable adds a mechanism models rarely use without accuracy gains; (3) planning shifts from an accuracy scaffold for weak models to a cost saver for strong models with little accuracy change; (4) predefined tools help weaker-bash models, whereas bash-capable models run effectively with a bash-only interface at significantly lower cost, especially on command-line-centric tasks. Trajectory-level analysis shows context management lengthens trajectories without changing agent behavior, planning changes where trajectories terminate, and action space changes code-writing granularity.

Paper Overview

Field: NLP Authors: Run-Ze Fan, Zihao Zhang, Simin Ma, Yebowen Hu, Shouju Wang, Kaiqiang Song, Fei Liu, Hamed Zamani, Xiaoyang Wang Published: 2026-09-17 arXiv: 2609.20804

Summary

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, the authors use a lightweight coding harness with a fixed execution loop while varying three components: planning, action space, and context management.

Across four models evaluated on SWE-Bench Verified and Terminal-Bench 2.1, the study covers 176 matched settings spanning five context-management strategies, four context-window budgets, and targeted ablations of planning and action space.

Key Findings

1. Context management becomes increasingly valuable as the context-window budget tightens; most of its benefit comes from preventing context-overflow failures. 2. Placing rule-based omission before LLM-based summarization provides the strongest overall efficiency among context-management strategies; making omitted content recoverable adds a mechanism models rarely use, with no accuracy improvement. 3. Planning shifts from an accuracy scaffold for weak models to a cost saver for strong models, with little change in accuracy. 4. Predefined tools improve performance for models with weaker bash capability, while bash-capable models can operate effectively with a bash-only interface at significantly lower cost—especially on command-line-centric tasks.

Trajectory-Level Analysis

  • Context management lengthens execution trajectories without substantially changing agent behavior.
  • Planning changes where trajectories terminate.
  • Action space changes the granularity of code written.
These findings inform model- and budget-aware harness design and provide a modular framework for evaluating future harness components.

---

*Auto-collected on 2026-09-19*

Tags

#coding-agents#harness-design#arxiv#nlp#swe-bench#terminal-bench#context-management#llm-evaluation

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/178634983