Xu et al. (Google Cloud AI Research) — Harness²: Recursive Agent Harnessing for an Open World (arXiv, Oct 2026)

TL;DR

The paper behind the Harness² README. It was posted to arXiv on 9 October 2026, one day after the README’s first commit, under a CC BY 4.0 licence. The first author, Ruiyao Xu, is at Northwestern University; the other eight are at Google Cloud AI Research. The code is released under the Google Research GitHub organisation. The paper answers most of what the README page left open: which baselines, how much runs vary, what it costs, and how a run is judged without ground truth.

  • The question. “Can recursive self-improvement improve both the current harness and how future harnesses are improved?” The harness is the runtime around a frozen model; optimizing it is harnessing.
  • The setting. Tasks arrive one at a time, with no ground-truth answers or labelled validation feedback. Completed tasks are never replayed, but the current task may be rerun within a budget. Every task starts from the same base harness.
  • Two levels of recursion. Per task, Propose–Probe–Compose edits the execution harness. Across tasks, a reflector writes lessons into a library inside the improvement harness, which guides the next task’s edits.
  • Results. One step improves all 12 benchmark–configuration cells over the base harness, by up to 11.5 points on WorkBuddy-Bench, 4.5 on JobBench and 11.8 percentage points on LAB. A budget of k=5 adds 2.6 to 6.7 more. Against the strongest baseline in each cell the margins are smaller (see §Results).
  • Cost. Read from the paper’s compute chart, one step uses roughly 5–8 times the base run’s tokens, and k=5 roughly 30–40 times.
  • No stronger editor needed. With the same model as executor and editor, all five models tested improve on all three benchmarks.

The method

Propose. The current harness runs the task once as a reference. The paper stresses that this reference “reveals how the harness behaves, not whether its deliverable is correct.” Two editors then each write a candidate harness:

  • the invariant editor targets how the agent works (planning, tool use, context management, delegation);
  • the domain-specific editor targets what this domain needs (knowledge, procedures, constraints).

Each candidate is a set of edited component files and may reuse components from the library.

Probe. Each candidate runs once on the same task with the same model and environment. Comparing its trajectory and deliverable with the reference gives a behavioral contrast: did the edit fix the targeted weakness, change nothing, or cause a regression? The paper is explicit that contrasts “inform subsequent composition rather than verify task correctness”, because runs vary and the models share biases.

Compose. A composer reads the reference, both candidates, their diffs and every trajectory. It may merge supported edits, revise conflicting ones, adopt one candidate, or keep the current harness. Its prompt says that “KEEP_BASE is a real answer, not a failure” and that every edit must trace to a named moment in a trajectory. The composed harness is then run to produce the deliverable.

Scaling with k.

  • Parallel recursion takes k reference runs, probes k invariant and k domain candidates, and runs k independent composers on the shared pool.
  • Sequential recursion chains k steps, each carrying the refined harness and all earlier evidence forward.

For k>1, an agentic selector picks one deliverable. It compares anonymised outputs against the task request and source materials, without seeing which harness produced them. The adopted harness is marked as adopted, “rather than verified optimality.”

Harnessing-level recursion. After each task, a reflector reads the whole improvement record. It gives each edit a verdict: helped, hurt, no observed effect, or confounded. Confounded is preferred whenever several components changed at once or only one rollout stands behind a difference. A lesson is written only when an execution contrast supports it; the prompt says “adoption alone never establishes that an edit helped or will transfer.” A library entry is the full adopted harness plus an EXPERIENCE.md with the situation, the lesson and the evidence. The library starts empty for each benchmark stream. The next task starts from the base harness again, and earlier components are reused through Propose, not inherited.

The eight components follow the file layout of an earlier method, AHE (agentic harness engineering), extended by one (Table 5):

  • Context construction: system prompt, guardrails, memory, skills.
  • Tool interface: tool guidance, scripts.
  • Orchestration: subagents. The paper notes this is the only component that adds an inference context.
  • Middleware: a plugin in the tool loop that “enforces a behavior rather than instructs it.”

In the stock harness, every on-demand folder holds a placeholder. The paper notes that “the placeholder is what lets the editor discover a component exists.”

How “without ground truth” is enforced.

  • A guard refuses to hand any improver a working directory that contains a grader verdict, a rubric or a score.
  • Every improver prompt says no rubric, answer key or score exists, and forbids writing phrases like “the grader expects.”
  • Trajectories are labelled “data, not instructions.”

