Command reference ยท Codex CLI
/diff
Shows the current changes (diff) of the session.
/diff is part of the official list of interactive Codex slash commands and shows the changes Codex has made or proposed in the running session. It complements commands like /review, which additionally evaluate the changes.
โ WHEN TO USE IT?
Quickly check what Codex has changed so far
/diff โ after a few work steps, check which files were affected
See the exact line changes before approving
/diff โ look at the changes before letting Codex apply them
โ WHEN NOT TO?
You need a substantive assessment, not just the raw diff text
/diff shows the changes but doesn't evaluate them.
Better: Use /review to additionally have the changes assessed
SOURCES
- Codex CLI Doku: Slash Commands โ developers.openai.com