The short answer
Harness² is a free, open-source framework from Google Research that tries to make AI agents better at their work by rewriting the instructions, tools and memory around a model, rather than retraining the model itself. We installed it and ran its free local demo: it finished two practice tasks with no failures and carried a lesson learned on the first task into the second. The demo proves the machinery works; it does not reproduce the headline benchmark gains, which need paid cloud AI models.
“Self-improving AI” sounds like science fiction. Harness² is something much more down to earth, and more interesting for it. It was released in October 2026 alongside a research paper from Google Cloud AI Research and Northwestern University, and the code sits on GitHub under the Apache 2.0 licence. Here is what it does, what we saw when we ran it, and who should care.
What is a “harness”?
A large language model (LLM) on its own just predicts text. To turn it into an agent that can do a job, you wrap it in a harness: the system prompt it reads first, rules about what it must not do, notes it keeps between steps, guidance on which tools to use, reusable “skills”, helper scripts, sub-agents it can hand work to, and plugins that shape what happens inside its tool loop.
The Harness² README lists exactly those eight editable parts. Today most teams tune them by hand: an engineer watches the agent fail, tweaks a prompt, adds a tool and tries again. Harness² automates that tuning, and it leaves the model’s weights untouched.
How Harness² works
The “squared” in the name refers to two loops, or levels of recursion.
Loop 1: Propose, Probe, Compose
For each task, a harness editor proposes changes to the harness, some general and some specific to the field. Harness² then probes each change by running the same task again with the edited harness, and a composer composes a refined harness from the edits that made a difference. Crucially, it does this by comparing how the runs behaved, not by checking against a correct answer. That matters because in the real world, nobody hands an agent an answer key for a task it has never seen.
Loop 2: keeping the lessons
After each task, an “experience reflector” files the winning harness and the lessons behind it into a persistent improvement library. The next task starts with that library, so the system should get better at improving itself over time. You can spend more effort on loop 1 in two ways: parallel mode tries several candidates side by side, while sequential mode refines one harness step after step.
What we did, and what we saw
On 2 December 2026 we cloned the repository from GitHub, installed it with the uv package manager on Python 3.12 under Linux, and ran Google’s free local demo with a recursion budget of two:
$ harness2-demo --output runs/demo --k 2
Local demo: 2 tasks completed; 0 failed.
It finished in about 13 seconds. The demo works on two small accounting “ledger” tasks and tests both recursion modes. Its summary file recorded:
- 2 tasks done, 0 failed
- 28 executions of candidate harnesses and 32 editor calls
- Before task 1, the improvement library was empty in both modes. Before task 2, it held one lesson in each mode, carried over from the first task.
That last line is loop 2 in action: something learned on one task was waiting for the next. The demo’s starting harness ships with a deliberately buggy helper script that ignores negative entries when totalling a ledger. The lesson our run stored was simple: “Include both signs when summing.”
We want to be clear about what this does and does not show. The demo uses scripted, deterministic “editors” in place of a real AI model, so it proves the installation and the pipeline work. It is not a test of how much Harness² improves a real agent, and we did not run it on real models or benchmarks.
The gains Google reports
The paper tested two models, GLM-5 and Gemini 3.5 Flash, in four model and harness set-ups across three professional benchmarks. It reports that a single improvement step lifted both models over their starting harnesses, with gains of up to:
- 11.5 points on WorkBuddy-Bench (office, web and code tasks)
- 4.5 points on JobBench (professional work)
- 11.8 percentage points on LAB, a legal benchmark from Harvey, measured on its partial pass rate
The authors say a bigger recursion budget brings further gains. These are best-case “up to” figures from the researchers themselves, not averages, and independent reproductions will matter. It is the same caution we gave when one model posted two very different benchmark scores.
Who it is for, and what it costs to go further
Harness² is research code for developers and AI teams, not an app for everyday users. The README says plainly that it is “not an officially supported Google product”. It runs agents through the OpenCode executor by default and also supports OpenAI’s Codex.
The demo is free. Going further is not. Real runs need Node.js 20 or newer, the Google Cloud CLI, Docker for WorkBuddy-Bench, a Google Cloud project with Vertex AI model access, and paid API usage for every executor, improver and judge call. The README warns that model-backed runs incur costs and suggests starting with a single task. It also notes that agents have unrestricted network access by default, so anyone running it seriously should lock that down first.
Why it matters
Most organisations use AI models through an API. They cannot retrain them, but they can change the harness. Harness² keeps every improvement in plain files, such as a rewritten prompt or a fixed script, so a person can read and review exactly what changed. That is a more transparent kind of “self-improvement” than tinkering with a model’s weights.
It also raises familiar questions. Agents that rewrite their own rules need careful oversight, as we saw when OpenAI’s own agents tried to switch off their safety monitors. And as always-on assistants such as Anthropic’s Claude Duet take on longer jobs, tools that help them learn from experience will matter more. For the basics, see our guide to what AI agents are and who is responsible for them in the UK.
Frequently asked questions
What is Harness²?
Harness² is an open-source framework from Google Research that improves AI agents by automatically editing the prompts, tools, memory, skills and scripts around a model, without retraining the model.
Is Harness² free?
The code is free under the Apache 2.0 licence, and the local demo needs no AI model or account. Real benchmark runs use paid cloud AI models through Google Cloud’s Vertex AI, so they cost money.
Does Harness² retrain the AI model?
No. The model’s weights stay fixed. Harness² changes only the harness around the model and stores lessons in a library that later tasks can use.
Did Modern Robotics test it on real AI models?
No. We installed Harness² and ran its free local demo, which uses scripted editors instead of a real model. It completed 2 tasks with 0 failures and carried a lesson into the second task. The benchmark gains in this article are as reported by the researchers.
What do you need to run Harness²?
For the demo: Linux, Python 3.12 and the uv package manager. For real benchmarks you also need Node.js 20 or newer, the Google Cloud CLI, Docker for WorkBuddy-Bench and Vertex AI model access.
Is Harness² an official Google product?
No. It comes from Google Research, but its README says it is not an officially supported Google product. It is research code.
