Cmd. /review
Ask Codex to review the current working tree.
Key takeaways
/reviewasks Codex to review local working-tree changes, focusing on behavior changes, risks, and missing tests.- Run it after implementation and before committing, then follow with
/diffto inspect the exact lines behind a finding. - Review findings are not a substitute for actually running tests.
- In a dirty worktree, make sure both user edits and Codex edits are understood before trusting the review.
Original Command Declaration
/reviewOfficial Summary
/review asks Codex to review local working tree changes, focusing on behavior changes, risks, and
missing tests.
Usage
/reviewGood Examples
- Run
/reviewafter implementation and before committing. - Follow with
/diffwhen you need to inspect the exact changed lines behind a finding.
Similar Commands
| Command | Difference | Choose It When |
|---|---|---|
/review | Reviews risk and correctness | You need a code-review pass |
/diff | Shows exact changes | You need to inspect the patch |
/status | Shows session state | You need context before review |
Use Cases
- Pre-commit review.
- Second pass after subagent work.
- Checking for missing tests or behavioral regressions.
Cautions
- Review findings are not a substitute for running tests.
- Make sure user edits and Codex edits are understood in a dirty worktree.
Release Basis
- Judgment: confirmed addition
- First evidence version:
rust-v0.39.0 - Date (UTC): 2025-09-18
- Release link: https://github.com/openai/codex/releases/tag/rust-v0.39.0
Sources
- Codex slash commands: https://developers.openai.com/codex/cli/slash-commands
- Codex CLI features: https://developers.openai.com/codex/cli/features