AI 编程 4.0 · 优秀 2026-07-20 · 文章

Custom Code Review rules for Codex

Codex Code Review 可读仓库 AGENTS.md 中的自定义规则并在 finding 中引用动机:agent 推高 PR 量(OpenAI 称自 Q4 周 PR >2),diff 合理仍可能破坏旧客户端或跨服务边界规则应写有后果的不变量+安全改法,root/嵌套目录分范围;机械项仍归 CI官方 eval 主套件:规则引导变体恢复约 98% 所需 custom findings,基线约 58.3%与 effort 旋钮正交:仓库先验 vs 算力深度

打开原文回到归档

Custom Code Review rules for Codex

摘要(中文)

Codex Code Review 可读仓库 AGENTS.md 中的自定义规则并在 finding 中引用。动机:agent 推高 PR 量(OpenAI 称自 Q4 周 PR >2×),diff 合理仍可能破坏旧客户端或跨服务边界。规则应写有后果的不变量+安全改法,root/嵌套目录分范围;机械项仍归 CI。官方 eval 主套件:规则引导变体恢复约 98% 所需 custom findings,基线约 58.3%。与 effort 旋钮正交:仓库先验 vs 算力深度。

Summary (English)

Codex Code Review can apply custom repository rules from AGENTS.md and cite them in findings. Motivated by rising PR volume (OpenAI reports weekly PR volume more than doubled since Q4) where reasonable diffs still break older clients or unknown boundaries. Write narrow, consequential invariants with safe remediation; keep repo-wide rules at root and service rules nested; leave mechanical checks to CI. In the primary eval suite, rule-guided variants recovered 98% of required custom findings vs 58.3% baseline. Orthogonal to review effort: rules supply repository priors; effort supplies compute depth.

One-liner

把反复讲的评审意见写成 AGENTS.md 窄规则,让 Codex Review 可引用。

Source body / metadata

Fetched via opencli web read / official docs during evening intake. Key claims are grounded in the source page and same-day Obsidian digest notes.

Codex Code Review can apply custom repository rules from AGENTS.md and cite them in findings. Motivated by rising PR volume (OpenAI reports weekly PR volume more than doubled since Q4) where reasonable diffs still break older clients or unknown boundaries. Write narrow, consequential invariants with safe remediation; keep repo-wide rules at root and service rules nested; leave mechanical checks to CI. In the primary eval suite, rule-guided variants recovered 98% of required custom findings vs 58.3% baseline. Orthogonal to review effort: rules supply repository priors; effort supplies compute depth.

Obsidian evidence

  • local_note: 调研/2026-07-22-Codex-AGENTS-md评审规则与10M里程碑.md
  • intake_run: daily-intake-evening 2026-07-22