What is Harness² (Harness2)?
Harness² (Harness2) is the code release for a Google Cloud AI Research paper, "Recursive Agent Harnessing for an Open World" (arXiv 2610.14224, 9 October 2026). A harness is everything around the model: system prompt, guardrails, memory, tool guidance, subagents, skills, scripts and plugins. Harness² edits those eight parts while the model stays frozen.
It works at two levels. On each task, a Propose-Probe-Compose step has an editor model propose changes, runs the candidates on the same task, and composes a refined harness from the differences between runs, without an answer key. Across tasks, a per-domain library keeps adopted harnesses and lessons backed by evidence to guide the next task. The task-level step can run in parallel (k general and k domain candidates) or in sequence (k rounds). Executors are OpenCode by default or Codex, and the release ships runners for three benchmarks: JobBench, LAB (legal work) and WorkBuddy-Bench. The README states that it is not an officially supported Google product.
Is Harness² (Harness2) worth it?
Harness² puts numbers behind an idea many agent builders already suspect: the files and rules around a model can be tuned automatically, per task, while the model stays fixed. In the paper, a single Propose-Probe-Compose step improved GLM-5 and Gemini 3.5 Flash under both OpenCode and Codex, with gains of up to 11.5 points on WorkBuddy-Bench, 4.5 points on JobBench and 11.8 percentage points on LAB's criterion pass rate. With Gemini 3.5 Flash under OpenCode, raising the budget k from 1 to 5 lifted the gain over the base harness from 4.5 to 7.5 points on JobBench and from 5.1 to 8.4 on WorkBuddy-Bench.
The baselines make the result more convincing. The authors compare against ReasoningBank, Harness Scaling and Meta-Harness, which searches harnesses offline on a training split, and report that Meta-Harness used more compute than Harness² at k = 5 for a lower score. Ablations hold up too: removing the cross-task library cost 3.1 points on WorkBuddy-Bench and 1.8 on JobBench. All of these are the authors' own figures, the default editor is Claude Opus 4.8, and LAB is scored by a Claude Sonnet 4.6 judge on a 100-task test set, so independent replication matters before you treat the gains as settled. The authors also ran it with the same model as editor and executor, and Claude Opus 5 still gained 3.3, 5.5 and 3.0 points on the three benchmarks.
The catch: this is research code with sharp edges. It needs Linux and Python 3.12, and the provided setup runs on Vertex AI through gcloud, with Docker for WorkBuddy-Bench. Executor network access is unrestricted and Codex runs with its sandbox disabled; in the team's own validation run a Codex agent downloaded its JobBench task's grading rubric from Hugging Face unprompted, so you must block those hosts at the firewall before evaluating. Every probe is another full agent run, and the full LAB stream alone has 1,143 tasks, yet no dollar cost per task is published. The repository has no releases, its last commit was on 2 November 2026, and it is excluded from Google's open-source bug bounty.
Our take: Harness² is worth reading closely if you build agent harnesses, because its eight-component split and its per-domain lesson library are ideas you can copy by hand into an AGENTS.md workflow today; running it yourself makes sense mainly for research teams with Vertex quota and an isolated network.
Where it earns its place
An applied research team at an AI lab
Check whether automatic harness tuning beats our hand-written agent setup on legal tasks
Run harness2-setup lab, then harness2 --bench lab --k 1 on one domain with --max-tasks 1, and judge with harness2-judge --bases to compare against the base harness. Costs are your Vertex model calls and grow with k.
A platform engineer maintaining a company's internal coding agent
Find out which parts of our agent's prompt and skills actually help
Read the adopted harnesses and reflection notes Harness² writes under runs/ to see which of the eight components it changed and why, then port the edits that recur into your own AGENTS.md and skills by hand.
A graduate student studying self-improving agents
Reproduce a recent recursive self-improvement result on a budget
Start with harness2-demo, which runs both recursion modes with deterministic editors and needs no model credentials, then scale to a small JobBench subset once the pipeline is clear.
Before you commit
- Setup
- Linux, Python 3.12 and uv: create a venv, uv pip install -e '.[render]', and run harness2-demo with no credentials. Model-backed runs also need Node.js 20+, the Google Cloud CLI, a .env with Vertex project and model IDs, and per-benchmark setup (Pandoc and Poppler for LAB, Docker for WorkBuddy-Bench).
- Integrations
- OpenCode (default) or Codex executors; Codex reaches Gemini on Vertex through a bundled LiteLLM bridge, or any Responses API endpoint; Vertex Gemini executors and judges with Claude or Gemini as the improver; JobBench, LAB and WorkBuddy-Bench runners.
- Data and privacy
- Prompts, task files and deliverables go to the configured model endpoints, Vertex AI in the provided setup. Agents and judges do not inherit the cloud, provider and host tokens listed in SCRUB_ENV, but other environment variables pass through. Results stay on disk under runs/.
- Cost at scale
- Not published in dollars. Each Propose-Probe-Compose step adds editor sessions and extra executions, parallel mode at k runs 2k candidates plus k compositions, and the full LAB stream has 1,143 tasks, so the docs advise starting with one domain and one task.
- Limits
- Executor network access is unrestricted and Codex runs unsandboxed; public benchmark rubrics can leak; failed evaluations stay unscored; JobBench data is not pinned to a commit; no releases, last commit 2 November 2026.
What’s good
- Tunes prompts, skills, scripts, subagents and plugins without changing model weights
- Gains of up to 11.5 points on WorkBuddy-Bench in the authors' tests
- Works without ground-truth graders during refinement
- Ships runnable benchmarks, a no-credentials demo, resume support and ablation baselines
- Unusually frank docs on rubric leakage and network risk
What’s not
- Results are self-reported, with LLM judges for scoring
- Provided configuration assumes Vertex AI and gcloud
- Codex runs with its sandbox off and executors have open network access
- No published cost per task, and every probe is a full extra agent run
Best for
Agent researchers and harness engineers with Google Cloud access who want to study or reproduce automatic, per-task harness refinement on professional benchmarks.
Harness² (Harness2) alternatives
Harness² (Harness2): common questions
- Is Harness² (Harness2) worth it?
- Harness² is a careful, reproducible research release showing that an agent's harness can be tuned per task without a grader, but it is a benchmark rig for Vertex AI users, not something you drop into your own agent. We rate it 3.8 out of 5.
- How much does Harness² (Harness2) cost?
- Free under Apache 2.0; benchmarks and third-party code keep their own licences. Model-backed runs incur API costs; the provided configuration uses Vertex AI, and cost per run is not published.
- What are the downsides of Harness² (Harness2)?
- Results are self-reported, with LLM judges for scoring; provided configuration assumes Vertex AI and gcloud; codex runs with its sandbox off and executors have open network access; no published cost per task, and every probe is a full extra agent run.
- Who is Harness² (Harness2) best for?
- Agent researchers and harness engineers with Google Cloud access who want to study or reproduce automatic, per-task harness refinement on professional benchmarks.
- How much does Harness² (Harness2) cost for a team or in production?
- Not published in dollars. Each Propose-Probe-Compose step adds editor sessions and extra executions, parallel mode at k runs 2k candidates plus k compositions, and the full LAB stream has 1,143 tasks, so the docs advise starting with one domain and one task.
- Is Harness² (Harness2) safe for company data?
- Prompts, task files and deliverables go to the configured model endpoints, Vertex AI in the provided setup. Agents and judges do not inherit the cloud, provider and host tokens listed in SCRUB_ENV, but other environment variables pass through. Results stay on disk under runs/.
- What are the best Harness² (Harness2) alternatives?
- The closest alternatives we have reviewed are ShinkaEvolve, Agent Lightning, OpenSpace and The AI Scientist (v1, v2 and v3).
Answers checked Nov 27, 2026.