2026-11-26 15:48 UTC

Google Research releases Harness² for recursively improving agent setups

state: watchingheat: lowuncertainty: mediumrelevance: highagent-harness google-research evaluation recursive-harnessing harness-optimizationGoogle ResearchRuiyao XuYanfei ChenZhongying CuiZhuBhavana Dalvi MishraYifei MingHan YuRujun HanChen-Yu LeeTomas Pfister

What is this?

Harness² is a Google Research open-source framework for refining an AI agent’s harness—the prompts, tools, memory, skills, and orchestration around a model—without changing model weights. It uses task-level Propose–Probe–Compose iterations to compare candidate harness edits, then carries adopted changes and lessons into a persistent improvement harness. The project and paper report gains over baseline harnesses on JobBench, LAB, and WorkBuddy-Bench using GLM-5 and Gemini 3.5 Flash. These are author-reported benchmark results; the supplied sources do not establish independent replication or that Harness² has become a widely adopted reference.

Why it matters

Harness² is a notable open-source experiment in improving agents by changing the system around a model rather than its weights. Its two-level loop proposes and probes harness edits on a task, then carries adopted changes and lessons into later work. If the reported benchmark gains generalize, this could make harness design more adaptive and reduce dependence on manually tuned prompts and workflows. However, the gains are reported by the authors, and the supplied evidence does not establish independent replication or broad adoption. The framework also warns that network access must be restricted during evaluation to prevent agents from seeing public benchmark answers or rubrics.

Current assessment

Google Research’s open-source Harness² framework uses task-level Propose–Probe–Compose iterations to refine an agent’s prompts, tools, memory, skills, and orchestration without changing model weights, then carries adopted harnesses and evidence-supported lessons into future tasks. The paper and repository report gains over base harnesses on JobBench, LAB, and WorkBuddy-Bench using GLM-5 and Gemini 3.5 Flash; these results have not been independently replicated in the evidence available here. The repository supports OpenCode and Codex executors and warns that executor network access is unrestricted by default, which can expose public benchmark rubrics and answers unless restricted. The release is useful to track as a practical framework for agent-system optimization, but there is no evidence here that it has become a widely adopted reference harness. Discussion and engagement rose on Reddit, while current measured activity is flat; neither establishes technical validation or adoption.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady3 platformsage 1178h
points/hour across evidence Ā· reading as of 2026-11-27 02:23:58.509736+11:00 Ā· deterministic, not a model opinion

How the heat travelled

10-08 13:00⭐ origin echo-reconstructedAbstract: "We introduce Harness^2, a plug-and-play, recursive agent harnessing framework that addresses these challenges through two connect
Ruiyao Xu, Yanfei Chen, Zhongying CuiZhu, Bhavana Dalvi Mishra, Yifei Ming, Han Yu, Rujun Han, Chen-Yu Lee, Tomas Pfister (Google Research team; code released under google-research) on paper (echo) Ā· attributed from hn.story.50140036
—
10-18 11:21first on hacker news Ā· published Ā· +238.4hHarness2
_benx_
—
10-18 22:33first on r/LocalLLaMA Ā· published Ā· +249.6hGoogle Open Sources Harness2 for Self Improving AI Agents
chemist_slime
—
10-18 11:21amplified on hacker newshn.story.50140036
_benx_
peak 5 Ā· 2 comments Ā· 1% of case engagement
10-18 22:33amplified on r/LocalLLaMA šŸ‘‘reddit.post.1x9gfnb
chemist_slime
peak 1930 Ā· 150 comments Ā· 91% of case engagement
10-18 23:19amplified on hacker newshn.story.50146503
reimertz
peak 5 Ā· 0 comments Ā· 0% of case engagement
10-19 11:28amplified on hacker newshn.story.50151059
irthomasthomas
peak 81 Ā· 18 comments Ā· 8% of case engagement
10-18 12:20our radar first saw it Ā· +239.3hdiscovery anchor: hn.story.50140036—

Evidence (5) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnHarness2
Retrieved article excerpt

Open article Ā· Retrieved 2026-10-18T12:22:48.780198+00:00

### [Harness²](https://github.com/google-research/harness2/blob/main/assets/Harness2-wordmark.png) Recursive Agent Harnessing for an Open World

