What you'll get

Harness² ("Harness Squared") is a free, open-source framework from Google Research. It makes an AI agent better at its job by improving the system around the model (the instructions, tools, memory and so on) while the model itself never changes. In the paper's tests, one step lifted scores by up to 11.5 points on one benchmark.


What you need


Step 1: Open the project

The code is on GitHub: github.com/google-research/harness2. The project site with the figures is harness2.github.io. Read the top of the README first: a harness is everything around the model that lets it act as an agent (prompts, tools, memory, skills), and harnessing means optimizing that system.


Step 2: Install it

Clone the repository, go into the folder and run:

uv venv --python 3.12 .venv
source .venv/bin/activate
uv pip install -e '.[render]'

Step 3: Run the local demo

harness2-demo --output runs/demo --k 2

The demo runs both recursion modes with real Python executions and needs no model credentials, so it is the safest first try.