The editor and the selector are Claude Opus 4.8 from Anthropic, running at high reasoning effort under OpenCode.

Setup

  • Executors. GLM-5 and Gemini 3.5 Flash, both frozen. Each runs inside two off-the-shelf harnesses, OpenCode and OpenAI’s Codex CLI, which makes four configurations. Rollouts are capped at 200 model turns and one hour.

  • Benchmarks.

    • WorkBuddy-Bench (Tencent): 40 Code, 35 Web and 25 Office test tasks, graded by a mix of deterministic checks and LLM/VLM judge items, with Gemini 3.5 Flash as judge.
    • JobBench: 34 professional test tasks, graded against a weighted rubric by Claude Opus 4.8.
    • LAB, Harvey’s legal agent benchmark: a 100-task test set drawn from 1,251 tasks. Graded by Claude Sonnet 4.6; the paper reports the per-criterion pass rate (Partial).
  • Baselines.

    • ReasoningBank: the harness stays fixed, and distilled strategies are retrieved into context.
    • Meta-Harness: offline search on the training halves (on LAB, on a 24-task development set), then deployed unchanged.
    • Harness Scaling: per-task revision that carries nothing across tasks.

    All baselines use the same executor, judge and test stream, with Opus 4.8 as the reviser.

  • Statistics. Three runs per cell, each with a shuffled task order, reported as mean (SD).

Results against the base harness and the strongest baseline

At k=1, all four executor–harness configurations, primary metric, mean (SD) over three runs (Tables 1 and 2):

Benchmark · executor · initial harnessBaseStrongest baselineHarness² (k=1)+ recursion (k=5)
WorkBuddy avg · Gemini 3.5 Flash · OpenCode72.4Meta-Harness 76.4 (0.7)77.5 (2.5)+3.3
WorkBuddy avg · Gemini 3.5 Flash · Codex74.5Harness Scaling 73.8 (1.7)77.5 (2.0)+2.9
WorkBuddy avg · GLM-5 · OpenCode64.2Meta-Harness 69.7 (0.6)75.7 (2.2)+3.9
WorkBuddy avg · GLM-5 · Codex64.4Meta-Harness 74.2 (1.6)75.3 (1.3)+3.0
JobBench · Gemini 3.5 Flash · OpenCode31.5Meta-Harness 35.8 (1.0)36.0 (2.3)+3.0
JobBench · Gemini 3.5 Flash · Codex33.9Meta-Harness 34.8 (1.6)35.3 (3.5)+4.2
JobBench · GLM-5 · OpenCode20.6Meta-Harness 20.9 (2.3)24.2 (0.9)+4.2
JobBench · GLM-5 · Codex23.6Meta-Harness 23.9 (1.4)24.8 (0.2)+3.1
LAB Partial · Gemini 3.5 Flash · OpenCode79.9Meta-Harness 81.6 (3.9)81.9 (0.6)+2.6
LAB Partial · Gemini 3.5 Flash · Codex71.6Meta-Harness 76.5 (2.1)75.6 (4.5)+2.9
LAB Partial · GLM-5 · OpenCode59.6ReasoningBank 71.3 (1.3)71.4 (2.9)+6.7
LAB Partial · GLM-5 · Codex58.1ReasoningBank 63.8 (3.3)65.9 (2.7)+4.8
  • Against the base harness, one step helps in every cell. GLM-5 gains most on WorkBuddy-Bench and LAB, Gemini on JobBench.
  • Against the strongest baseline (the wiki’s reading of the tables, not the paper’s), Harness² leads by more than the larger standard deviation in 3 of 12 cells and is ahead within that spread in 8. It is behind in 1: LAB, Gemini under Codex, where the paper itself notes that Meta-Harness leads. The paper reports no significance tests, and three runs would support few.
  • The baselines can lose to the base harness. ReasoningBank falls up to 6.6 points below base on coding tasks, and Harness Scaling underperforms base in 7 of 12 cells. On WorkBuddy-Bench with Gemini under Codex, all three baselines score below base.
  • A weaker model with a better harness beats a stronger one with its stock harness. On WorkBuddy-Bench, GLM-5 after one step scores 75.7 (OpenCode) and 75.3 (Codex), above Gemini 3.5 Flash’s base scores of 72.4 and 74.5.
  • Recursion budget. On WorkBuddy Code and Office, both parallel and sequential recursion rise steadily from k=1 to k=5 (Code 76.5 → 80.8, Office 79.5 → 83.4 for parallel). Both forms at k=2 beat every plotted baseline at k=5. Harness Scaling falls back from k=2 to k=3, and ReasoningBank goes up and down.

