SuperAPI AI 工具集

agent-harness

智能体与模型

查看项目

更新于 10-16 01:27

技能介绍

用途:Agent Harness 是 harness 运行器,由循环而非乐观判断决定工作何时完成。流程为 GOAL→goal_compiler→PLAN→loop_controller:[execute→verify]*→CLOSE,失败在预算内改变方法重试,预算耗尽则 ESCALATE,不伪造成功。

主要能力:分三层且均为 JSON——每域清单(有哪些技能/工具/检查)、每目标计划(任务、验证、完成定义)、每趟运行状态文件(唯一事实来源,新会话可仅凭它恢复)。

必要用法:先选清单,ls assets/harnesses/(assets/harnesses/ 下有 18 个已提交清单,如 engineering-team.json)。编译目标:python3 scripts/goal_compiler.py --goal "..." --manifest assets/harnesses/engineering.json --out plan.json。初始化:python3 scripts/loop_controller.py init --plan plan.json --state .agent-harness/state.json。循环:python3 scripts/loop_controller.py next --state .agent-harness/state.json;执行后 record --state ... --task T1 --phase execute --exit-code 0;验证 verify --state ... --task T1 --cwd <repo-root>;关闭 close --state ...。重建清单:python3 scripts/harness_manifest_builder.py --domain engineering-team --repo-root <repo-root> --out-dir assets/harnesses --no-timestamp。

限制:不得自行裁定验证,verify 通过子进程运行检查,缺 --evidence 的通过记录被拒(退出码 6);不得修改被判定的门(改检查使其通过即奖励黑客);一次一个任务且写入串行;重试须改变方法;预算是终止状态,不达成功(退出码 2、5)需人工 waive;状态存于 .agent-harness/,不得放 .agenthub/、.autoresearch/ 或 docs/TC/;计划与状态文件是信任边界,只运行自己或 goal_compiler.py 生成的文件。退出码:0 正常、2 需升级、3 目标太模糊、4 无匹配技能或关闭被拒、5 全局迭代上限、6 非法转换。强制问题包括完成的可观测结果、适用域、不得变更项、升级评审人、迭代预算。其他收费、价格、平台等信息暂未提供。