Google Cloud AI Research has open-sourced Harness², a framework that makes AI agents perform better without touching the model itself. The model weights stay frozen. What changes is everything built around the model.
The code is on GitHub under the Apache-2.0 license. The research paper, titled Harness²: Recursive Agent Harnessing for an Open World, is on arXiv. The Hugging Face paper page lists it as published on October 9, and it already has over 100 upvotes.
What is a “harness”?
Think of an AI model as an engine. A harness is the car built around it: prompts, tools, memory, skills and the logic that coordinates them. Harnessing is the work of tuning that car.
Normally, getting a better agent means retraining the model, which costs a lot of money and time. Harness² skips that. As the official README puts it, the framework works in an “open world,” where the agent meets tasks nobody planned for and there is no answer key to check against.
The 8 parts developers can edit
Harness² exposes eight components, each stored as a file:
- System prompt
- Guardrails
- Memory
- Tool guidance
- Subagents
- Skills
- Scripts
- Plugins (middleware)
Together they control how context is built, how tools are used, how work is delegated and how the agent behaves inside its tool loop.
How the recursion works
The framework improves the agent on two levels.
Within a task. The agent first tries the task with its normal setup. An editor then proposes two candidate changes. One targets general weaknesses like planning or tool use. The other targets knowledge specific to that domain. Both run on the same task, and a composer keeps only the edits that actually helped, judged by how the agent behaved. The paper calls this Propose, Probe, Compose. It works without labelled data or test cases.
Across tasks. After each task, a reflector saves the adopted harness and an EXPERIENCE.md file of lessons. That library guides future tasks, though every new task still starts from the base harness.
Developers can also scale the effort with a budget called k. Parallel mode tests many candidates at once. Sequential mode refines the same harness step after step.
READ MORE: Google का बड़ा AI धमाका! Gemini 4 Argon चुटकियों में खोजेगा Software की खामियां
What the numbers say
The team tested on three benchmarks: WorkBuddy-Bench, JobBench and Harvey’s LAB. The executors were Gemini 3.5 Flash and GLM-5, each run under OpenCode and Codex. According to MarkTechPost’s report, the default editor model was Claude Opus 4.8, and all scores are averages over three runs.
After a single refinement step:
| Setup | WorkBuddy | JobBench | LAB (partial) |
|---|---|---|---|
| Gemini 3.5 Flash, OpenCode | 72.4 → 77.5 | 31.5 → 36.0 | 79.9 → 81.9 |
| Gemini 3.5 Flash, Codex | 74.5 → 77.5 | 33.9 → 35.3 | 71.6 → 75.6 |
| GLM-5, OpenCode | 64.2 → 75.7 | 20.6 → 24.2 | 59.6 → 71.4 |
| GLM-5, Codex | 64.4 → 75.3 | 23.6 → 24.8 | 58.1 → 65.9 |
Source: Harness² paper, as reported by MarkTechPost.
Some takeaways:
- Weaker setups gain the most. GLM-5 under OpenCode rose by 11.5 points on WorkBuddy-Bench. After one step, it even beat the base Gemini 3.5 Flash on that benchmark.
- Every setup improved. All four configurations got better on all three benchmarks.
- Gains are uneven. The smallest was GLM-5 under Codex on JobBench, up just 1.2 points.
- More effort helps. With
k=5in parallel mode, Gemini under OpenCode reached 80.8 on WorkBuddy, per the project page. - Fewer steps, too. On WorkBuddy-Bench, three of the four setups needed fewer steps per task.
How to try it
The setup is aimed at Linux with Python 3.12 or 3.13 and uv. A local demo needs no model credentials:
bash
uv venv --python 3.12 .venv
source .venv/bin/activate
uv pip install -e '.[render]'
harness2-demo --output runs/demo --k 2
Real benchmark runs need Node.js 20+, the Google Cloud CLI and a Vertex AI project. LAB also needs Pandoc and Poppler, and WorkBuddy-Bench needs Docker. The setup guide and benchmark guide cover the details.
Things to keep in mind
- It costs money to run. The README warns that model-backed runs incur API costs and suggests starting with a small task selection. Each task also needs extra runs for the proposals and probes.
- Be careful with security. The README says executor network access is unrestricted and Codex runs with its turned off. Developers should set their own network limits before running any evaluation.
- It is not an official Google product. The repository states this clearly, and it is version 0.1.0, so expect rough edges.
Why it matters
Most of the AI race so far has been about bigger and better models. Harness² points to another route: improve the system around a model and you can get real gains from a model you already have. For smaller teams that cannot afford to train models, that is a useful idea. The repository already has over 5,000 stars and 450 forks, so developers are paying attention.
Sources: Harness² on GitHub, research paper on arXiv, Hugging Face paper page, project page, MarkTechPost.