Google's Harness²: Agents That Improve Without Retraining
Summary: Google researchers released Harness², an open-source framework that improves an AI agent by editing the prompts, tools and memory around it while the model itself stays frozen. The reported gains are real but conditional, and the setup has sandbox caveats you should read before running it.
Most agent upgrades mean waiting for a better model. Harness² goes the other way: it leaves the model weights alone and rewrites everything around them. The paper was posted to arXiv on October 9, 2026 (arXiv:2610.14224, "Harness²: Recursive Agent Harnessing for an Open World"), and the code lives at google-research/harness2 on GitHub under the Apache 2.0 license. Coverage picked up around October 18.
What a harness is, and what gets edited
A harness is the scaffolding that turns a model into an agent: the system prompt, tool instructions, memory, guardrails and so on. According to MarkTechPost's write-up, Harness² exposes eight editable components, each mounted as a file: system prompt, guardrails, memory, tool guidance, subagents, skills, scripts and plugins (middleware). No parameters are trained.
How it works
The paper describes two levels of recursion.
- Task level: a "Propose, Probe, Compose" step. After running a task with the base harness, an editor proposes candidate edits, and only edits backed by observed behavior are kept. This works on new tasks with no ground-truth verifier, which is the point of the "open world" in the title.
- Harnessing level: lessons from earlier edits are stored (the repo uses an
EXPERIENCE.mdfile, per MarkTechPost) so later tasks start with better proposals. Each new task still begins from the base harness.
A budget parameter, --k, controls how many candidates are probed or how many refinement steps are chained.
What the numbers say
The authors tested three benchmarks (WorkBuddy-Bench, JobBench and a legal benchmark called LAB) across four model-and-harness setups, using GLM-5 and Gemini 3.5 Flash as the models. With a single step, they report gains of up to 11.5 points on WorkBuddy-Bench, up to 4.5 points on JobBench, and up to 11.8 percentage points on LAB.
Those are maximums. In the table MarkTechPost reproduces, GLM-5 under OpenCode went from 64.2 to 75.7 on WorkBuddy-Bench, while GLM-5 under Codex gained only 1.2 points on JobBench (23.6 to 24.8). The same article says Gemini 3.5 Flash under OpenCode reached 80.8 on WorkBuddy-Bench at k=5. All results are researcher-reported, and Data Studios notes that independent replication is still needed.
Trying it
The GitHub README lists Linux, Python 3.12 and uv as requirements. The model-backed benchmarks also need Node.js 20 or newer, the Google Cloud CLI and model configuration in a .env file. OpenCode is the default executor, and Codex is selected with --substrate cx. There is a demo that needs no model credentials:
uv venv --python 3.12 .venv
source .venv/bin/activate
uv pip install -e '.[render]'
harness2-demo --output runs/demo --k 2
That is a cheap way to see the loop work before you spend anything on API calls.
The catches
- Cost: optimization adds extra runs per task, as MarkTechPost warns, and Data Studios adds that the payoff depends on recurring use of the same kind of task.
- Sandboxing is on you: Data Studios notes the executors have unrestricted network access and Codex's sandbox is disabled in the setup, so benchmark rubrics could be reachable unless you restrict the network yourself. Run it in an isolated environment.
- Carried-over errors: a persistent harness can keep a bad lesson or overfit to a benchmark, so test on unseen tasks.
What this means for you
If you run agents on a repeated workflow, such as support triage or document review, this is worth an experiment because you are tuning files, not weights, though each optimization step costs extra runs. If your tasks are one-off, the extra runs probably won't pay back. Note that the benchmark runs need the Google Cloud CLI and a Vertex AI project, so budget for that setup.
Comments
Post a Comment