Google Research has published Harness2, an open-source framework that lets agents revise the software around a model while keeping its weights fixed. It tests changes on the current task, combines what it learns, and retains lessons to guide changes on later tasks.
The project calls this recursive agent harnessing. A harness is the system that lets a model act as an agent, including its prompts, tools, memory, and rules for delegating work. Harness2 makes that system editable and gives the process of improving it a persistent set of instructions of its own.
Two loops around a fixed model
The first loop works within one task. An agent runs with an initial configuration. An editor proposes changes, candidate configurations run against the same task, and a composer uses differences in their behavior to produce a refined configuration. The repository calls this process Propose-Probe-Compose and says it works without ground-truth feedback during refinement.
The second loop works across tasks. After each task, a reflection step updates a persistent improvement harness with the adopted configuration and evidence-supported lessons. That information guides future refinement. The framework therefore changes both how the agent does a task and the instructions used to improve how it works.
Harness2 exposes eight editable components: the system prompt, guardrails, memory, tool guidance, subagents, skills, scripts, and plugins. Its approach to agent improvement centers on these components rather than changes to model weights.
Developers can run the task-level loop in parallel or sequentially. Parallel mode tests general and domain-specific candidates and composes refinements from their shared execution evidence. Sequential mode carries a refined configuration and accumulated evidence through successive steps. The --k option sets the task-level recursion budget.
What the release reports
The repository reports results across three professional benchmarks and four model-harness configurations using GLM-5 and Gemini 3.5 Flash. It says a single refinement step improves on the base configurations, with gains of up to 11.5 points on WorkBuddy-Bench, 4.5 points on JobBench, and 11.8 percentage points on LAB’s partial pass rate. These are the project’s reported maxima across different measures. The authors also report further gains with larger task-level recursion budgets.
The release supports OpenCode and Codex executors. A local demo uses deterministic editors and real Python executions without model credentials. Model-backed benchmark runs incur API costs. The code has an Apache 2.0 license, and the repository describes it as a research project without official Google product support.
The setup also matters for interpreting results. The README says executor network access is unrestricted and Codex runs with its sandbox disabled. It warns that public benchmark answers and grading criteria may be accessible online and tells evaluators to configure network restrictions before evaluation.
Sources
- Google Research: Harness2, Recursive Agent Harnessing for an Open World
- Lead image: Google Research’s Harness2 pipeline diagram.





