An Agent That Learns From Its Own Runs
Most AI agents forget everything between tasks and repeat the same mistakes. Harness 2, open-sourced by Google Research, lets an agent test different versions of its own setup and keep what works.
Let Your Agent A/B Test Its Own Setup
Harness 2 runs inside Claude Code and Codex. Give it a task and it tries several versions of itself, each with different instructions, memory tools and skills. It compares the results and keeps the configuration that performed best.
It optimizes the scaffolding around your agent (prompts, memory and skills), not the underlying model.
It Saves the Lessons, Not Just the Win
Harness 2 keeps the highest-scoring setup and writes down what it learned, so your next task starts from a better baseline instead of a blank slate.
Set Expectations
Running several versions of a task costs more tokens than a single pass; that's the price of self-tuning. Try it on a cheap task before using it on an expensive one.
What's in the Guide
How Harness 2 tests variations of your agent's setup, what it optimizes and what it leaves alone, how it carries lessons forward, the token trade-off, and a direct link to the repo.
The full field guide is in the PDF.
Get the Guide
Drop your email below and we'll send it straight to your inbox.
