Free research tool from Google

Make your AI agent improve itself. Free and open source, from Google Research

Harness² (say "Harness 2") is a free, open-source tool from Google Research. You give your AI agent a task. Harness² tries the same task with different setups, compares the results and keeps the best setup. Then it saves the lessons for the next task. Google calls this recursive self-improvement. Here are the links and the setup steps from my reel.

Open Harness² on GitHub

Get Harness² for free

The code, the website and the research paper are free. If you want to see how it works first, open the website.

  1. 1

    Harness² on GitHub

    Google Research · Apache 2.0 license · more than 26,000 stars on GitHub

    This is the full tool. A harness is the setup around an AI model: the prompts, tools, memory, skills and more. Harness² changes this setup. The AI model itself stays the same. For each task, Harness² tries changes on the same task, compares the results and keeps the changes that work. After each task, it keeps the best setup and the lessons for the next tasks.

    Good to know: it is a research tool. It runs on Linux with Python 3.12. Real tasks use a paid AI model.

    One task with four setups: Setup 1 adds new instructions, Setup 2 adds memory, Setup 3 adds tools and Setup 4 adds skills
    Still from my reel: an animation by Nick Saraev. It shows the idea. It is not a screen from the tool. One task runs with four setups: new instructions, new memory, new tools and new skills.
    Open Harness² on GitHub
  2. 2

    The Harness² website

    harness2.github.io · animations of the method and the test results

    The website shows the method step by step, with animations that you can play. It shows the eight parts of the setup that Harness² can change. They are the system prompt, guardrails (rules for the agent), memory, tool guidance, subagents (helper agents), skills, scripts and plugins. It also shows the test results. Google Research tested it on three benchmarks (sets of test tasks). One Harness² step gave gains of up to 11.5 points on WorkBuddy-Bench and 4.5 points on JobBench. On LAB, the gain was up to 11.8 percentage points.

    A chart from Google Research: the Harness² code score goes from 76.5 to 80.8 when k goes from 1 to 5
    Still from my reel, from the overview video by Google Research. When Harness² tries more setups for each task (k from 1 to 5), the code score goes up by 4.3 points, to 80.8.
    Open the Harness² website
  3. 3

    The research paper

    arXiv 2610.14224 · Ruiyao Xu, Yanfei Chen and the team

    The paper gives the full method and all the test results. Harness² has two loops. The first loop improves the setup for the current task. The second loop keeps the best setups and the lessons. It uses them to improve the setup of the next task.

    Read the paper (PDF)

One prompt to install Harness² and run the free demo

Open your AI agent, for example Codex or Claude Code, in an empty folder on a Linux computer. Copy this prompt and paste it.

Prompt
Install Harness² from Google Research on this Linux computer. Then run its free demo.
Code: https://github.com/google-research/harness2

1. Check that this computer has Python 3.12 and uv. If it does not have uv, install it from https://docs.astral.sh/uv/getting-started/installation/
2. Download the code with git clone. Open the harness2 folder.
3. Run these commands in this order:
   uv venv --python 3.12 .venv
   source .venv/bin/activate
   uv pip install -e '.[render]'
   harness2-demo --output runs/demo --k 2
4. Do not add API keys. Do not run a benchmark. The demo needs no AI model account.
5. When the demo stops, tell me what it did in 5 short lines. Show me where it saved the results.

Try Harness² by hand in 5 steps

  1. 1

    Check your computer

    Use Linux with Python 3.12 and uv. uv is a free tool that installs Python packages. The setup guide shows the commands for Debian and Ubuntu.

  2. 2

    Download the code

    In a terminal, run git clone https://github.com/google-research/harness2.git. Then open the folder: cd harness2.

  3. 3

    Install Harness²

    Make a virtual environment (a separate space for the Python packages): uv venv --python 3.12 .venv. Activate it: source .venv/bin/activate. Then install Harness²: uv pip install -e '.[render]'.

  4. 4

    Run the free demo

    Run harness2-demo --output runs/demo --k 2. The demo shows both modes, parallel and sequential, with real Python runs. It needs no AI model account.

  5. 5

    Connect a model for real tasks

    Install Node.js 20 or newer and the Google Cloud CLI. Copy .env.example to .env. Add your Vertex AI project and model IDs to .env. Sign in with gcloud auth application-default login. Real tasks cost money, so start with one small task.

Questions people ask

Is Harness² free?

Yes. The code is free and open source under the Apache 2.0 license. The demo needs no AI model account. Real tasks call a paid AI model, so they cost money. Start with one small task.

Which AI agents does Harness² work with?

This release uses OpenCode or Codex to do the work. OpenCode is the default. To use Codex, add --substrate cx to the command. The default setup uses Gemini models on Vertex AI, the AI service of Google Cloud. Open the Harness² setup guide

Does Harness² run on Windows or Mac?

The makers say to use Linux with Python 3.12. The setup guide does not give steps for Windows or Mac.

Is Harness² an official Google product?

No. Researchers at Google Cloud AI Research and Northwestern University made it. The code is on the Google Research GitHub page. The README says that it is not an officially supported Google product. It is a research tool.

Want AI set up like this for your business?We build AI setups and run ads for businesses.

Talk to us