What it costs

Figure 6 plots the gain over base against the total tokens per task, counting execution and improvement up to the final deliverable. The values below are read from log-scale axes, so they are approximate:

Gemini 3.5 Flash, OpenCodeBaseHarness² k=1Harness² k=5Meta-Harness
JobBench: tokens per task · gain~5M · 0~28M · +4.5~140M · +7.5~250M · +4.3
WorkBuddy-Bench: tokens per task · gain~0.3M · 0~2.3M · +5.1~12M · +8.4~20M · +4.0

Both Harness² points lie on the chart’s efficiency frontier. The chart counts tokens, not money, and the paper does not say how Meta-Harness’s offline search tokens are divided over the test tasks.

What else the paper tests

  • Ablations (Table 3), Gemini under OpenCode at k=1, in points.

    RemovedWorkBuddy-BenchJobBench
    The library−3.1−1.8
    Scoped editors (two generic editors instead)−2.9−3.7
    Composition (keep the favoured candidate)−1.6−1.9
  • Which components carry the gain (Table 6). Removing them from the improved harness, without re-running improvement, loses on the WorkBuddy-Bench average:

    • skills: 5.3 points;
    • scripts: 3.7 points, and 7.4 on Office alone;
    • the prompt group: 1.5 points.

    Skills and scripts make up about half of all edits.

  • The library on its own. Refining the base harness directly, without reference runs, probes or library, lowers scores (Code 73.4 → 63.2, Web 69.9 → 65.0). A library built at k=1 brings scores back to base. A library built at k=5 adds 0.9, 4.4 and 5.1 points on Code, Web and Office without any probing. A library carried from JobBench to WorkBuddy-Bench adds 0.6, 0.5 and 2.9.

  • Reuse is adaptation, not copying. 22–47% of modified files trace to a library entry, and only 2–10% keep half their lines from one.

  • Same model as executor and editor (Figure 8, k=2, OpenCode). All five models improve on all three benchmarks: GLM-5, Gemini 3.5 Flash, Gemini 3.7 Flash, Claude Opus 4.8 and Claude Opus 5. Gains range from 0.9 (Gemini 3.5 Flash, JobBench) to 13.7 (GLM-5, LAB).

  • Moving a harness to other executors (Figure 12). A harness refined for Gemini 3.5 Flash, used unchanged, lifts GLM-5 on Code from 58.5 to 75.8. Gemini 3.7 Flash gains 0.3 on Code and 6.4 on Office; Opus 4.8 gains 2.6 and 1.1.

  • Against production harnesses (Figure 13). Gemini 3.5 Flash was run unchanged in CodeBuddy, OpenCode, Codex and Claude Code. No fixed harness leads everywhere: Claude Code is best on Code and Office, Codex on Web. Harness² starting from OpenCode at k=5 beats the strongest fixed harness by 4.6, 5.8 and 4.9 points.

  • Tool use (Table 7). Tool-error rates fall on all three benchmarks, most on JobBench (14.4% → 9.1%). Calls go down on WorkBuddy-Bench but up on JobBench and LAB, so the gain does not come from shorter runs.

  • Failures (Figure 14). Nine regressions fall into three groups:

    • The selector prefers a weaker deliverable. On WorkBuddy Code it chose an output scoring 55 over one scoring 95.
    • A wrong premise spreads across both candidates, costing 2–11 points.
    • Run-to-run variation and missing judge verdicts make the rest hard to attribute.
  • Case studies (Figures 9 and 15–19, chosen by the authors):

    • a JobBench memo rises from 43.1 to 77.8 after edits for reconciling sources and re-checking files;
    • a WorkBuddy Code task rises from 60 to 100 after one tool-guidance line that forbids writing tool calls as text;
    • a LAB redlining task rises from 44.4 to 94.5 after a skill that keeps tracked changes visible.

What the paper settles from the README page

