DEDUPED We read 1,000+ AI sources. You read one email. Subscribe free

AI USE CASES

What you can do with harness2

A framework that lets an AI agent keep improving its own setup (prompts, tools, memory, skills) while the model itself stays unchanged.

#2 in this week's top 10 trending AI repos

Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk.

Authorization notice. This tool is dual-use. Only use it on software, sites and systems you own or have explicit permission to test, and follow the relevant licenses and terms of service.

8 use cases

Audit which harness edits were adopted and why

Read the adopted harnesses and reflection notes from a run to learn which prompt or tool edits drove a gain.

  • Intermediate
  • 45 minutes
  • Any agent
Seen in the wild

Evidence (similar to what people reported): X, Oct 2026 · X, Oct 2026

WhoAgent builder who wants to copy the winning edits into a hand-maintained harness instead of re-running refinement

The problemYou get a better score but do not know which of the eight editable components changed or what lesson justified it.

The outcomeA short list of concrete edits (system prompt, guardrails, memory, tool guidance and so on) with their stated evidence, ready to port by hand.

Steps

  1. Finish a refinement run, for example: harness2 --bench lab --k 1 --mode parallel --only-domains antitrust-competition --max-tasks 1
  2. Open the benchmark folder under runs/ and find the adopted harnesses and reflection notes.
  3. Compare the adopted harness against the base harness, component by component.
  4. Note which edits came from the general candidate versus the domain-specific candidate.
  5. Copy the edits you trust into your own agent setup.

Prompt for your agent

After a google-research/harness2 run on <benchmark>, open the runs/ folder and list every adopted harness edit grouped by component (system prompt, guardrails, memory, tool guidance, subagents, skills, scripts, plugins). Verify each edit has a matching reflection note before recommending I port it.

Caveat. The README does not document the exact file layout inside runs/, so inspect the actual output folders rather than assuming a structure, and treat a single run's lessons as hypotheses.

Open this use case on its own page

Watch an agent improve its own setup in 5 minutes, no API key

Run the built-in demo to see both recursion modes edit a harness with real Python executions and zero credentials.

  • Beginner
  • 15 minutes
  • Any agent
Seen in the wild

Evidence (similar to what people reported): X, Oct 2026

WhoCurious developer who saw Harness2 trending and wants proof it runs before investing in setup

The problemYou cannot tell whether a self-improving harness framework actually works without wiring up models and paying for API calls.

The outcomeA runs/demo folder showing parallel and sequential recursion with deterministic editors, produced locally in seconds.

Steps

  1. Create the environment: uv venv --python 3.12 .venv
  2. Activate it: source .venv/bin/activate
  3. Install the package: uv pip install -e '.[render]'
  4. Run the demo: harness2-demo --output runs/demo --k 2
  5. Open the runs/demo folder and read the adopted harnesses and reflection notes.

Prompt for your agent

Clone google-research/harness2, set up a Python 3.12 uv environment, install it, and run harness2-demo with --k 2 into runs/demo. Summarize what files were produced and verify the demo ran without any model credentials.

Caveat. The demo uses deterministic editors, not real models, so it shows the mechanics of the loop and says nothing about real-world score gains.

Open this use case on its own page

Boost an office, web or coding agent on WorkBuddy tasks

Refine an agent's harness on one WorkBuddy-Bench subset to see if office, web or code results improve.

  • Advanced
  • 2 hours
  • Any agent
Seen in the wild

Evidence (similar to what people reported): X, Oct 2026

WhoBuilder of an internal assistant that edits documents, browses, or writes code and wants a measurable harness upgrade

The problemHand-tuning prompts for office, web and code tasks is guesswork with no consistent score to compare against.

The outcomeA judged WorkBuddy run for one subset showing whether a Propose-Probe-Compose step beat the base harness.

Steps

  1. Install the benchmark (needs Docker): harness2-setup wb
  2. Check prerequisites: harness2-check --bench wb --subset office
  3. Refine one task (inferred, adapting the LAB example to WorkBuddy): harness2 --bench wb --subset office --k 1 --mode parallel --max-tasks 1
  4. Judge and report with matching flags: harness2-judge --bench wb --subset office --k 1 --mode parallel
  5. Read the report: harness2-report --bench wb --subset office --k 1 --mode parallel

Prompt for your agent

In google-research/harness2, set up WorkBuddy-Bench with harness2-setup wb and run one task from --subset office with --k 1 --mode parallel, then judge and report with identical flags. Verify Docker is running first and that the subset flag is passed on every command after setup.

Caveat. WorkBuddy-Bench needs Docker and the --subset flag on every command after setup, and the README guide for WorkBuddy should be checked for the exact task-selection flags before running.

Open this use case on its own page

Run a clean benchmark with network limits against rubric leaks

Lock down network access before evaluating so an agent cannot look up public benchmark answers.

  • Advanced
  • 1 hour
  • Any agent
Seen in the wild

Evidence (similar to what people reported): X, Oct 2026 · X, Oct 2026

WhoResearcher reporting harness-improvement numbers who must show the agent could not read public rubrics

The problemExecutors have open web access and public rubrics may exist online, so scores can be inflated by looking up answers.

The outcomeA benchmark run done under network restrictions, giving numbers you can defend as not contaminated by leaked grading criteria.

