debate-review
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesedebate-review
debate-review
Two models argue before anything is posted. A main reviewer finds issues. A debate reviewer tries to
knock them down and may add its own. The main reviewer then makes the final call, and one review with
inline comments lands on the PR or MR. It posts from the user's own or account as a
review. It never approves and never requests changes.
ghglabCOMMENTYou are the orchestrator. You run one command and relay the result. You do not review the diff
yourself, and you do not touch the PR.
在发布任何内容前,两个模型会展开辩论。主评审模型负责发现问题,辩论评审模型则试图反驳这些问题,同时也可能提出自己的问题。之后主评审模型做出最终决定,最终生成一份带有行内评论的评审内容发布到PR或MR上。评审内容将通过用户自己的或账户以评审的形式发布,既不会批准也不会要求修改。
ghglabCOMMENT你作为协调者,只需运行一条命令并传递结果即可。无需你自行评审代码差异,也无需操作PR。
Run it
运行方式
bash
node "<skill-dir>/scripts/review-pr.mjs" <pr-url | number> [--dry-run]- is a GitHub
<pr-url>or GitLab/pull/NURL. A bare number resolves against the cwd's/-/merge_requests/N.origin - The reviewers are two delegate-skills lanes, and
review-main. If either is missing the script says so. Add them withreview-debate. Pick two different implementers, since the debate is only worth something when the second model doesn't share the first one's blind spots (maindelegate-setuporclaude, debategrokat high effort is a good pair). For a one-off, passcodexor--main <implementer>. Only implementers whose relay has--debate <implementer>are accepted. These two lanes belong to the reviewer. Don't point them at a lane you use for other work, such as a plan-debate lane.--read-only - prints the review instead of posting it. Use it when the user wants to see the review before it lands.
--dry-run - Exit code means this head sha already has a debate-review. Re-run with
3to post again.--force - A run takes minutes, since it is two or three implementer sessions back to back. Run it in the background and report the printed URL when it finishes. Don't poll tightly.
All flags: . Contracts: references/schema.md. What gets posted:
references/comment-format.md. The reviewer briefs live in
and the script fills them in; you don't need to read them.
--helpassets/prompts/bash
node "<skill-dir>/scripts/review-pr.mjs" <pr-url | number> [--dry-run]- 是GitHub的
<pr-url>或GitLab的/pull/N格式的URL。若仅输入数字,则会基于当前工作目录的/-/merge_requests/N仓库解析对应的PR/MR。origin - 评审由两个委托技能通道和
review-main完成。若缺少其中任意一个,脚本会给出提示。可通过review-debate命令添加这两个通道。请选择不同的模型实现方,因为只有当第二个模型不存在第一个模型的盲区时,辩论才有意义(主模型选delegate-setup或claude,辩论模型选高算力的grok是不错的组合)。若仅需单次使用,可通过codex或--main <implementer>参数指定模型实现方。仅接受带有--debate <implementer>参数的中继实现方。这两个通道专用于评审,请勿指向你用于其他工作的通道,比如计划辩论通道。--read-only - 参数会打印评审内容而非直接发布。当用户希望在发布前预览评审内容时可使用该参数。
--dry-run - 退出码表示当前提交哈希值对应的PR/MR已存在辩论式评审。可添加
3参数重新运行以再次发布。--force - 一次运行需要数分钟时间,因为会连续进行两到三次模型会话。建议在后台运行,完成后报告打印出的URL即可,无需频繁轮询。
所有可用参数:。相关约定:references/schema.md。发布内容格式:references/comment-format.md。评审提示语存储在目录下,由脚本自动填充,无需你手动查看。
--helpassets/prompts/After it posts
发布后
Each posted comment carries a marker. recognises
the marker and handles the round like any other bot round (verify, fix blockers, reply in the thread,
resolve). Don't act on the findings yourself unless the user asks.
<!-- debate-review:<id> status=... -->babysit-pr每条发布的评论都带有标记。工具可识别该标记,并像处理其他机器人评审回合一样处理本次评审(验证问题、解决阻塞、回复线程、标记已解决)。除非用户要求,否则请勿自行根据评审结果采取行动。
<!-- debate-review:<id> status=... -->babysit-prArtifacts
生成文件
~/.cache/debate-review/<owner>__<repo>/<N>/<head>/run.jsonmain/debate/final/result.json~/.cache/debate-review/<owner>__<repo>/<N>/<head>/run.jsonmain/debate/final/result.json