Use when the user wants a local second-opinion code review via OpenAI Codex CLI — on the current branch, staged changes, a single file, or a piped diff. Triggers include "codex review", "review with codex", "run codex on this diff", "second opinion from codex", or pre-commit / pre-PR review requests that ask for codex specifically.
90
97%
Does it follow best practices?
Impact
97%
2.25xAverage score across 2 eval scenarios
Passed
No known issues
Staged-only pre-commit review
Staged-only diff command
33%
100%
Write diff to /tmp/
0%
100%
Pipe via stdin not inline
0%
100%
PROMPT.md passed
80%
100%
--sandbox read-only flag
0%
100%
Output captured
66%
100%
CRITICAL/HIGH surfacing
0%
66%
Large diff split by service area
Split into separate passes
60%
100%
Path-scoped git diff
86%
100%
Write diff to /tmp/
0%
100%
Pipe via stdin not inline
80%
100%
PROMPT.md passed each time
66%
100%
--sandbox read-only flag
0%
100%
Output captured separately
80%
100%
Branch vs main diff
90%
100%
Table of Contents