Google's Harness²: AI agents that optimize their own harness

Google Research's Harness² improves an AI agent's harness (prompts, tools, memory) without touching model weights, for gains of up to 11.8 points.

By HexaLab · · 4 min read

In 30 seconds

  • A harness is everything around a model that turns it into an agent: prompts, tools, memory, skills, orchestration.
  • Harness² (Google Research, October 2026) lets the agent improve that harness itself, with model weights frozen and no ground-truth answers.
  • Author-reported gains: up to +11.5 points on WorkBuddy-Bench and +11.8 points on LAB for GLM-5 and Gemini 3.5 Flash.
Contents 6
  1. What exactly is a harness?
  2. How Harness² improves itself: two levels of recursion
  3. Why this is different from fine-tuning
  4. The results: up to +11.8 points without retraining
  5. How to try it
  6. HexaLab's take

What if the way to make an AI agent better was not to swap the model, but to change everything around it? That is the bet behind Harness², a Google Research project released in October 2026: a system in which the agent rewrites its own "harness" (prompts, tools, memory, skills) task after task, without changing a single model weight. According to the paper and the official repository, a single Harness² step improved GLM-5 and Gemini 3.5 Flash by up to 11.5 points on WorkBuddy-Bench, 4.5 points on JobBench and 11.8 percentage points on LAB's partial pass rate. As of 21 November 2026, the google-research/harness2 repo had 24,606 stars.

24,606GitHub starsas of 21/11/2026
+11.8points on LAB (max)
8editable harness components

What exactly is a harness?

On its own, a large language model only predicts text. To become an agent — one that reads files, runs commands and remembers what it did — it has to be wrapped in a system. The Harness² README defines it as "the system around a model that enables it to act as an agent: prompts, tools, memory, skills, orchestration". Harnessing is optimizing that system.

In practice, Harness² exposes eight editable components: the system prompt, guardrails, memory, tool guidance, subagents, skills, scripts and plugins. If you have ever written a CLAUDE.md file, wired up MCP tools or drafted a system prompt for a coding assistant, you have done harnessing by hand.

This is no longer a footnote. The industry has turned it into a product category: DeepSeek's open-source agent framework is literally called DeepSeek Harness (284,802 stars on 21 November 2026), and Moonshot notes on the Kimi K3.1 Pro model card that its own benchmarks are run inside the Claude Code harness. In other words, a model's score also depends on the wrapper you run it in.

How Harness² improves itself: two levels of recursion

The core idea is twofold — hence the "²".

1. Task-level recursion. For a given task, the system refines the execution harness through a contrastive step called Propose–Probe–Compose: it proposes edits to the harness, probes how each edit changes the agent's behaviour on the same task, then composes a refined harness from the observed differences. Crucially, this works without ground-truth feedback — you don't need to know the right answer.

2. Harnessing-level recursion. A second, persistent harness — the improvement harness — keeps the lessons learned from each task. The agent therefore does not start from scratch: over time, it gets better at improving its harnesses.

One Harness² step
  1. 1Propose

    The agent suggests harness edits (prompt, memory, tools…)

  2. 2Probe

    Each variant is run on the same task

  3. 3Compose

    Behavioural differences are combined into a refined harness

  4. 4Remember

    Lessons go into the persistent improvement harness

All of this happens with frozen model weights: no fine-tuning, no training GPUs. The project offers two recursion modes and supports OpenCode and Codex as executors.

Two ways to recurse
ParallelSequential
HowProbes K general and K domain-specific candidate harnessesChains K Propose–Probe–Compose steps
OutputK compositions from shared evidenceOne refined harness, accumulated evidence
StrategyExplore widerRefine deeper

Source: google-research/harness2 README

Why this is different from fine-tuning

The classic way to improve a model on a specific domain is fine-tuning: you retrain part of the weights on labelled examples. It works, but it is expensive (data, GPUs, time) and rigid — every new version of the base model means starting over. And with a closed model you can only reach through an API, it is often simply not an option.

Harness² works one floor up. The model stays a black box; what changes is the instructions it receives, the tools it is given, what it remembers and how work is split between subagents. Three practical consequences:

  • Portability: an improved harness is a set of readable files (prompts, skills, scripts) that you can review, version and move around.
  • No answer key needed: the Propose–Probe–Compose step compares runs with each other rather than against an expected answer, which fits the open-ended tasks of the real world — hence the "open world" in the title.
  • Compounding: thanks to the improvement harness, every solved task makes the next one easier to optimize.

It is also a path for teams that have no control over the model: you can improve GLM-5 or Gemini 3.5 Flash without ever touching their weights.

The results: up to +11.8 points without retraining

The figures published by the authors (nine researchers, from Ruiyao Xu to Tomas Pfister) cover GLM-5 and Gemini 3.5 Flash. These are maximum gains reported by the team itself, not averages and not independent measurements.

Maximum gain after a single Harness² step
LAB (partial pass)11.8pts
WorkBuddy-Bench11.5pts
JobBench4.5pts

Source: google-research/harness2, arXiv 2610.14224 (self-reported)

For LAB, the figure is in percentage points of partial pass rate. What stands out is the scale: more than 10 points is often the gap between two model generations. Here it comes from changing only the wrapper.

  1. Repository created

    google-research/harness2, Apache-2.0, Python

  2. Paper on arXiv

    Harness^2: Recursive Agent Harnessing for an Open World (2610.14224)

  3. 24,606 stars

    GitHub snapshot

How to try it

The repo is Python and installs with uv. The local demo, per the README:

uv venv --python 3.12 .venv
source .venv/bin/activate
uv pip install -e '.[render]'
harness2-demo --output runs/demo --k 2

For benchmarks that call a real model, the README asks you to copy the environment file and authenticate with Google Cloud:

cp .env.example .env
gcloud auth application-default login

Then a first run on the LAB benchmark, in parallel mode, limited to one task:

harness2-setup lab
harness2-check --bench lab
harness2 --bench lab --k 1 --mode parallel --only-domains antitrust-competition --max-tasks 1
harness2-judge --bench lab --k 1 --mode parallel
harness2-report --bench lab --k 1 --mode parallel

Even if you never run the code, the lesson applies today: treat your system prompt, tool guidance and memory as code to version, test and compare — not as text you write once and forget.

HexaLab's take

Harness² puts a name and a method on something many teams do by trial and error: the harness matters as much as the model. The announced gains are impressive but self-reported, measured on benchmarks chosen by the authors, and model-backed runs go through Google Cloud authentication. Worth watching closely — and in the meantime, a good reason to version and test your own system prompts properly.

Verified sources

  1. GitHub — google-research/harness2 github.com
  2. arXiv — Harness^2: Recursive Agent Harnessing for an Open World arxiv.org
  3. GitHub — deepseek-ai/deepseek-harness github.com
  4. Hugging Face — Kimi K3.1 Pro model card huggingface.co

Written and checked by HexaLab from the sources listed.

Share WhatsApp LinkedIn X Facebook