# Harness^2: Recursive Agent Harnessing for an Open World <!-- ref: @content/web/arxiv/2026-10-09-harness-2-recursive-agent-harnessing-for-an-open-world tags: [agent-harness, recursive-self-improvement, test-time-adaptation, coding-agents, benchmarks, llm-agents] version: 2 updated_at: 2026-11-21T17:13:55.889Z --> **[Read the original](https://arxiv.org/abs/2610.14224)** *Synthesized from Ruiyao Xu, Yanfei Chen, Zhongying CuiZhu, Bhavana Dalvi Mishra, Yifei Ming, Han Yu, Rujun Han, Chen-Yu Lee and Tomas Pfister's paper on arXiv, 2026-10-09.* The paper argues that an LLM agent's performance depends on both the underlying model and the execution harness around it, and that recursive self-improvement could evolve that harness automatically. It proposes Harness^2, a plug-and-play framework with two connected levels of recursion. The authors report one-step gains on three professional benchmarks for GLM-5 and Gemini 3.5 Flash, with gains rising as the task-level recursion budget grows. ## Core Thesis The authors contend that open-world deployment of recursive self-improvement faces two obstacles: novel test-time tasks have no ground-truth verifier to guide edits, and task-specific improvement tends not to generalize. Harness^2 addresses both by refining the harness per task without ground-truth feedback and then distilling what those refinements teach into a reusable improvement library. No model weights are updated. ## Key Insights - **Execution harness as the editable unit.** The harness has K=8 editable components: system prompt, guardrails, memory, skills, tool guidance, scripts, subagents, and a middleware plugin. - **Propose-Probe-Compose at task level.** A reference execution is run and two candidates are proposed: an invariant edit targeting cross-domain agentic deficiencies (such as planning or tool use) and a domain-specific edit. Each candidate is run on the same task under matched conditions, and behavioral contrasts against the reference are treated as evidence rather than verified correctness. A composer then merges supported changes, resolves conflicts, adopts one candidate, or keeps the current harness. - **Two recursion modes.** Parallel recursion uses k reference executions, k candidates per scope, and k independent compositions; sequential recursion chains k contrastive steps, each conditioned on the previous harness. For k>1 an agentic selector picks among anonymized deliverables without synthesizing new content. - **Harnessing-level recursion.** After each task, a harness improvement library is updated with adopted harnesses and EXPERIENCE.md entries, but only when execution contrasts support the lesson. - **Headline one-step gains (k=1).** Up to +11.5 points on WorkBuddy-Bench (GLM-5 under OpenCode, 64.2 to 75.7), up to +4.5 on JobBench, and up to +11.8 points on LAB Partial (GLM-5 under OpenCode, 59.6 to 71.4). - **Recursion budget helps.** Parallel recursion at k=5 raises the WB-code score from 76.5 (k=1) to 80.8, and WB-office from 79.5 to 83.4. The "+ Recursion" column in the paper adds roughly +2.6 to +6.7 points over the k=1 Harness2 result. - **Baselines are mixed.** ReasoningBank falls as much as 6.6 points below the base harness on coding tasks, and Harness Scaling underperforms the base in seven of twelve benchmark-configuration pairs. - **Ablations.** On WorkBuddy-Bench and JobBench, the full method scores 77.5 and 36.0; removing the library gives 74.4 and 34.2, removing scoping gives 74.6 and 32.3, and removing composition gives 75.9 and 34.1. - **Same-model editing works.** All five tested models, from GLM-5 to Claude Opus 5, improve on every benchmark when they act as both executor and editor. GLM-5 gains 13.7 points on LAB. - **Setup.** Benchmarks are WorkBuddy-Bench (Code, Web, Office), JobBench (judged by Claude Opus 4.8), and LAB, the Harvey Legal Agent Benchmark (100 held-out tasks, judged by Claude Sonnet 4.6). Executors are Gemini 3.5 Flash and GLM-5 under OpenCode and Codex, with Claude Opus 4.8 as editor. Means and standard deviations come from three shuffled-order runs. - **Limits the authors state.** Recursion does not uniformly close the gap between initial harnesses; the WorkBuddy-Bench OpenCode-Codex gap widens for GLM-5. ## Actionable Takeaways - Treat the agent harness (system prompt, guardrails, memory, skills, tool guidance, scripts, subagents, middleware) as a separately tunable artifact, not a fixed wrapper around the model. - When no ground-truth verifier exists, compare a candidate edit against a reference run on the same task and use the behavioral differences as evidence, then merge only the supported changes. - Keep a library of adopted harness changes and lessons, and update it only when execution contrasts back the lesson, so that per-task refinements carry forward to later tasks. - If compute allows, raise the task-level recursion budget (parallel k) before assuming a single refinement pass is enough; the paper's tables show gains increasing with k. ## Notable Quotes The paper's text does not contain direct quotes from named speakers that met the attribution bar for this summary; the findings above are paraphrased from the arXiv abstract and HTML full text. --- *Related: `@content/youtube/yifan-bth/claude-code-beat-cursor-4-2-heres-why-im-still-using-both` · `@content/youtube/cole-medin/is-kimi-k3-really-that-good-don-t-just-believe-the-hype` · `@content/youtube/aie/the-death-of-developer-advocates-stephanie-jarmak-sourcegraph` · `@content/web/hacker-news/2026-11-18-mastra-factory` · `@content/web/aiweekly/2026-11-01-harvard-coding-agents-flat-shipped-output`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*