Harness2 by Google Research – Recursive Agent Harnessing
TL;DR Highlight
Recursively refining the harness with fixed model weights raised benchmark scores by up to 11.8 points.
Who Should Read
A backend developer who hand-tunes prompts, tools and skills for agents and wonders whether that tuning can be automated.
Core Mechanics
- A harness is everything around the model
- It covers prompts, tools, memory, skills and orchestration.
- Optimizing that system is called harnessing.
- Eight components are editable
- They are system prompt, guardrails, memory, tool guidance, subagents, skills, scripts and plugins.
- They control context construction, the tool interface, delegation and behavior inside the tool loop.
- Each task runs Propose–Probe–Compose
- It proposes edits and probes their effects on the same task.
- It composes a refined harness from behavioral contrasts between executions, without ground-truth feedback.
- Lessons persist across tasks
- Adopted harnesses and evidence-supported lessons go into a persistent improvement harness.
- That record guides refinement on future tasks.
- A single step already improved scores
- Across three benchmarks and four model–harness configurations, GLM-5 and Gemini 3.5 Flash beat their base harnesses.
- Gains reach 11.5 points on WorkBuddy-Bench, 4.5 on JobBench and 11.8 percentage points on LAB partial pass rate.
- A larger task-level recursion budget brings further gains.
- Two recursion modes exist
- Parallel explores candidate harnesses wider, while sequential refines one harness deeper over K steps.
- Executors are OpenCode (default) and Codex.
Community Reactions
How to Apply
- Run the local demo without API keys
- On Linux with Python 3.12 and uv, run harness2-demo --output runs/demo --k 2.
- It exercises both recursion modes with deterministic editors and real Python executions.
- Break your harness into the eight components
- List which of system prompt, guardrails, memory, tool guidance, subagents, skills, scripts and plugins you use today.
- Decide which ones to open to automatic edits first.
- Diff failed and successful runs to draft edits
- Run the same task at least twice and extract the behavioral differences.
- Draft prompt or tool-guidance edits from those differences and keep only adopted ones as lesson notes.
- Start benchmarks small and block the network
- Begin with --max-tasks 1 and --dry-run.
- Restrict executor network access before evaluation to prevent benchmark answer leaks.
Try It
# harness2 local demo (shell). No model credentials needed
uv venv --python 3.12 .venv
source .venv/bin/activate
uv pip install -e '.[render]'
harness2-demo --output runs/demo --k 2
# Model-backed benchmarks cost money, so start small
harness2-setup lab
harness2-check --bench lab
harness2 --bench lab --k 1 --mode parallel --only-domains antitrust-competition --max-tasks 1 --dry-run
# Next: drop --dry-run, then run harness2-judge and harness2-report with the same optionsTerminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques