Get an automatic second review on every pull request
Comment @codex review on a GitHub pull request, or switch on automatic reviews; the agent reads the diff, follows your repository's review rules and posts a review focused on serious problems.
Steps
- Connect the repository in the Codex settings
- Write your review rules in AGENTS.md
- Turn on automatic reviews once the comments are useful
Starter prompt
Review rules for AGENTS.md: flag only bugs, security issues and missing tests; ignore style nits; always check that database migrations can be rolled back.
Guardrail: It adds a reviewer; it does not replace one.
Prompts are our own examples. Results from sources are as reported by their authors.