Cmd. /diff
Review current Git changes from inside Codex.
Key takeaways
- Review current Git changes from inside Codex.
- Check the input surface and availability before using the examples below.
Purpose
Review current Git changes from inside Codex.
/diffAvailability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Current reference |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-09-22 · Codex CLI 0.155.1 |
The installed command menu and account or organization settings determine availability.
Examples
/diffWhen to use it
- Run
/diffbefore/reviewso you know the exact behavioral surface being reviewed. - Use
/diffafter applying a subagent result before merging it into the main thread.
Choosing related commands
| Command | Difference | Choose It When |
|---|---|---|
/diff | Shows working tree changes | You need to inspect edits |
/review | Reviews risks in the working tree | You need a code-review pass |
/status | Shows session state | You need model, policy, or token state |
Effects and persistence
Displays code changes; opening the viewer does not commit or revert them.
/diff shows the Git diff, including files Git is not tracking yet, so you can inspect Codex edits
before committing or testing.
Cautions
/diffis not a test. Run the relevant verification command after reviewing changes.- In dirty worktrees, separate user changes from Codex changes before judging the result.
Official sources
Complete command list · Verification scope · History for this command