跳转到内容

快速开始

repo-harness 把一次 Claude 或 Codex 编码会话变成可重复的 repo-local 工作流。你把一份已批准的计划交给 agent,它在隔离分支里干活,而你从文件里审查结果——而不是从聊天记忆里。

Terminal window
# install the runtime (pulls in Bun if missing)
curl -fsSL https://raw.githubusercontent.com/Ancienttwo/repo-harness/main/install.sh | sh
repo-harness init
# from your repo root — preview, then apply
repo-harness adopt --dry-run
repo-harness adopt

这就是全部流程。关于前置条件、各 agent 的接线方式(Claude Code / Codex)、adopt 创建的文件树,以及如何确认护栏已生效,请参考 安装指南

采用之后,你的循环就只是审查并继续

  • agent 在 plans/ 中针对一份已批准的计划工作;
  • 进度记录在 tasks/ 下——契约、审查、笔记;
  • 每个任务以一张 Human Review Card 收尾:结论、预期与实际改动的文件、通过的命令、残余风险,以及一行回滚说明。

下一步:工作流