Researchers at Google Cloud AI Research and Northwestern University made Harness² (github.com/google-research/harness2). The authors are Ruiyao Xu, Yanfei Chen, Zhongying CuiZhu, Bhavana Dalvi Mishra, Yifei Ming, Han Yu, Rujun Han, Chen-Yu Lee and Tomas Pfister. The code uses the Apache 2.0 license. B-roll in my reel: Google Research (the project site, video and setup GIF) and Nick Saraev (@nick_saraev). All credit to them.

More free prompts

Make AI videos for free on your own PC A free app that runs the MiniMax H3 video model with 8 GB of VRAM and 16 GB of RAM.One shared memory for Claude and ChatGPT Free Obsidian setup: three folders, two prompts and the official connector.BLA: stop AI agents from cloning your app Free open-source tool that hides decoy code traps inside your app so AI reverse-engineering agents waste tokens.Off Grid AI: free offline AI on your phone Run private AI models on iPhone, Mac or Android with zero internet for chat, images and PDFs.10-step Claude Code website rebuild prompt Turn an outdated local business website into a modern preview site with a side-by-side compare page.Two free design skills for Claude Code Impeccable finds and fixes AI design mistakes. The Emil Kowalski skills add smooth motion and clean phone layouts.rea-video: study any viral video A free Claude Code tool. It checks each shot of a video (real, AI or code) and writes a remake plan.Claude Mem and 4 more Claude Code tools A memory for Claude Code, free AI tokens, the official setup plugin, the Google plan review plugin and a UI library.Agent Browser: free browser for AI agents A free tool from Vercel Labs that gives Claude Code, Codex and other coding agents a browser that they can control.OpenMausBot: free AI bot team A free, open-source app that gives you a team of Claude or Codex bots on your computer.Build a website with AI in 3 steps My 3 steps: a website brief, a wireframe in Paper or Pencil, then code and deploy with Claude or Codex.Claude SEO: free website audit A free Claude Code plugin that audits your whole website. The install lines and my next prompt.Hallmark: fact or hype? I tested the Hallmark design skill against Claude with no skill. The link, my prompt and the result.Claude Code + Blender Blender Skills, a free pack of 94 skills, and the free BlenderMCP add-on that connects Claude Code to Blender.Animated videos with Claude Code Lemo-Opuscar, a free skill with 66 film styles, with the install steps and a prompt to start your first film.Top 5 Claude Code plugins FreeLLMAPI, Lemo-Opuscar, Ponytail, Agent Reach and NVIDIA SkillSpector, with one prompt that sets them all up.Are your Claude skills safe? Two free prompts that check the skills on your computer and any skill before you install it, plus a skill safety checklist.Make it better prompt library Stop telling AI "make it better". Fill-in-the-blank prompts for your website, emails, posts, ads, proposals and more.Make 3D websites with Claude The prompts, Claude skills and free 3D tools behind real 3D websites people made with Claude.Edit your videos with Claude Every tool Claude used to edit my reel, most of them free, plus a prompt to start your own edit.Is your job safe from AI? Microsoft offered 60,000 people money to quit. Check your own week with two questions.Tesla Roadster demo, timestamped Where to watch the fans, the thrusters and the flip in Tesla's full demo.OpenCode: a free AI coding agent Like Claude Code, free, with NVIDIA's Nemotron model on its free list.Minecraft mod: Claude builds for you Press K, type what you want, and Claude Code builds it in your world.51 free apps in one repo HeyPuter's Everything: free, open-source apps you can open right in your browser.GTA, Halo and COD in a browser The three browser game projects from my reel, with the safety notes.Free copies of 7 Adobe apps Photoshop, Premiere Pro and five more, rebuilt with AI by ArtCraft. Free and open source.Free Word, Excel and PowerPoint Three free, open-source copies that open your normal Office files.Cheap AI models, with prices Five low-cost models from Anthropic, OpenAI, Google and Mistral, and two ways to cut your AI bill.Build a 3D game with Claude Code Five free tools: game-dev skills, Godot MCP, TripoSR, Colyseus and MCP Unity.Build a 3D website with AI ChatGPT, Meshy and Claude Code: a website with real 3D models you can spin and zoom.Claude Code on DeepSeek Set up Claude Code to run on DeepSeek in 4 steps, then add a free skill for motion graphics.Launch video from one prompt A free Claude Code skill that writes, scores and exports a launch video for your product.Co-op any single-player game A free Claude Code playbook that adds co-op to single-player games, so friends can join over Steam.Claude Duet: 5 things to ask it Who can get Anthropic's new agent app now, how to join the waitlist, and the first five things to ask it.Give Claude Code ears Earshot, a free tool that lets Claude hear sounds, check your video audio and make sound effects.4 free Claude Code plugins Superpowers, Frontend Design, Playwright and Claude Security, with one prompt that installs all four.CLAUDE.md + AGENTS.md prompt One prompt that reads your business folder and writes the files Claude Code and Codex read first.Edit your video by voice Say your edits out loud while filming. Claude Code or Codex makes each one at that moment.Design a website in Paper Two prompts that get Claude Code to interview you and design a full landing page.Humanize skill Turns flat, AI-sounding writing into something people want to read.A 3D video made in code How the Opus 5.5 Clawd video was built, with the prompt and the free kits.