Steps

  1. Read the web access section of docs/EXPERIMENTS.md and apply its network restrictions.
  2. Preview task selection with no model calls by adding --dry-run to your harness2 command.
  3. Run the real refinement: harness2 --bench lab --k 1 --mode parallel --only-domains antitrust-competition --max-tasks 1
  4. Judge: harness2-judge --bench lab --k 1 --mode parallel
  5. Report: harness2-report --bench lab --k 1 --mode parallel

Prompt for your agent

Before running any model-backed benchmark in google-research/harness2, read the web access section in docs/EXPERIMENTS.md and tell me what network restrictions to configure for <benchmark>. Then run a --dry-run preview and verify task selection looks right.

Caveat. Authorized use only: run this only inside infrastructure you control, since the README states executors have unrestricted network access and Codex runs with its sandbox disabled, and public rubrics may be online.

Open this use case on its own page

Compare parallel and sequential refinement on the same task

Run the same benchmark task in both recursion modes to pick the cheaper or stronger refinement strategy.

  • Intermediate
  • 2 hours
  • From the README
  • Any agent

WhoML engineer deciding how to spend an agent-refinement compute budget on a recurring task type

The problemIt is unclear whether exploring many candidates at once or refining step by step gives better results per dollar for your task.

The outcomeTwo reports for the same task, one per mode, that you can compare side by side to choose a strategy.

Steps

  1. Run parallel mode: harness2 --bench lab --k 2 --mode parallel --only-domains antitrust-competition --max-tasks 1
  2. Run sequential mode: harness2 --bench lab --k 2 --mode sequential --only-domains antitrust-competition --max-tasks 1
  3. Judge each run: harness2-judge --bench lab --k 2 --mode parallel and harness2-judge --bench lab --k 2 --mode sequential
  4. Report each run: harness2-report --bench lab --k 2 --mode parallel and harness2-report --bench lab --k 2 --mode sequential
  5. Compare the two reports and the adopted harnesses.

Prompt for your agent

Using google-research/harness2, run LAB on one task with --k 2 in both parallel and sequential modes, judge and report each, and tabulate the scores side by side. Verify both runs used the same task selection and seed before comparing.

Caveat. A single task is a very noisy comparison, and the README ties each judge and report call to its own mode, k and seed, so run the full command set once per mode.

Open this use case on its own page

Run harness refinement with the Codex executor

Switch from the default OpenCode executor to Codex to see how the executor changes refined-harness results.

  • Advanced
  • 1 hour 30 minutes
  • From the README
  • Codex

WhoDeveloper who already uses Codex as a coding agent and wants harness improvements tuned to that executor

The problemHarness edits that help one executor may not carry over to another, and you have no way to check without a controlled run.

The outcomeA refinement run on Codex whose results are stored separately so you can compare it against an OpenCode run.

Steps

  1. Read the Codex executor section in docs/SETUP.md and finish its prerequisites.
  2. Install a benchmark: harness2-setup jb
  3. Run with Codex: harness2 --bench jb --k 1 --mode parallel --substrate cx --max-tasks 1
  4. Use a fresh HARNESS2_RUNS_DIR when changing models or task selection.
  5. Judge and report with matching flags: harness2-judge --bench jb --k 1 --mode parallel --substrate cx

Prompt for your agent

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.

Caveat. Codex runs with its sandbox disabled and executors get open web access, so run it only in an isolated environment, and confirm whether judge and report also need the substrate flag in the experiment guide.

Open this use case on its own page

Resume a long refinement run after it stops midway

Re-issue the same command to continue a multi-task run without redoing finished tasks.

  • Intermediate
  • 30 minutes
  • From the README
  • Any agent

WhoResearcher running a larger JobBench or LAB sweep that was interrupted by a crash or quota limit

The problemLong model-backed runs cost money, and restarting from scratch after an interruption wastes both time and API spend.

The outcomeA completed run that picked up where it stopped, with results kept under the same runs directory.

Steps

  1. Note the exact command you used, including --bench, --k, --mode, any subset flags and seed.
  2. Re-run the identical harness2 command to resume.
  3. Use a new HARNESS2_RUNS_DIR only if you changed models or task selection.
  4. Run harness2-judge and harness2-report with the same flags once refinement finishes.
  5. Check each command's --help for extra options.

Prompt for your agent

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.

Caveat. Resume only works when you repeat the same benchmark, executor, subset, --k, --mode and seed, and changing models or task selection requires a new HARNESS2_RUNS_DIR.

Open this use case on its own page

About this repo

  • Who it is forFor builders who run LLM agents on professional tasks and want to improve the prompts, tools, memory and skills around a fixed model without fine-tuning it.
  • Why it is hotabout +853 stars a day since launch, 11k total, launched 13 days ago, talked about in 3 AI sources we track
  • LanguagePython
  • Sourcehttps://github.com/google-research/harness2 · Back to Repo Radar

Requirements

  • Linux, Python 3.12 and uv for installation
  • No credentials needed for the local demo (harness2-demo)
  • Model-backed runs need Node.js 20+, the Google Cloud CLI, a Vertex AI project and model IDs in .env, and gcloud application-default login
  • LAB needs Pandoc and Poppler; WorkBuddy-Bench needs Docker
  • Model-backed benchmark runs incur API costs