← Back to Paper Radar

An Empirical Study of Harness Design for Coding Agents

Run-Ze Fan, Zihao Zhang, Simin Ma, Yebowen Hu, Shouju Wang, Kaiqiang Song, Fei Liu, Hamed Zamani, Xiaoyang Wang
2026

Reading guide · Based on sections of the original paper

The authors use a modular coding harness with a fixed ReAct loop to show that context management, planning, and action-space choices have conditional effects that depend on context budget, model capability, and task type, rather than being universally helpful defaults.

Why read this

Practitioners configuring agents for SWE-Bench-style or terminal tasks can use it to choose harness components by context window and model strength, using matched accuracy and dollar-cost comparisons.

What the authors found

  • The authors find that context management matters most when the window is tight. Averaged across the four models, the success gap between managed tiers (T1–T4) and no management (T0) falls from 35.7 to 2.7 points on SWE-Bench Verified and from 9.5 to 2.8 points on Terminal-Bench 2.1 as the budget grows from 32k to 128k. The narrowing gap tracks the decline in T0 overflow failures. 3.2 Main Results
  • At T4/128k with planning on, the action-space ablation shows a crossover. Bash-only gave Nemotron-3 550B higher success (+3.6 points SWE-Bench, +5.6 Terminal-Bench) at 53% and 30% lower cost. For Mistral-Medium-3.5, the full tool set was 23.2 points better on SWE-Bench, while bash-only was 6.7 points better on the shell-centric Terminal-Bench. For Nemotron-3 30B, bash-only significantly hurt success. 3.2 Main Results
  • For the weakest model, Nemotron-3 30B, removing planning collapsed the median SWE-Bench trajectory from 40 to 5 turns, and 68.6% of runs ended without an edit (versus 27.8% with planning). For the stronger models, planning mainly trimmed post-edit verification, lowering turns and cost with little accuracy change. 4 Analysis

Main limitation

Planning and action space were tested only at T4/128k, with one run per task. On Terminal-Bench's 89 tasks, many contrasts are not significant. The action-space change also bundles prompts, state tracking, and diagnostics, so its effect cannot be attributed to tool choice alone. Limitations

Where to start

3.2 Main Results · Check Tables 3–4 for per-model success and cost by tier and budget, including which cells are significant. Note that T4's efficiency edge and the rarely used recall mechanism are claims best read against those cost columns.

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.

Generated automatically from paper sections on 2026-11-28.