Google Harness²: Open-Source Framework for Recursive AI Agent Management

Google releases Harness², an open-source framework enabling AI agents to recursively improve workflows and adapt to new tasks without model retraining.

cpaua2 min3

Google has released Harness² in open access, a framework for recursive management of AI agents in an open environment. The system allows agents to perform tasks for which they were not originally designed, and to independently optimize their workflow by learning from acquired experience. This is important for creating autonomous systems that adapt to new conditions without the need to retrain the model itself.

Two Levels of Recursion for Agent Adaptation

Harness² operates on the principle of recursive improvement of the system around the model (the so-called "harness"), while the model's weights remain unchanged. The process is divided into two levels:

  • Task Level: uses the "Propose–Probe–Compose" cycle. The system proposes edits, verifies their impact on a specific task, and creates a refined version of the harness based on behavioral contrasts, without requiring external feedback.
  • Harness Level: updates the persistent "improvement harness," to which successful solutions and lessons from previous tasks are added for future use.

System Architecture and Control Components

The framework provides eight components that can be edited to control context, tool interfaces, and work delegation. These include the system prompt, guardrails, memory, tool usage instructions, subagents, skills, scripts, and plugins.

Testing Results on Professional Benchmarks

Harness²'s effectiveness was tested on three benchmarks using the GLM-5 and Gemini 3.5 Flash models. A single recursion step allowed improving results by 11.5 points on WorkBuddy-Bench, by 4.5 points on JobBench, and by 11.8 percentage points on LAB (partial number of passed tests). Further increasing the recursion budget at the task level leads to additional metric growth.

Launch and Installation from GitHub

The system requires Linux, Python 3.12, and the uv package manager. Basic installation and demo launch are performed with the following commands:

bash
uv venv --python 3.12 .venv
source .venv/bin/activate
uv pip install -e '.[render]'
harness2-demo --output runs/demo --k 2

To run full-scale tests using models via API, you need to install Node.js 20+, Google Cloud CLI, and configure the .env file. The framework supports parallel and sequential recursion, as well as OpenCode and Codex executors. This allows flexibly configuring the harness refinement depth, as implemented in code working tools.

Sources

google-research/harness2github.com/google-research/harness2
Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.