AI Help
How do I ask Codex to review a pull request using my team’s code review rules?
Put the team's review guidance in the documented repository instruction location and ask Codex to review the PR against the actual diff.
Steps to follow
- Write concise review rules describing important correctness risks, scope and expected evidence. Follow the current Codex code-review format.
- Identify the PR and base/head revisions, then request review using those applicable rules.
- Check each finding against the changed code and a reproducible scenario. Treat suggested issues as findings to verify.
Example in practice
Illustrative example. A team rule prioritizes duplicate-payment risks, so a review examines retry behavior and the persisted payment identifier.
Related AI help
- Why does an AI-generated patch pass locally but fail in CI?
- How do I get an AI coding agent to add a regression test for an existing bug?