← Back to Paper Radar

Harness^2: Recursive Agent Harnessing for an Open World

Ruiyao Xu, Yanfei Chen, Zhongying CuiZhu, Bhavana Dalvi Mishra, Yifei Ming, Han Yu, Rujun Han, Chen-Yu Lee, Tomas Pfister
2026

Reading guide · Based on sections of the original paper

The authors propose Harness², a plug-and-play framework that refines an agent's execution harness on each incoming task without ground-truth verifiers, using a contrastive Propose–Probe–Compose step, and stores what each refinement taught in an improvement library that guides edits on later tasks.

Why read this

Practitioners running agents on unlabeled, open-ended professional tasks can use it to judge whether spending test-time compute on harness edits beats offline harness search or memory retrieval.

What the authors found

  • With one step (k=1) and Claude Opus 4.8 as editor, the authors report gains over the base harness for GLM-5 and Gemini 3.5 Flash under both OpenCode and Codex. Gains reach 11.5 points on WorkBuddy-Bench, 4.5 points on JobBench and 11.8 pp on LAB Partial, as means over three shuffled runs. Harness² beats ReasoningBank, Meta-Harness and Harness Scaling on WorkBuddy and JobBench in every configuration. On LAB, offline Meta-Harness leads in one configuration. 3.2 Main Results
  • Counting all tokens spent before submission, including improvement costs, both measured Harness² settings (Gemini, OpenCode) sit on the Pareto frontier. Moving from k=1 to k=5 raises gains over base from 4.5 to 7.5 points on JobBench and from 5.1 to 8.4 on WorkBuddy. Meta-Harness used more compute for lower scores. 4 Analysis
  • When the same model serves as executor and editor (OpenCode, k=2), all five tested models improve on all three benchmarks. This suggests the gains do not depend on a stronger editor. 4 Analysis

Main limitation

Edits are guided by behavioral contrasts and model judgment, which are sensitive to run-to-run variance and to biases the models share. The failure analysis shows the selector sometimes adopting weaker outputs. Separately, every benchmark is scored by LLM judges. Appendix F Limitations

Where to start

4 Analysis · Covers how scores scale with the recursion budget, the ablations of the library, scoping and composition, and the library-transfer results. It also explains that the leave-one-out gains are retrospective rather than online.

Abstract

LLM agents' capabilities depend not only on their underlying models but also on their execution harnesses. Recursive self-improvement (RSI) offers a promising approach to automatically evolve these harnesses. However, deploying RSI in open-world settings still faces two critical challenges. First, open-world tasks are typically unseen during the harness design phase and novel at test time, leaving no ground-truth verifiers to reliably guide online harness edits. Second, the RSI process remains highly task-specific and fails to generalize to novel scenarios. We introduce Harness^2, a plug-and-play, recursive agent harnessing framework that addresses these challenges through two connected levels of recursion. Task-level recursion refines the current task's harness using a contrastive Propose-Probe-Compose step that reliably guides edits without ground-truth verifiers, and can be scaled further via parallel or sequential recursion. Harnessing-level recursion then extracts experience from these edits to update a continual improvement harness, enabling the agent to better adapt to future tasks. Across three professional benchmarks and four model-harness configurations, a single step consistently improves GLM-5 and Gemini 3.5 Flash over their base harnesses, yielding gains of up to 11.5 points on WorkBuddy-Bench, 4.5 points on JobBench, and 11.8 percentage points on LAB, with further gains as the task-level recursion budget increases.

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