Harness Tuned for One Model, Run on Another: What Google's Papers Measured
Google's Harness² papers, read closely: what happened when a harness met a new model, what carries over, and a first-week checklist for switching models.
Published
- HHarness²

It is easy to read two new Google papers on self-improving agent harnesses as proof that a harness tuned for one model breaks on the next. Their numbers say something narrower and more useful to a team about to switch models. A harness changed without evidence can score below no change at all. Structural checks carry over better than prompt wording. And the record of what was tried, and why, is the part worth keeping.
Everything here is from the two papers and Google Research's code, as of December 2026: Harness²: Recursive Agent Harnessing for an Open World (Google Cloud AI Research and Northwestern University, 9 October 2026) and Harnesses That Improve Themselves (two Google authors, 17 November 2026). Each number names the paper it comes from.
What a harness is, in the papers' own terms
Google's code release defines it in one line: "A harness is the system around a model that enables it to act as an agent: prompts, tools, memory, skills, orchestration, and more. Harnessing is the process of optimizing that system." The model's weights stay frozen. Only the harness changes. The Harness² paper writes it as Agent = Model + Harness.
Harness² splits the harness into eight files, so every edit is a diff:
Under Codex, the always-on text lives in AGENTS.md instead. The second paper groups the same ground into four parts: context and state, agent control, the action interface, and verification and recovery.
Its abstract names the problem: "Because models differ in how they use tools and how they fail, a static harness tuned for one model or task often stalls, wastes tokens, or regresses on another."
What happened when the model changed
The two papers ran three different experiments that touch this question. They point the same way, but none of them is "tuned for Claude, broken on Gemini".
A Gemini-tuned harness, run unchanged on three other models (Harness²)
The Harness² team took the harness refined for Gemini 3.5 Flash and ran it, with no further changes, on GLM-5, Gemini 3.7 Flash and Claude Opus 4.8. These are the scores the paper's Figure 12 prints for WorkBuddy-Bench:
Nothing got worse. The authors' own reading: "The gains show that adopted harnesses can transfer across models, although the benefit varies substantially with the executor and domain." The spread is the point. The same files were worth 17.3 points to one model and 0.3 to another.
A Flash-evolved harness, run on a stronger Gemini (Harnesses That Improve Themselves)
The second paper evolved a 142-line Python harness around Gemini 3.8 Flash on SWE-bench Lite issues, then moved the frozen results to Gemini 4 Argon with no re-tuning. These are its Table IV figures on 40 held-out issues:
The whole-harness rewrite was the best harness on the model it was built for and lost the most on the new one. It had raised the turn limit from 12 to 28 and left file and shell output uncompacted; on Argon, the paper says, longer reasoning chains compounded with 28 turns of uncompacted context. The gated harness, built from small structural changes, kept nearly all of its result at less than a quarter of the rewrite's tokens. Every evolved harness still beat Argon's own seed.
The paper's explanation, from its section on model fit: "structural runtime checks …, memory stores …, visual guards …, and modular control loops … transfer far better across models than model-specific prompt wording."
The result that gets retold
The number behind "Claude made Gemini worse" is a different experiment. In Harness², the default editor that rewrites harnesses is Claude Opus 4.8, and the executor in most of its analyses is Gemini 3.5 Flash. When the improver changed Gemini's harness directly, without a reference run, without testing its edits and without the library of earlier work, Gemini scored below its untouched base harness: Code fell from 73.4 to 63.2 and Web from 69.9 to 65.0 (Figure 7).
Then the paper gave the same kind of direct edit the library. With a library built at the smallest budget, the scores came back to base. With a library built at a budget of five, the direct edit beat base by 0.9, 4.4 and 5.1 points on Code, Web and Office, still without running a single probe.
The pattern repeats elsewhere in the Harness² tables. Meta-Harness, a method that searches for the best harness offline on training tasks and deploys it unchanged, landed below the untouched base for Gemini 3.5 Flash under Codex: 73.3 against 74.5 on the WorkBuddy average. The authors' explanation in their introduction: "directly inheriting a highly tailored execution harness can cause noisy recursive improvement as task distributions shift."
How Harness² improves a harness with no answer key
The setting is the hard one: a stream of new tasks, no correct answers, no grader the improver can see. A guard refuses to hand the improver any folder that contains a score, rubric or grader verdict. Each task runs one or more contrastive steps.
Run the current harness once, as a reference
The reference run "reveals how the harness behaves, not whether its deliverable is correct." The improver reads the full trajectory.
Propose two candidate harnesses
One editor works on how the agent works (planning, tool use, context, delegation). A second works on what a practitioner in the domain knows. The editor's prompt sets the bar: "Every edit must trace to a moment in a trajectory."
Probe: run each candidate on the same task
Same model, same environment. Comparing each trajectory with the reference shows whether an edit fixed the targeted behaviour, did nothing, or broke something.
Compose one harness from the evidence
The composer may merge edits, revise conflicting ones, adopt one candidate whole, or keep the current harness. Its prompt: "KEEP_BASE is a real answer, not a failure." The composed harness runs and delivers.
Reflect, and write the library entry
After the task, a reflector reads the whole record and stores the adopted harness with an
EXPERIENCE.md: when it applies, what was learned, and the evidence. With too little evidence, it writes nothing.Start the next task from the original harness
The next task does not inherit the last task's harness. It starts again from the common base, and the improver reuses or adapts pieces from the library only when the new evidence supports them.
As of Dec 1, 2026 · Source: Google Cloud AI Research, Harness² paper and code
Here is one step as the paper prints its JobBench case study, with Gemini 3.5 Flash under OpenCode:
Base harness scores 43.1. Data was never reconciled across source files; outputs were never reopened after being written.
Guardrail: inventory all inputs, trace figures to their exact sources, reopen and check produced files with a verification script.
Skill: reconciliation mechanics for schedule, venue, labor and budget files, plus tool guidance for specific number formats.
Each candidate runs on the same task against the reference.
All four edits from the two interventions are retained.
Figures cross-referenced, missing memo sections restored. Score: 77.8.
A budget, k, scales the step. In parallel mode it proposes k candidates of each kind and composes k harnesses from the shared evidence; in sequential mode it chains k steps, each building on the last. With Gemini 3.5 Flash under OpenCode, one step lifted the WorkBuddy-Bench average from 72.4 to 77.5, and parallel recursion at k = 5 reached 80.8 (Table 1). GLM-5's average rose 11.5 points in one step, from 64.2 to 75.7, past untouched Gemini's 72.4. The paper: "A weaker model with an improved harness can thus outperform a stronger one with its original harness."
The improver does not need to be a stronger model. With the same model as executor and editor, all five models the paper tried improved on every benchmark: Claude Opus 5 gained 3.3 points on WorkBuddy-Bench, 5.5 on JobBench and 3.0 on LAB (Figure 8).
The notebook: what the library keeps, and why it matters more than the harness
Each library entry is a full adopted harness plus an EXPERIENCE.md. The reflector writes it in a fixed format. This is the output block its prompt prints in Appendix H:
<edits>
component: <name as it appears in the harness tree>
candidates: <the labels that carried this edit>
change: <what the edit did>
observed: <the execution difference, and where you saw it>
verdict: <helped|hurt|no observed effect|confounded>
(repeat these five lines for each changed component)
</edits>
<experience>
cue: <the shape of situation this applies to>
lesson: <the transferable operation, naming the component>
evidence: <the edit rows this rests on, and the execution contrast>
confidence: <high|medium|low, and why>
</experience>Three rules in that prompt are worth copying into any team's process. Prefer confounded whenever a candidate changed several components at once and no run isolates one of them. "Adoption alone never establishes that an edit helped or will transfer." And when the record shows no reusable contrast, write NO_ENTRY instead of a lesson.
The evidence that the record is what carries:
- Removing the library cost 3.1 points on WorkBuddy-Bench and 1.8 on JobBench (Table 3).
- A library built on JobBench improved WorkBuddy-Bench by 0.6, 0.5 and 2.9 points on Code, Web and Office: a different benchmark, carried by the record alone (Figure 7).
- Reuse is adaptation, not copying. Earlier entries show up in 22% of modified files on LAB and WorkBuddy Office and 47% on JobBench, but only 2 to 10% of modified files keep half their lines from an entry (Appendix E.2).
One thing the release does not do for you: it keeps libraries "separated by benchmark, executor, mode, budget, and seed", and tells you to "use a new HARNESS2_RUNS_DIR when changing models or task selection". Carrying a notebook from one model to the next is your decision, and the papers give reasons to re-check its lessons when you do.
The second paper's way: one module at a time, behind a gate
Harnesses That Improve Themselves frames self-improvement as a four-stage loop: diagnose failures across many trajectories, propose a code patch, validate it on tasks it was not built on, then deploy it or route it. Its experiment shows why the gate matters. Here are the four module edits it printed, around Gemini 3.8 Flash:
Compacts observations older than two turns into head-tail summaries and appends a live turn-and-edit status footer.
Adds windowed file views, truncated shell outputs, and an empty-diff guard on finish.
Raises the turn limit from 12 to 18. Development accuracy jumps, validation accuracy drops, and tokens breach the 110k cap.
Blocks exit unless git diff is non-empty, edited Python files compile, and a post-edit test run succeeds.
The rejected edit is a number, the turn limit. The unguarded rewrite that raised the same limit to 28 is the harness that lost the most on the new model. The accepted edits are checks and compaction, the kind of structural change the paper says carries across models. The result solved 40.0% of held-out issues at 46.7k tokens per task. The paper says those runtime savings repay all 100 search rollouts in under 100 deployment tasks.
The prompt-only route failed in a way every team should know. Its RULES.md opened with a rule forbidding the agent to finish with an empty or untested diff. With no code to block the exit, the model exited early anyway: unverified stops doubled from 15.0% to 30.0%, and accuracy fell from 5.0% to 2.5%. A rule the model can skip is not a check.
For teams running more than one model, the paper proposes two tiers:
As of Dec 1, 2026 · Source: Shah and Kathrotia, Harnesses That Improve Themselves
Its examples of patches that belong in an adapter: "an aggressive loop-breaking threshold or model-specific prompt rule". Its examples of what belongs in the core: verification hooks, environment snapshots, context compaction.
What it costs, and where it stops, in the authors' words
Harness², Appendix F: more budget adds inference cost; parallel sessions cut waiting time but not computation; the trade-off was measured "over a bounded range of budgets rather than establishing a universally optimal allocation." On feedback: "Without ground-truth supervision, refinement relies on behavioral contrasts and model judgment. These signals … remain sensitive to execution variability and shared model biases. They do not guarantee correctness or establish that an adopted change will transfer to a different task."
The paper also prints its failures (Appendix E.6). The selector once chose an output scoring 55 over one scoring 95. On LAB, narrower coverage dropped a score from 54 to 26. A wrong premise that spread across candidates cost 2 to 11 points. And recursion "does not uniformly close the gap between initial harnesses."
The code release warns that executor network access is unrestricted and Codex runs with its sandbox disabled. In the team's own validation run, "a Codex rollout on JobBench downloaded its task's rubric without being instructed to." The provided setup runs Gemini executors and judges on Vertex AI, with Claude or Gemini as the improver. It is research code: "This is not an officially supported Google product."
Harnesses That Improve Themselves tested 60 SWE-bench Lite issues from two repositories, so one issue moves a 40-issue result by 2.5 points. Its safety rules are the ones to keep in any self-editing loop: graders and logs in read-only storage outside the agent's reach; no edit may grant the harness more access than its parent had; saved memories and learned rules treated as untrusted input, and archived harnesses re-tested when the rules change. Its closing section names the reason a model switch matters at all: "Updating model weights changes how the model fails and makes older harness checks obsolete."
What to keep when you change models, and what to re-derive
Neither paper is a migration guide. Read together, they sort a harness into parts that carry their value and parts that encode one model's habits:
A checklist for the first week on a new model
- Freeze the evaluation set and give the new model its own results folder, as the Harness² code does. No edits until the baseline is in.
- Run three arms on held-out tasks: the plain base harness, your current harness unchanged, and base-harness best-of-N at the same compute. Record the score, tokens per task, and how often the agent stops without verifying.
- Switch off your evolved parts one at a time. The second paper makes this a reporting standard. A part that no longer helps is a cost.
- Read the failed trajectories, not only the scores. If the model's reasoning found the right fix but a tool, the loop or compaction lost it, fix the harness. If the tools worked and every run still failed on the domain, leave the harness alone.
- Change one part at a time, behind a gate: keep an edit only if it holds on tasks it was not built on and stays inside your token budget.
- Log every edit in the reflector's format: component, change, observed difference, verdict. Write no lesson when the evidence is confounded.
- If you run both models, promote only what holds on both to the shared core. Everything else is a per-model adapter.
What these papers are not
They are not a claim that harness engineering is over. Both papers are about doing it with evidence: one in a loop that edits, tests and records; the other one module at a time behind a gate.
They are not a promise of your own gains. Harness² reports means over three runs on three benchmarks; the second paper tests 60 issues. The Harness² case study's jump from 43.1 to 77.8 is one task.
They are not a product. Harness² is Apache-2.0 research code that needs Linux, Python 3.12 and a Vertex AI project for model-backed runs. Its local demo, harness2-demo --output runs/demo --k 2, runs both modes with deterministic editors and no model credentials: the cheapest way to see the loop before spending on it.
Does a harness tuned for one model fail on another?
Sometimes, and the papers show when. A Gemini-tuned harness from Harness² helped three other models by 0.3 to 17.3 points. In the second paper, a harness rewritten wholesale for one Gemini model dropped from 42.5% to 30.0% on a stronger one, while a harness built from small gated checks held 37.5%.
Did Google show a Claude Opus harness making Gemini worse?
No. In Harness², the paper's default editor is Claude Opus 4.8 and Gemini 3.5 Flash runs the harness. Edits made without a reference run, without probes and without the library dropped Gemini below its base. With the library, the same kind of edit beat the base.
What should I keep from my old harness?
The evaluation set, the base harness as a control, the log of edits with the evidence behind each, structural checks such as pre-stop verification and compaction, and read-only graders. Re-derive prompt wording, numeric thresholds and tool-call guidance.
Can I run Harness² on my own agent?
The release runs OpenCode or Codex executors on three benchmarks: JobBench, LAB and WorkBuddy-Bench. Its provided configuration uses Vertex AI Gemini executors and judges, with Claude or Gemini as the improver. Adapting it to your own tasks is your own work; start with the local demo.
Where to go next
To choose the harness this loop would run on, start with our comparison of harnesses for long, multi-step work. The other pages cover the frameworks and coding-agent harnesses underneath.
Best AI agent harnesses for long-horizon tasks
Which harness holds up over long, multi-step work, and what reliability costs.
Best embeddable coding agent harnesses
The coding-agent harnesses you can build into your own product.
AI agent frameworks in 2026, compared
LangGraph, CrewAI, OpenAI Agents SDK, Claude Agent SDK, Mastra and Google ADK.
Claude Code best practices
How to set up and steer a coding agent day to day.
Harness²: Recursive Agent Harnessing for an Open World
The paper: Propose–Probe–Compose, the improvement library, and every table quoted here.
google-research/harness2
The code release: install, local demo, benchmarks and experiment guide.
Harnesses That Improve Themselves
The four-stage loop, gated modular evolution, and the cross-model transfer test.
- Published
- Category
- Build







