RepositoryPython
google-research

google-research/harness2

No description provided for this repository.

26.4ksao
2.6kfork
53issue
1lượt xem

🧠 Recursive Agent Harnessing for an Open World

Refine the harness around a fixed model without changing its weights.

Harness² is a plug-and-play framework for recursive agent harnessing in an open world, where agents encounter tasks unseen during harness design. A harness is the system around a model (prompts, tools, memory, skills, orchestration, and more), and harnessing is the process of optimizing that system. Instead of fine-tuning model weights, Harness² keeps them fixed and connects two levels of recursion to improve the harness itself.

✨ Highlights

  • Task-level recursion (Propose–Probe–Compose): For the current task, the harness editor proposes edits, candidate probes execute them, and a harness composer combines them into a refined harness from behavioral contrasts — without ground-truth feedback.
  • Harnessing-level recursion: A persistent improvement harness is updated with adopted harnesses and evidence-supported lessons from each task to guide future refinement.
  • Eight editable components: System prompt, guardrails, memory, tool guidance, subagents, skills, scripts, and plugins control context construction, the tool interface, delegation, and behavior inside the tool loop.
  • Parallel and sequential recursion: Supports both recursion modes, with a tunable task-level recursion budget (--k).
  • Multiple executors and benchmarks: Works with OpenCode and Codex executors, and supports JobBench, LAB, and WorkBuddy-Bench.
  • Local demo with no credentials: harness2-demo runs both recursion modes with deterministic editors and real Python executions.
  • Measured gains on fixed models: 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. Larger task-level recursion budgets bring further gains.

💡 Why it matters

Harness² treats the agent harness as something to optimize recursively rather than hardcoding it upfront. By contrasting executions of the same task and carrying evidence-backed lessons between tasks, it can adapt to unseen tasks while keeping model weights fixed.

It's built for professional work settings, with benchmark guides, setup paths for each supported benchmark, and tooling to run, judge, and report results under controlled conditions.


#AI #Agents #AgentHarness #OpenSource #TiniX