[Paper](https://arxiv.org/pdf/2610.14224)
[Website](https://harness2.github.io)
[Benchmark guides](https://github.com/google-research/harness2/blob/main/docs/BENCHMARKS.md)
[License](https://github.com/google-research/harness2/blob/main/LICENSE)

[Install, set up, and run JobBench: uv pip install -e '.[render]', harness2-setup jb, then harness2 --bench jb --k 1 --mode parallel. Click for prerequisites and commands.](https://github.com/google-research/harness2/blob/main/docs/BENCHMARKS.md#jobbench)

A **harness** is the system around a model that enables it to act as an agent:
prompts, tools, memory, skills, orchestration, and more. **Harnessing** is the
process of optimizing that system.

Harness² is a plug-and-play framework for **recursive agent harnessing** in an
open world, where agents encounter tasks unseen during harness design. It
connects two levels of recursion while keeping model weights fixed:

- **Task-level recursion** refines the execution harness for the current task
  through a contrastive **Propose–Probe–Compose** step: propose edits, probe
  their effects on the same task, and compose a refined harness from behavioral
  contrasts between executions, without ground-truth feedback.
- **Harnessing-level recursion** updates a persistent *improvement harness*
  with adopted harnesses and evidence-supported lessons from each task to guide
  future refinement.

[Harness² pipeline. Task-level recursion: an agent executor runs the initial harness, a harness editor proposes invariant and domain edits, candidate probes execute them, and a harness composer combines them into the final harness. Harnessing-level recursion: an experience reflector reflects on the step and updates the improvement harness used for the next task.](https://github.com/google-research/harness2/blob/main/assets/harness2_pipeline.png)

Across three professional benchmarks and four model–harness configurations, a
single Harness² step improves GLM-5 and Gemini 3.5 Flash over their base
harnesses, with gains of up to 11.5 points on WorkBuddy-Bench, 4.5 points on
JobBench, and 11.8 percentage points on LAB's partial pass rate. Increasing the
task-level recursion budget brings further gains.

The release supports **parallel and sequential recursion**, **OpenCode and
Codex executors**, and **JobBench, LAB, and WorkBuddy-Bench**.

## Video overview

harness2-video.mp4

[
](https://private-user-images.githubusercontent.com/63894509/669252828-76b10548-b14b-4c8f-9aa5-a93662df4d56.mp4?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTIzMjY0NjgsIm5iZiI6MTc5MjMyNjE2OCwicGF0aCI6Ii82Mzg5NDUwOS82NjkyNTI4MjgtNzZiMTA1NDgtYjE0Yi00YzhmLTlhYTUtYTkzNjYyZGY0ZDU2Lm1wND9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjEwMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMDE4VDEyMjI0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJjZjlhYzQ3YWQ0ZjZlZWY3MWZjOThkYmU3OTNkZWNkNGFkOGQyOTYzNjA1MWVjNTI5M2ZlMWE5N2I2YWExNDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT12aWRlbyUyRm1wNCJ9.R6W9pmEcVe-Kgnt3ov062vkiSY9oxEOL4zu5CdWtAcU)

## Contents

- [Video overview](https://github.com/google-research/harness2#video-overview)
- [Harness components](https://github.com/google-research/harness2#harness-components)
- [Install](https://github.com/google-research/harness2#install)
- [Run a benchmark](https://github.com/google-research/harness2#run-a-benchmark)
- [Experiments](https://github.com/google-research/harness2#experiments)
- [Web access](https://github.com/google-research/harness2#web-access)
- [Results and resume](https://github.com/google-research/harness2#results-and-resume)
- [Citation](https://github.com/google-research/harness2#citation)
- [Contributing](https://github.com/google-research/harness2#contributing)
- [License](https://github.com/google-research/harness2#license)
- [Disclaimer](https://github.com/google-research/harness2#disclaimer)

## Harness components

Harness² exposes eight editable components around the model: **system prompt,
guardrails, memory, tool guidance, subagents, skills, scripts, and plugins**.
They control context construction, the tool interface, delegation, and behavior
inside the tool loop.

[Eight harness components grouped by runtime role: system prompt, guardrails, memory, and skills construct context; tool guidance and scripts define the tool interface; subagents orchestrate delegated work; plugins control middleware.](https://github.com/google-research/harness2/blob/main/assets/components.png)

## Install

Use **Linux, Python 3.12, and [uv](https://docs.astral.sh/uv/getting-started/installation/)**.
From the repository root:

```
uv venv --python 3.12 .venv
source .venv/bin/activate
uv pip install -e '.[render]'
harness2-demo --output runs/demo --k 2
```

The local demo runs both recursion modes with deterministic editors and real
Python executions. It requires no model credentials.

For model-backed benchmarks, install **Node.js 20+, the Google Cloud CLI**, and
the [benchmark dependencies](https://github.com/google-research/harness2/blob/main/docs/SETUP.md#requirements). LAB needs Pandoc and
Poppler; WorkBuddy-Bench needs Docker. Then configure your models:

```
cp .env.example .env
# Edit .env with your Vertex AI project and model IDs.
gcloud auth application-default login
```

See the [setup guide](https://github.com/google-research/harness2/blob/main/docs/SETUP.md) for model settings, authentication
alternatives, and the [Codex executor](https://github.com/google-research/harness2/blob/main/docs/SETUP.md#codex-executor).

## Run a benchmark

The following example installs LAB and runs one task, then evaluates and reports
its result. Model-backed runs incur API costs; start with a small task selection.

```
harness2-setup lab
harness2-check --bench lab
harness2 --bench lab --k 1 --mode parallel \
  --only-domains antitrust-competition --max-tasks 1
harness2-judge --bench lab --k 1 --mode parallel
harness2-report --bench lab --k 1 --mode parallel
```

Sequential recursion runs the same commands with `--mode sequential`. `--k` is
the task-level recursion budget; see [Experiments](https://github.com/google-research/harness2#experiments). Judging and
reporting must use the same benchmark, executor, subset, `--k`, `--mode`, and
seed as the refinement run. Add `--dry-run` to `harness2` to preview task
selection without model calls.

| Benchmark | Tasks | Install | Guide |
| --- | --- | --- | --- |
| JobBench | Professional work | `harness2-setup jb` | [JobBench](https://github.com/google-research/harness2/blob/main/docs/BENCHMARKS.md#jobbench) |
| LAB | Legal work | `harness2-setup lab` | [LAB](https://github.com/google-research/harness2/blob/main/docs/BENCHMARKS.md#lab) |
| WorkBuddy-Bench | Office, web, and code | `harness2-setup wb` | [WorkBuddy](https://github.com/google-research/harness2/blob/main/docs/BENCHMARKS.md#workbuddy-bench) |

Choose one benchmark per command. WorkBuddy also takes `--subset office`,
`--subset web`, or `--subset code` on every command after setup. The
[benchmark guides](https://github.com/google-research/harness2/blob/main/docs/BENCHMARKS.md) cover each one's data, domains, and
grading.

## Experiments

Scale task-level recursion in two ways: **parallel recursion** explores multiple
candidate harnesses and composes refinements from their execution evidence;
**sequential recursion** carries the refined harness and accumulated evidence
through successive Propose–Probe–Compose steps.

[Two ways to scale task-level recursion. Parallel: probe k general and k domain-specific candidate harnesses, then produce k compositions from the shared evidence. Sequential: carry the refined harness and accumulated evidence through k Propose–Probe–Compose steps.](https://github.com/google-research/harness2/blob/main/assets/harness2_recursion_modes.png)

*Parallel recursion explores wider; sequential recursion refines deeper.*

| Option | Behavior |
| --- | --- |
| `--k 1` | One Propose–Probe–Compose step |
| `--k K --mode parallel` | Probe `K` general and `K` domain-specific candidates, then produce `K` compositions |
| `--k K --mode sequential` | Refine the harness through `K` successive steps |
| `--substrate cx` | Use Codex instead of the default OpenCode executor |

After each task, harnessing-level recursion retains the adopted harness and
evidence-supported lessons to guide future refinement. See the
[experiment guide](https://github.com/google-research/harness2/blob/main/docs/EXPERIMENTS.md) for task selection, concurrency,
reproducibility, and baseline comparisons.

## Web access

Executor network access is unrestricted, and Codex runs with its sandbox
disabled. Public benchmark rubrics may be accessible online. Before evaluation,
configure [network restrictions](https://github.com/google-research/harness2/blob/main/docs/EXPERIMENTS.md#web-access) to prevent
access to benchmark answers and grading criteria.

## Results and resume

Results are saved under `runs/`, organized by benchmark and subset where
applicable. They include task summaries, deliverables, adopted harnesses,
reflection notes, and evaluation results.

Repeat the same command to resume. Use a new `HARNESS2_RUNS_DIR` when changing
models or task selection. See [results and resume](https://github.com/google-research/harness2/blob/main/docs/EXPERIMENTS.md#results-and-resume)
for details; each command also supports `--help`.

## Citation

```
@article{xu2026harness2,
  title   = {Harness$^2$: Recursive Agent Harnessing for an Open World},
  author  = {Xu, Ruiyao and Chen, Yanfei and CuiZhu, Zhongying and Dalvi Mishra, Bhavana and Ming, Yifei and Yu, Han and Han, Rujun and Lee, Chen-Yu and Pfister, Tomas},
  journal = {arXiv preprint arXiv:2610.14224},
  year    = {2026},
  url     = {https://arxiv.org/abs/2610.14224}
}
```

## Contributing

See [CONTRIBUTING.md](https://github.com/google-research/harness2/blob/main/CONTRIBUTING.md).

## License

Harness² is licensed under [Apache 2.0](https://github.com/google-research/harness2/blob/main/LICENSE). Third-party code under
[`third_party/`](https://github.com/google-research/harness2/blob/main/third_party/README.md), benchmarks, and datasets retain their
upstream licenses; see
[third-party notices](https://github.com/google-research/harness2/blob/main/dependencies/README.md).

## Disclaimer

This is not an officially supported Google product. This project is not eligible
for the [Google Open Source Software Vulnerability Rewards Program](https://bughunters.google.com/open-source-security).
_benx_52
🟧 echo.paper ⭐Abstract: "We introduce Harness^2, a plug-and-play, recursive agent harnessing framework that addresses these challenges through two connectRuiyao Xu, Yanfei Chen, Zhongying CuiZhu, Bhavana Dalvi Mishra, Yifei Ming, Han Yu, Rujun Han, Chen-Yu Lee, Tomas Pfister (Google Research team; code released under google-research)——
🟧 hnGoogle Harness2: Recursive Agent Harnessing for an Open Worldreimertz50
🟠 redditGoogle Open Sources Harness2 for Self Improving AI Agents
LocalLLaMA
chemist_slime1930150
🟧 hnHarness2 by Google Research – Recursive Agent Harnessingirthomasthomas8118

Interpretation history

Decision trace