Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses
Jiaxu Lin, Shichun Liu, Chengjun Pan, Lizhi Lin, Shihan Dou, Zhiheng Xi et al. · 2026 · 216 citationsRead the paper
All 11 authors
Xuanjing Huang, Hang Yan, Zhenhua Han, Tao Gui, Yu-Gang Jiang
Harnesses are now central to coding-agent performance, mediating how models interact with tools and execution environments. Yet harness engineering remains a manual craft, because automating it faces a heterogeneous action space across editable components, voluminous trajectories that bury actionable signal, and edits whose effect is hard to attribute. We introduce Agentic Harness Engineering (AHE), a closed loop that addresses these challenges through three matched observability pillars: (1) component observability gives every editable harness component a file-level representation so the action space is explicit and revertible; (2) experience observability distills millions of raw trajectory tokens into a layered, drill-down evidence corpus that an evolving agent can actually consume; and (3) decision observability pairs every edit with a self-declared prediction, later verified against the next round's task-level outcomes. Together, these pillars turn every edit into a falsifiable contract, so harness evolution proceeds autonomously without collapsing into trial-and-error. Empirically, ten AHE iterations lift pass@1 on Terminal-Bench 2 from 69.7% to 77.0%, surpassing the human-designed harness Codex-CLI (71.9%) and the self-evolving baselines ACE and TF-GRPO. The frozen harness transfers without re-evolution: on SWE-bench-verified it tops aggregate success at 12% fewer tokens than the seed, and on Terminal-Bench 2 it yields +5.1 to +10.1pp cross-family gains across three alternate model families, indicating the evolved components encode general engineering experience rather than benchmark-specific tuning. Ablations localize the gain to tools, middleware, and long-term memory rather than the system prompt, suggesting factual harness structure transfers while prose-level strategy does not.
What the full text shows
Working prototype- AHE iterations increased pass@1 on Terminal-Bench 2, surpassing human-designed and self-evolving baselines. — 69.7% to 77.0% pass@1 over 10 iterations (Terminal-Bench 2 using GPT-5.4)
- The evolved harness transferred to SWE-bench-verified with higher aggregate success and lower token cost than the seed. — 12% fewer tokens than seed (SWE-bench-verified, frozen harness transfer)
- The evolved harness provided cross-family gains when applied to three alternate model families. — +5.1 to +10.1pp pass@1 (Terminal-Bench 2, frozen harness transfer)
- AHE achieved higher cost-efficiency (successes per million tokens) across multiple repositories compared to ACE, TF-GRPO, and NexAU0. — 1.64 Succ/Mtok aggregate vs 1.10 (ACE) and 1.27 (TF-GRPO) (SWE-bench-verified)
- Gains were localized to structural components rather than the system prompt. (Ablation study on tools, middleware, and long-term memory)
- Setup
- Evolution performed on Terminal-Bench 2 (89 tasks); transfer evaluated on SWE-bench-verified (500 tasks). Backing model: GPT-5.4.
- How
- AHE implements a closed-loop evolution system using three observability pillars: component observability (file-level harness representation), experience observability (distilled trajectory evidence), and decision observability (prediction-based edit manifests). An 'Evolve Agent' iteratively modifies the harness (tools, middleware, memory, and prompts) based on analysis from an 'Agent Debugger'.
- Limitations
- Untested on broader programming languages and repository-scale deployments. · Cross-model transfer results may be conflated with operating-point coupling (step budget/timeouts). · Lacks a complete guardrail stack for long-horizon harness cleanup and misuse prevention.
Summarized by Gemma 4 from the open-access full text · 29 Nov 2026. Read it