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

Tools
  • HHarness²
Harness Tuned for One Model, Run on Another: What Google's Papers Measured

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:

ComponentFileWhen the model sees it
System promptsystemprompt.mdEvery call
Guardrailsguardrails.mdEvery call
MemoryLongTermMEMORY.mdEvery call
Tool guidancetool_descriptions/tool_guidance.mdEvery call
Skillsskills/<n>/SKILL.mdOnly when the skill is loaded
Scriptsscripts/<name>.pyWhen run through the shell
Subagentssub_agents/<n>/AGENT.mdIn their own context, through the task tool
Pluginplugin/<name>.tsInside the tool loop: it enforces rather than instructs

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:

ExecutorCode: own base → Gemini-tuned harnessOffice: own base → Gemini-tuned harness
GLM-558.5 → 75.8 (+17.3)73.7 → 76.3 (+2.6)
Gemini 3.7 Flash79.9 → 80.2 (+0.3)78.8 → 85.2 (+6.4)
Claude Opus 4.876.5 → 79.1 (+2.6)83.4 → 84.5 (+1.1)

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:

HarnessOn Gemini 3.8 FlashTokens per taskMoved to Gemini 4 ArgonTokens per task
Seed, unchanged5.0%114.8k10.0%140.4k
Prompt rules only (RULES.md)2.5%60.5k15.0%143.9k
Whole harness rewritten, no gate42.5%451.6k30.0%284.7k
One module at a time, behind a gate40.0%46.7k37.5%64.8k

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.

  1. 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.

  2. 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."

  3. 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.

  4. 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.

  5. 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.

  6. 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.

The harness is rebuilt per task. The record is what carries forward.One Harness² task at a budget of one, and what the next task inherits
Within one task
1 · ReferenceRun the base harnessSee how it behaves, not whether it is right
2 · ProposeTwo candidatesOne on how the agent works, one on the domain
3 · ProbeRun each candidateSame task, same model, same environment
4 · ComposeMerge, adopt or keep baseEach decision tied to a trajectory moment
After the task
5 · ReflectRead the whole recordWhich edit helped, hurt or did nothing
6 · LibraryHarness plus EXPERIENCE.mdKept only when the evidence supports it
7 · Next taskStarts from the base harnessReuses library pieces through Propose

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:

One Propose–Probe–Compose step, from the Harness² case study
Reference

Base harness scores 43.1. Data was never reconciled across source files; outputs were never reopened after being written.

Agent · Propose · how it works

Guardrail: inventory all inputs, trace figures to their exact sources, reopen and check produced files with a verification script.

Agent · Propose · the domain

Skill: reconciliation mechanics for schedule, venue, labor and budget files, plus tool guidance for specific number formats.

Probe

Each candidate runs on the same task against the reference.

Agent · Compose

All four edits from the two interventions are retained.

Re-run

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:

Text
<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:

Four harness edits through one validation gate, from Harnesses That Improve Themselves
context_mgr.py · accepted

Compacts observations older than two turns into head-tail summaries and appends a live turn-and-edit status footer.

action_aci.py · accepted

Adds windowed file views, truncated shell outputs, and an empty-diff guard on finish.

control.py · rejected

Raises the turn limit from 12 to 18. Development accuracy jumps, validation accuracy drops, and tokens breach the 110k cap.

verify.py · accepted

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:

Promote a patch to every model only when it holds on every modelThe two-tier workflow for one harness serving several models
Each candidate patch
1A patch passes its own gateValidated on tasks it was not built on
2Run it on every target modelScore and tokens, model by model
Then one of two places
Shared coreImproves or holds neutral on all models
Per-model adapterHelps one model, reverses another

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:

What it isWhy, from the papers
KeepYour held-out evaluation set, and the untouched base harness as a controlBoth papers measure every result against the same starting harness on tasks the improver never saw
KeepThe log of edits: what changed, the trajectory moment that motivated it, and its verdictHarness² with the record beat base with no probing; without it, the same kind of edit fell below base
KeepStructural checks: pre-stop verification, compaction, empty-diff and exit guardsThey "transfer far better across models than model-specific prompt wording"
KeepRead-only graders and logs, and your permission limitsSelf-editing loops weaken tests and edit logs when those sit in their reach
Re-derivePrompt wording and model-specific rulesThe second paper's main example of what reverses across models
Re-deriveNumbers: turn limits, loop-breaker thresholds, token budgetsThe 12-to-28 turn rewrite lost the most on the new model; 12-to-18 failed the gate
Re-deriveTool-call guidance written for one model's mistakesModels differ in "how they format tool arguments, follow negative instructions, and decide when to stop"
Re-deriveEvery lesson marked low-confidence or confoundedThe reflector itself treats them as guesses

A checklist for the first week on a new model

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. Log every edit in the reflector's format: component, change, observed difference, verdict. Write no lesson when the evidence is confounded.
  7. 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.

Published
Category
Build
Related Articles
Claude Buddy: What Happened to the Terminal Pet?

Claude Buddy: What Happened to the Terminal Pet?

Why /buddy stopped working in Claude Code, what the maintainer said, and how to tell the terminal pet from Anthropic’s Desktop Buddy hardware project.Dec 1, 2026Build
NotebookLM MCP

NotebookLM MCP

Connect Claude Code to Google's NotebookLM MCP server. See who can use it, how to add sources, and which community tools can answer notebook questions.Dec 1, 2026Build
Grok Build TUI: How to bring your terminal work across

Grok Build TUI: How to bring your terminal work across

Which command brings your settings or sessions into Grok Build, how Cursor’s harness runs workflows, and what stays on your laptop when you steer from iOS.Dec 1, 2026Build
Claude Code CLI: How to Start and When to Use Desktop or VS Code

Claude Code CLI: How to Start and When to Use Desktop or VS Code

Install Claude Code in your shell, approve your first edit, and choose between the terminal, the desktop Code tab and the VS Code extension.Dec 1, 2026Build
Cursor to Grok Build: What Changes for Your Team

Cursor to Grok Build: What Changes for Your Team

Keep your editor, sessions and third-party models. See what the Agents Window beta adds and which Cursor mentions to change on December 7.Nov 30, 2026Build
Claude Ultracode

Claude Ultracode

Use Claude Code’s ultracode setting for one task, one session or every launch. See which jobs justify parallel agents and how to watch your plan usage.Nov 30, 2026Build
Gemini Enterprise Agent Platform: What It Is, What It Costs, and How to Start

Gemini Enterprise Agent Platform: What It Is, What It Costs, and How to Start

Find the new names for Vertex AI services, see how the platform differs from employee-facing Gemini Enterprise, and follow Google’s first agent quickstart.Nov 30, 2026Build
LLM Council: What It Is, What It Costs, and How to Run It

LLM Council: What It Is, What It Costs, and How to Run It

Follow one question through Andrej Karpathy’s LLM Council, run the original app locally, and see when a second model opinion is worth reading.Nov 30, 2026Build
Newsletter

One letter, every Sunday.Working systems, not hot takes.

Weekly. No spam. Unsubscribe anytime.