peerreview:两家厂商的 AI 一起审一个仓库,直到都说可以peerreview: two AI vendors review one repo until both say it's done
peerreview 让两家厂商的 AI 一起检查一个仓库。主方(HOST)负责审查,管 git。同伴(PEER)来自另一家,负责改文件。两边来回改,直到都同意仓库做到了它说的事。
章程。 每次先写下“完成”是什么意思,依据你的指令和仓库文档,放在临时目录,不进仓库。文档矛盾或没写,就停下问你。
同伴。 Claude Code 和 Codex CLI 互相审。另一个用不了才换 DeepSeek,报告里写明。
一轮。 主方审查、跑检查,同伴修改,主方读真实的 diff、重跑检查、提交。
护栏。 每个同伴都有 git 防护和 30 分钟时限。裁决那轮不许改;dsh 挡不住,动过就判失败。
何时停。 检查全过,且同伴在中立提问下回答 CONVERGED。至少一轮同伴,没有上限。没进展就停下。
落地。 各轮压成一个提交,开成拉取请求。打标签记下审过的提交,下次从这开始。~/projects 下的仓库不做任何 git 写入;--chat 参数在临时仓库里审一个想法。
越用越好。 /peerreview-evolve 把教训写进技能,但要先过宪法这关。没过的直接丢掉,不记日志。
peerreview is a skill that has two AI models from different vendors check a repo together. The HOST reviews and owns git. The PEER, from the other vendor, edits files. They loop until both agree the repo does what it claims.
The charter. Each run first writes down what "done" means, from your instruction and the repo's own docs. It lives in a temp folder, never in the repo. If the docs conflict or say nothing, it stops and asks.
The peer. Claude Code and the Codex CLI review each other. DeepSeek is a fallback, used only when the other one can't be reached, and the report says so.
One round. The HOST reviews and runs the checks, the PEER fixes, the HOST reads the real diff, reruns the checks and commits.
Guard rails. Each PEER runs behind a git guard and a 30-minute deadline. In the verdict round edits are blocked; dsh can't block them, so its round fails if the tree moved.
When to stop. Every check passes and the PEER says CONVERGED to a neutral prompt. At least one peer round always runs; there is no upper limit. A round with no progress stops the loop.
Landing. Rounds are squashed into one commit and opened as a pull request. A tag marks the reviewed commit, so the next run can start from it. Repos under ~/projects get no git writes; the --chat flag reviews an idea in a temp repo.
Getting better. /peerreview-evolve turns lessons into skill edits, but only if they pass the constitution. Anything else is dropped, not logged.
来源Source: github.com