Agentic AI
Automated harness engineering boosts coding AI performance by 7+ percentage points
Researchers introduce a feedback-driven system that automatically refines how AI coding agents interact with tools, eliminating manual engineering work.
A new research framework called Agentic Harness Engineering (AHE) automatically improves how AI coding agents operate by continuously refining the "harnesses" that mediate their interaction with tools and execution environments. The approach achieves notable empirical gains without relying on hand-tuned configurations.
The core challenge#
Harnesses—the technical scaffolding that connects coding agents to their execution context—are crucial to agent performance. However, refining them has traditionally required manual work. The challenge stems from three interrelated problems: the action space for editing harness components is vast and poorly structured, task trajectories generate enormous volumes of data that obscure useful signals, and it remains difficult to attribute performance changes to specific edits.
Three observability pillars#
The AHE framework addresses these obstacles through three complementary mechanisms:
- Component observability structures every editable harness element as an independent, file-level representation, making the action space explicit and reversible
- Experience observability compresses millions of raw trajectory tokens into a layered, navigable corpus that an evolving agent can actually use to reason about improvements
- Decision observability associates each edit with a self-declared prediction, then validates it against the next iteration's task-level outcomes
This pairing of edits with predictions transforms harness evolution into a series of falsifiable contracts, enabling autonomous refinement without degenerating into undirected trial-and-error.
Empirical results#
Ten cycles of AHE iteration lifted performance on Terminal-Bench 2 from 69.7% to 77.0%—surpassing both the human-engineered Codex-CLI harness (71.9%) and self-evolving baselines ACE and TF-GRPO. The learned harness transferred effectively to new settings: on SWE-bench-verified, it achieved top aggregate success while using 12% fewer tokens than the initial version. Across three alternative model families tested on Terminal-Bench 2, the evolved harness delivered cross-family gains of +5.1 to +10.1 percentage points, indicating that the improvements encode generalizable engineering principles rather than benchmark-specific adjustments.
Ablation studies revealed that gains concentrated in tools, middleware, and long-term memory components, while system prompt changes contributed little. This finding suggests that structural harness design transfers across contexts, whereas prose-level strategic instructions do not.