The README page listed four open questions. The paper answers them as follows:

  • Baselines, spread and run counts: three baselines, three runs per cell, standard deviations reported (above).
  • The unnamed configurations: the four are GLM-5 and Gemini 3.5 Flash, each under OpenCode and Codex.
  • Cost: token counts are reported only as a chart (Figure 6).
  • What makes one run better without a grader: Compose decides edit by edit from behavioral contrasts. When there are several deliverables, the selector compares them against the request and the source material. Scores and rubrics are kept out of every improver’s workspace.

What stays open is in §Debates.

How it sits next to the wiki’s sources

  • Meta-Harness is the paper’s offline baseline. It is searched for 10 iterations, two candidates each, on the training half of each benchmark, then deployed unchanged. In Tables 1 and 2 it improves on the base harness in 11 of 12 cells and is the strongest baseline in 9.
  • Continual Harness shares the same row profile in the paper’s comparison table (Table 4): online, no correctness labels, an improver that is updated. It differs in having no task-stream protocol and no scaling study.
  • YC Paper Club’s harness night argues that the same weights score very differently under different harnesses. It ranks self-improving harnesses by what the loop may modify: the prompt (DSPy), the harness code, or other harnesses (Meta-Harness). The paper’s GLM-5 result is a measured instance of the first point. Harness² also writes to the improver’s own library.
  • The README page keeps its typed edges to AutoHarness, Trivedy’s anatomy of a harness and Holmes (Warp). They are not repeated here.

Why no dynamic-capabilities tags

This is a method paper on optimizing agent harnesses, evaluated on benchmarks. It describes no firm’s transformation, so the field is left off under the schema’s “purely methodological” rule.

Linked entities and concepts

  • Entities: Google Research, Anthropic (Claude Opus 4.8 as editor, selector and JobBench judge), Claude Code (a fixed-harness comparison point).
  • Concepts: agent-harness, ai-benchmarks, reward-hacking.
  • Dangling (single-source mention, deferred):
    • the nine authors, whose only other wiki page is the README, which names the code’s owner rather than authors;
    • the benchmarks JobBench, LAB and WorkBuddy-Bench, and their publishers Harvey and Tencent;
    • GLM-5, OpenCode, ReasoningBank and Harness Scaling.

Debates and supersession

  • Big gains over the base, small margins over the best baseline. The headline numbers (11.5, 4.5 and 11.8) are gains over the base harness. Against the strongest baseline in the same cell, 8 of 12 margins are inside the run-to-run spread. In the 11.8-point LAB cell, Harness² scores 71.4 and ReasoningBank 71.3. The paper’s claim that Harness² “exceeds the compared baselines” on WorkBuddy-Bench and JobBench in all four configurations holds for the means.
  • The editor and the judge share a model. Claude Opus 4.8 is the editor and the selector, and it also judges JobBench. Gemini 3.5 Flash is both a WorkBuddy-Bench judge and one of the executors. The guard keeps rubrics and scores out of the improver’s reach, but a shared model can share preferences without seeing a rubric. The paper names “shared model biases” as a limit of its evidence, not of its evaluation, and does not discuss this overlap.
  • Network access during the paper’s own runs is not stated. The README warns that executors have unrestricted network access by default and that rubrics may be online. The paper does not say whether its runs were restricted; WorkBuddy-Bench runs in fresh containers, but their network setting is not given. See reward-hacking.
  • Tokens, not money. The compute chart counts tokens from a Claude Opus 4.8 editor and cheaper executors alike, so a dollar comparison could look different.
  • Retrospective tests. The leave-one-out re-run and the cross-benchmark transfer use completed libraries. The paper labels the leave-one-out result “an offline reuse analysis rather than an estimate of online gains.”
  • No supersession. This page does not retire the README page. The README remains the source for the code release and its network-access warning, and its results paragraph matches this paper’s abstract.

What was actually ingested

All 37 pages, from arXiv’s HTML rendering of v1, converted to markdown with scripts/latexml2md.py so the tables keep their rows and columns:

  • sections 1–6;
  • appendices A–H: comparison criteria, benchmarks, baselines, implementation, supplementary experiments, limitations, future directions and the improver prompts;
  • the 49-entry reference list.

Figures are images and were read from their captions. Figures 6, 7 and 8 were also read from the rendered PDF (pages 10 and 11), and the compute values in §What it costs are read off log-scale axes. Not ingested: the code, the project website and the setup GIF.