DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to use Harness2: what you can do with it

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.

How do I use it? 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]'. Full steps below.

4 people shared what they built with Harness2. See what people are building

Trended earlier

View repo on GitHub

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer

· GitHub stats as of

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.

    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.
  • 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.

    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.

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.

    Harness2 on GitHub

    By Daniel Müller (@BrahmaD111)

    View original post on X

  • 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.

    Harness2 on GitHub

    By @kenhuangus on GitHub

    View the project 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

    View original post 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

    View the project 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

  1. 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.
  2. Open google-research/harness2 on GitHub and read the README and license.
  3. Create the environment with uv venv --python 3.12 .venv
  4. Activate it with source .venv/bin/activate
  5. Install the package with uv pip install -e '.[render]'
  6. 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

Cursor, ChatGPT, others

Best AI repos for Software and DevOps

About 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. Use cases on Deduped

Markdown

[![Use cases on Deduped](https://dedupedai.com/badge/google-research/harness2.svg)](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&amp;utm_medium=badge&amp;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.