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.
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
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.
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.
- 1Propose
The agent suggests harness edits (prompt, memory, tools…)
- 2Probe
Each variant is run on the same task
- 3Compose
Behavioural differences are combined into a refined harness
- 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.
| Parallel | Sequential | |
|---|---|---|
| How | Probes K general and K domain-specific candidate harnesses | Chains K Propose–Probe–Compose steps |
| Output | K compositions from shared evidence | One refined harness, accumulated evidence |
| Strategy | Explore wider | Refine 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.
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.
- Repository created
google-research/harness2, Apache-2.0, Python
- Paper on arXiv
Harness^2: Recursive Agent Harnessing for an Open World (2610.14224)
- 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 2For 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 loginThen 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 parallelEven 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
- GitHub — google-research/harness2 github.com
- arXiv — Harness^2: Recursive Agent Harnessing for an Open World arxiv.org
- GitHub — deepseek-ai/deepseek-harness github.com
- Hugging Face — Kimi K3.1 Pro model card huggingface.co
Written and checked by HexaLab from the sources listed.