repowiserepowise

App

google-research / harness2

★ 22,115stars on GitHubPythonApache-2.0

Repowise maps public repos from their source. Not affiliated with google-research. What is Repowise?

github.com/google-research/harness2Indexed at 1cfe254

What is harness2?

harness2 is a plug-and-play framework for recursive agent harnessing, which improves the system around a model that acts as an agent, such as its prompts, tools, memory and skills, on tasks unseen when that system was designed. It keeps the model weights fixed and refines the harness for each task by proposing edits, probing their effects on the same task, and composing a refined harness from the behavioral differences between executions, without ground-truth feedback. The project is written in Python. To install it, run git clone https://github.com/google-research/harness2.git and follow the steps below. Its code health is 7.9 out of 10 (Good). The last commit to harness2 was on Oct 9, 2026, and 2 people have contributed.

As of commit 1cfe254, indexed Oct 18, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.

For agentsharness2.md

Repo facts: type, license, health, rank, contributors
harness2 facts
TypeApp
LicenseApache-2.0
Code health7.9 / 10 (Good)
Health rankNot ranked (leaderboards need 100+ files)
Last commitOct 9, 2026
Contributors2
Bus factor1
Size94 files, 13,377 lines

Install harness2

Commands copied from the README

  1. 1Clone the harness2 repository.
    git clone https://github.com/google-research/harness2.git
  2. 2Move into the harness2 folder.
    cd harness2
  3. 3Create a virtual environment with Python 3.12 in the repository root.
    uv venv --python 3.12 .venv
  4. 4Activate the virtual environment.
    source .venv/bin/activate
  5. 5Run the local demo, which runs both recursion modes with deterministic editors and needs no model credentials.
    harness2-demo --output runs/demo --k 2

Full install notes on GitHub

Explore harness2

Ask about this code in your agent

This connects Repowise to harness2's code. It does not install harness2. To install harness2, use the install steps.

Useful if you want to change or fork harness2: your agent can ask how it is put together and get answers that cite its files.

Show the connect command (Claude Code, Cursor, Codex, VS Code)

Run it in a terminal, then type /mcp in Claude Code and sign in with Repowise. No key to paste.

Docs
bash
claude mcp add --transport http repowise https://api.repowise.dev/mcp/google-research/harness2
Claude Code, Claude, Cursor and VS Code sign you in on first use, free. Codex and Windsurf need an API key: sign in to create one.Sign in for a key

This repo is public, so anyone with a free Repowise account can connect.

Try asking

  • get_overview()
  • get_answer("how is harness2 put together?")
  • get_why("why is harness2 structured this way?")

Ask about harness2

Answers come from harness2's README and source, with the files they cite. Two free answers a day without an account.

Want this for your own codebase? Map your repo free

About this page

Get a page like this for your own codebase

Repowise built this map of google-research/harness2 from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.

Free for 2 public repos, with a page like this one. No card. See how Repowise works

Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub

google-research/harness2 FAQ

What is harness2?

harness2 is a plug-and-play framework for recursive agent harnessing in an open world, where agents meet tasks unseen during harness design. It refines the system around a model while keeping the model weights fixed.

How does harness2 work?

harness2 proposes edits to the execution harness, probes their effects on the same task, and composes a refined harness from the differences between executions. Adopted harnesses and evidence-supported lessons are kept to guide later refinement.

How do I install harness2?

harness2 installs with uv on Linux and Python 3.12 by creating a virtual environment, activating it, and running uv pip install in editable mode with the render extra. A local demo then runs without model credentials. See the install steps

What language is harness2 written in?

harness2 is written in Python, with a small number of shell scripts and a Dockerfile in the repository.

How is the harness2 code organized?

The harness2 directory holds the command entry points in harness2/cli, the scoring logic in harness2/core, and the benchmark adapters in harness2/substrate. Helper scripts live in the scripts directory, and third-party code sits under third_party.

Who is harness2 for?

harness2 is for improving the harness around an agent that works on tasks it was not designed for, with the model weights kept fixed. It supports the JobBench, LAB, and WorkBuddy-Bench benchmarks.

What license does harness2 use?

harness2 is licensed under Apache-2.0.

Code health

7.9out of 10Good

Key features of harness2

  • Refines the execution harness for the current task through a contrastive Propose-Probe-Compose step without ground-truth feedback.
  • Updates a persistent improvement harness with adopted harnesses and evidence-supported lessons from each task to guide future refinement.
  • Supports parallel and sequential recursion for scaling task-level refinement.
  • Supports OpenCode and Codex executors.
  • Supports the JobBench, LAB, and WorkBuddy-Bench benchmarks.
  • Exposes eight editable components around the model: system prompt, guardrails, memory, tool guidance, subagents, skills, scripts, and plugins.

How google-research/harness2 works

Commands enter through the entry points in harness2/cli, such as harness2-check, harness2-demo and harness2-judge, which read command-line arguments and build shared adapters and run identities. harness2/substrate adapts each benchmark's harness tree into a common interface, turning a spec into a staged Install and then executing it and reading the trajectory output back. harness2/core takes an evidence-backed run and combines task views and per-channel configuration with an adapter-driven scoring step to produce structured judging results. third_party/lab_runner/adapt_runs_cx converts LAB session files into parsed summaries and an ordered transcript for later components. The scripts directory holds checks and small transformations that keep the repository in a known-good state and write results or pass/fail messages. Results are saved under runs/, so repeating the same command resumes the run.

The codebase has 94 files and 878 symbols in 4 modules, led by Python, Shell and Dockerfile. Code health is 7.9 out of 10, rated good.