codex review
The CLI subcommand that runs a code review non-interactively — the standard entry for CI and pre-commit checks.
Specs
Verified:
- Kind
- CLI subcommand (non-interactive)
- Syntax
- codex review [options]
- First seen
- —unverified
- Directory trust
- --trust (since 0.169.0)
The official help for `codex review` reads "Run a code review non-interactively". It is a distinct path from the in-TUI `/review`: this is the non-interactive entry point, suited for CI/pipelines; since 0.169.0 it takes `--trust` (project config and MCP stay disabled in untrusted directories — #60041). First-seen version is unverified.
Timeline
- 0.169.0: review takes --trust — untrusted dirs keep project config and MCP disabled even with --sandbox workspace-write (#60041)
Key features
- Non-interactive code review
- --trust directory trust gating since 0.169.0
- Complementary to the in-session /review
Use cases
Automated PR reviews in pipelines — better suited than the in-session /review for unattended runs.
Install
Run `codex review` from the repo root.
Caveats
In CI mind the untrusted-directory policy — since 0.169.0, without --trust project config and MCP are not loaded.
Added
Updated
Verified