App
google-research / harness2
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
| Type | App |
|---|---|
| License | Apache-2.0 |
| Code health | 7.9 / 10 (Good) |
| Health rank | Not ranked (leaderboards need 100+ files) |
| Last commit | Oct 9, 2026 |
| Contributors | 2 |
| Bus factor | 1 |
| Size | 94 files, 13,377 lines |
Install harness2
Commands copied from the README
- 1Clone the harness2 repository.
git clone https://github.com/google-research/harness2.git - 2Move into the harness2 folder.
cd harness2 - 3Create a virtual environment with Python 3.12 in the repository root.
uv venv --python 3.12 .venv - 4Activate the virtual environment.
source .venv/bin/activate - 5Run the local demo, which runs both recursion modes with deterministic editors and needs no model credentials.
harness2-demo --output runs/demo --k 2
Explore harness2
- DocumentationModule-by-module documentation, 119 pages.
- ArchitectureDependency graph, layers and third-party dependencies.
- Code healthEvery file's score and the findings behind it.
- CommitsEach commit's effect on code health.
- OverviewEverything else the index found: contributors, decisions, what changed this week.
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.
Docsclaude mcp add --transport http repowise https://api.repowise.dev/mcp/google-research/harness2
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
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.
Maintain google-research/harness2?
Claim this page, add a badge to the README, or re-index it.
Claim this page
Sign in with GitHub and we check that you are an admin or maintainer of google-research/harness2. Then add a badge to the README that links readers here.
Add a badge to your README
Readers click through to this page and can ask harness2's code a question. A badge also re-indexes the repo every week and marks you as the verified maintainer.
[](https://repowise.dev/repo/google-research/harness2?src=badge_ask)Paste it at the top of README.md, under the title.
Added it already? Verify to get the mark now instead of tomorrow.
Need HTML or the larger health card? More formatsHide more formats
This badge as HTML
<a href="https://repowise.dev/repo/google-research/harness2?src=badge_ask"><img src="https://api.repowise.dev/badge/wiki/google-research/harness2.svg?label=ask" alt="repowise: Ask this codebase"></a>Code health card
The score, its change since the last index, and when it was measured. Follows the reader's light or dark theme.
<a href="https://repowise.dev/repo/google-research/harness2?src=badge_card"><picture><source media="(prefers-color-scheme: light)" srcset="https://api.repowise.dev/badge/health/google-research/harness2.svg?style=card&theme=light"><img src="https://api.repowise.dev/badge/health/google-research/harness2.svg?style=card" alt="repowise code health" width="500" height="168"></picture></a>