Background / 背景
codex-plugin-cc 使用 Codex app-server 的原生 review/start RPC 方法来做 code review,而不是通过 turn/start 注入 review prompt。
What to borrow / 借鉴内容
review/start 是 Codex 内建的专用 review 方法
- 支持
target(review 范围:PR diff、staged changes 等)
- 支持 structured output(schema-based review results)
- 支持 streaming(
item/agentMessage/delta 实时输出)
- 参考:
codex-plugin-cc/plugins/codex/scripts/lib/codex.mjs 的 runAppServerReview
- 参考:
codex-plugin-cc/plugins/codex/scripts/lib/app-server-protocol.d.ts
Value / 价值
- 比注入 prompt 的方式更原生、更准确
- 可以利用 Codex 内建的 review 能力(adversarial review 等)
- Structured output 便于自动化处理 review 结果
Background / 背景
codex-plugin-cc使用 Codex app-server 的原生review/startRPC 方法来做 code review,而不是通过turn/start注入 review prompt。What to borrow / 借鉴内容
review/start是 Codex 内建的专用 review 方法target(review 范围:PR diff、staged changes 等)item/agentMessage/delta实时输出)codex-plugin-cc/plugins/codex/scripts/lib/codex.mjs的runAppServerReviewcodex-plugin-cc/plugins/codex/scripts/lib/app-server-protocol.d.tsValue / 价值