跳到正文

正在自动登录…

← 返回项目列表

google-research/harness2

代理优化基准测试

Harness² 是一个用于递归代理优化的框架,通过任务级和优化级两层递归,在保持模型权重不变的情况下,自动改进代理的系统提示、工具、记忆等组件,适用于需要提升代理在开放世界中处理未见任务能力的场景。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/18 04:06:29 · 查看原文

值得看Python研究项目
累计 Stars
17,653
当前热度
7~30 天 · 爆款
仓库创建时间
打开 GitHub ↗

选用指南

AI 根据 README 整理 · 2026/10/18 04:06:29

使用方式

通过命令行使用,提供 setup、check、run、judge、report 等子命令,支持并行和顺序递归模式。

查看 README 依据
alternatives, and the [Codex executor](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. ```bash 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](#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](docs/BENCHMARKS.md#jobbench) | | LAB | Legal work | `harness2-setup lab` | [LAB](docs/BENCHMARKS.md#lab) |
部署要求

需要 Linux、Python 3.12 和 uv。模型基准测试需要 Node.js 20+、Google Cloud CLI,以及各基准的依赖(LAB 需要 Pandoc 和 Poppler,WorkBuddy-Bench 需要 Docker)。

查看 README 依据
<img src="assets/components.png" alt="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." width="100%"> </a> </p> ## Install Use **Linux, Python 3.12, and [uv](https://docs.astral.sh/uv/getting-started/installation/)**. From the repository root: ```bash 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](docs/SETUP.md#requirements). LAB needs Pandoc and Poppler; WorkBuddy-Bench needs Docker. Then configure your models: ```bash cp .env.example .env # Edit .env with your Vertex AI project and model IDs. gcloud auth application-default login ``` See the [setup guide](docs/SETUP.md) for model settings, authentication
已知限制

模型支持的运行会产生 API 费用;执行器网络访问不受限制,Codex 沙箱被禁用,需自行配置网络限制以防止访问基准答案。

查看 README 依据
alternatives, and the [Codex executor](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. ```bash 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
Executor network access is unrestricted, and Codex runs with its sandbox disabled. Public benchmark rubrics may be accessible online. Before evaluation, configure [network restrictions](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

README

正在加载 README…

收录信息

仓库创建时间
2026/10/7 05:48:11
首次达标收录
2026/10/18 04:01:17
统计更新时间
2026/10/22 19:25:29

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

值得看加权总分 3.9 / 5

新颖度
4.2
实用价值
3.8
成熟度
4.2
实质含量
3.7

由 Jev 模型根据仓库描述与 README 评估,2026/10/18 04:01:17 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/14 10:22:51
许可证标识
Apache-2.0
Fork 数
1,685
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目