Google Open-Sources Harness² for Automatic Agent System Optimization
Shifting harness tuning from manual iteration to a repeatable, evidence-driven loop could cut days of prompt and orchestration debugging for agent developers. Teams building on OpenCode or Codex can plug it in directly and optimise eight component types, including guardrails, memory and sub-agents. Compared with hand-tuned system prompts, the approach stores proven configurations rather than just task outputs.
Google open-sourced Harness², a tool that automatically optimises the harness around large models — including system prompts, tools, memory, skills, sub-agents, scripts, plugins and orchestration — without training the model or modifying weights.
It runs a Propose–Probe–Compose loop: proposing multiple harness changes, executing different configurations on the same task, and composing effective improvements from execution traces.
A second harness-level recursion keeps adopted configurations and evidence-backed lessons for future tasks.Harness² supports parallel and sequential recursion and is compatible with the OpenCode and Codex executors.
谷歌最新开源了一个Agent执行系统自动优化工具:Harness²,让Agent在执行任务过程中自动改进自己的工作系统
不训练模型、不修改权重
目的是给大模型套的System Prompt、工具、记忆、Skills、子Agent、脚本、插件、编排机制等Harness,减少开发反复尝试、修改、测试的过程
Harness² 要把这种人工调试,变成Agent自己可以反复执行的优化过程
两层递归优化机制: 任务级递归:面对一个新任务,Agent不直接固定使用原来的Harness,通过Propose–Probe–Compose循环进行优化
Propose,提出多个Harness修改方案 Probe,让不同配置实际执行同一个任务,观察行为差异 Compose,对比执行轨迹,综合有效改进,生成更适合当前任务的 Harness
Harness级递归:任务完成后,不只保存结果,还会保留采用的Harness及有执行证据支持的改进经验,用于指导后续任务中的Harness优化
支持并行和顺序递归,兼容OpenCode、Codex执行器,可以优化System Prompt、Guardrails、Memory、Tool Guidance、Subagents、Skills、Scripts、Plugins八类组件
#Harness2 #Harness自优化
This report is categorized under AITOP's "Products" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include Harness², OpenCode, Codex, agents.
Source attribution: curated from AIGCLINK (@aigclink).