What do you want to do?
7 use cases
-
Try both recursion modes locally with no credentials
Run the bundled demo to see parallel and sequential harness refinement before spending any API budget.
- REPO
google-research/harness2 - Software and DevOps
- Intermediate
View prompt
In the google-research/harness2 repo on Linux with Python 3.12 and uv, create the environment, install with uv pip install -e '.[render]', and run harness2-demo --output runs/demo --k 2. Report the files written under runs/demo and summarize what each recursion mode produced. Verify that the run finished without model credentials being configured.
- REPO
-
Refine an agent harness on a small LAB legal set
Run one Propose-Probe-Compose step on a single LAB legal domain, then judge and report the result.
View prompt
In the google-research/harness2 repo, set up the LAB benchmark, then run harness2 --bench lab --k 1 --mode parallel --only-domains <domain> --max-tasks 1, followed by harness2-judge and harness2-report with the same flags. Report the judged result for the task and the path of the saved results under runs/. Verify that the judge and report commands used the same benchmark, k, mode, and domain as the refinement run.
-
Compare recursion budgets on WorkBuddy-Bench code tasks
Run parallel and sequential refinement on the WorkBuddy code subset to see which recursion style helps more.
View prompt
In the google-research/harness2 repo, install WorkBuddy-Bench with harness2-setup wb, then run the code subset in parallel and sequential mode with --k 2, using a separate HARNESS2_RUNS_DIR for each. Report the judged score for each mode and which one scored higher. Verify that both runs used the same subset, k, and seed.
-
Refine a Codex-based agent harness on office tasks
Run Harness2 with the Codex executor on the WorkBuddy-Bench office subset to improve the harness around the model.
View prompt
Using google-research/harness2, set up WorkBuddy-Bench, dry-run a small office subset selection, then run one Propose-Probe-Compose step with the Codex executor and summarize what the adopted harness changed.
-
Compare parallel and sequential recursion on JobBench
Run the same JobBench tasks with parallel and sequential recursion to see which refines your harness better.
View prompt
With google-research/harness2, run the same five JobBench tasks with k=3 in parallel mode and in sequential mode, keep the runs in separate directories, and give me a table comparing scores and cost.
-
Run harness refinement with the Codex executor
Switch from the default OpenCode executor to Codex to see how the executor changes refined-harness results.
View prompt
In google-research/harness2, run one JobBench task with --substrate cx and --k 1 --mode parallel, then judge it with matching flags. Verify the run completes under its own runs directory and that network restrictions are configured first.
-
Resume a long refinement run after it stops midway
Re-issue the same command to continue a multi-task run without redoing finished tasks.
- REPO
google-research/harness2 - Research
- Intermediate
View prompt
My google-research/harness2 run on <benchmark> stopped partway. Reconstruct the exact original command, re-run it to resume, and verify that previously finished tasks were not repeated by checking the runs/ folder.
- REPO
What people are building with Harness2
-
BenchmarkX
Made a Claude coding harness 39% faster with Harness2
The author adapted Harness2 to optimize their own harness; after the first optimization run Claude ran 39% faster and scored 10/10 on accuracy for their codebase's tasks.
By Daniel Müller (@BrahmaD111)
-
Built withGitHub
Evolved a red-teaming attacker agent with Harness2 on OpenRouter models
Experiment code for an article uses Google's Harness2 harness optimizer to evolve a red-teaming attacker agent running on OpenRouter models.
By @kenhuangus on GitHub
-
TutorialDEV
Wrote a runnable offline Python demo of Harness2 recursive agent harnessing
After a hand-written harness silently read two of seven rows, the author rebuilt the loop with Harness2 and published an offline Python demo that walks through its editable components and the Propose, Probe and Compose steps.
Harness2 on GitHubTry it: Try both recursion modes locally with no credentials
By @code_with_kyryl on DEV
-
Built withGitHub
Built a streaming LangGraph coding agent with a Harness2 improve command
A terminal coding assistant on OpenRouter models with resumable chat adds an explicit /improve command that runs Harness2 refinement on the agent.
Harness2 on GitHubTry it: Refine a Codex-based agent harness on office tasks
By @daverbj on GitHub
Real builds shared on X, Hacker News, Reddit, DEV and GitHub, summed up by Deduped from each post and its links; each card links to the original post. See what people are building with other repos
Quick start with Harness2
- Check you have what it needs: Linux, Python 3.12, and uv; For the local demo: nothing else, since it needs no model credentials; For model-backed runs: Node.js 20+, the Google Cloud CLI, a Vertex AI project with model IDs, and API budget.
- Open google-research/harness2 on GitHub and read the README and license.
- Create the environment with
uv venv --python 3.12 .venv - Activate it with
source .venv/bin/activate - Install the package with
uv pip install -e '.[render]' - Run the demo with
harness2-demo --output runs/demo --k 2
These steps come from our top use case, Try both recursion modes locally with no credentials, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for google-research/harness2
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forBuilt for researchers and engineers who run AI agents on professional benchmarks and want to improve the system around the model without retraining it.
- Why it is hot23k stars on GitHub as of Nov 6, 2026, launched Oct 6, 2026, talked about in 2 AI sources we track
- LanguagePython
- Sourcegithub.com/google-research/harness2 · Back to Hot repos
Requirements
- Linux, Python 3.12, and uv
- For the local demo: nothing else, since it needs no model credentials
- For model-backed runs: Node.js 20+, the Google Cloud CLI, a Vertex AI project with model IDs, and API budget
- For LAB: Pandoc and Poppler. For WorkBuddy-Bench: Docker
Add this badge to your README
Maintain Harness2? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/google-research-harness2/?utm_source=github&utm_medium=badge&utm_campaign=google-research-harness2)
HTML
<a href="https://dedupedai.com/use-cases/google-research-harness2/?utm_source=github&utm_medium=badge&utm_campaign=google-research-harness2"><img src="https://dedupedai.com/badge/google-research/harness2.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Harness2
What is Harness2?
Harness² is a Python framework from Google Research that refines the harness around a fixed model (prompts, tools, memory, skills, orchestration) so it performs better on agent tasks. It is an open-source project on GitHub: https://github.com/google-research/harness2.
How do I use Harness2?
Create the environment with uv venv --python 3.12 .venv; then Activate it with source .venv/bin/activate; install the package with uv pip install -e '.[render]'. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Harness2 for?
Built for researchers and engineers who run AI agents on professional benchmarks and want to improve the system around the model without retraining it.
What can I do with Harness2?
7 use cases so far, for example: Try both recursion modes locally with no credentials; Refine an agent harness on a small LAB legal set; Compare recursion budgets on WorkBuddy-Bench code tasks. Each has steps and a copy-paste agent prompt.
What do I need to run Harness2?
Linux, Python 3.12, and uv; For the local demo: nothing else, since it needs no model credentials; For model-backed runs: Node.js 20+, the Google Cloud CLI, a Vertex AI project with model IDs, and API budget; For LAB: Pandoc and Poppler. For WorkBuddy-Bench: Docker.
What are alternatives to Harness2?
Other hot AI repos in Software and DevOps: Skills, Claude Mem, Freellmapi, Andrej Karpathy Skills, Agent Desktop.
Is Harness2 safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.