All Guides
GuideAI DevelopmentDecember 3, 2026

An Agent That Learns From Its Own Runs

Take this guide with you.

Drop your email and we'll send the An Agent That Learns From Its Own Runs straight to your inbox.

No spam. Just the guide. Unsubscribe anytime.

An Agent That Learns From Its Own Runs

A field guide to Harness 2, Google Research's open-source harness that A/B tests an agent's instructions, memory tools and skills, keeps the winning configuration and records what it learned — without touching the underlying model.

What's inside
  • Open source from Google Research
  • Tries several versions of your agent's setup per task
  • Tunes prompts, memory and skills — not the model
  • Keeps the winner and writes down the lessons
  • More tokens per run — test it on a cheap task first

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.

Don't leave without it.

Drop your email and get the An Agent That Learns From Its Own Runs in your inbox.

No spam. Just the guide. Unsubscribe anytime.

Build Something Real

If you can describe it, you can build it.