Cmd. /diff
Open the interactive uncommitted and per-turn diff viewer.
Written and reviewed by Eric Han · Co-founder & CTO, reopt
Key takeaways
- Open the interactive uncommitted and per-turn diff viewer.
- Check the input surface and availability before using the examples below.
Purpose
Open the interactive uncommitted and per-turn diff viewer.
/diffAvailability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Current reference |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-10-23 · Claude Code 2.1.308 |
The installed command menu and account or organization settings determine availability.
Examples
/diffEffects and persistence
Displays code changes; opening the viewer does not commit or revert them.
Cautions
Review uncommitted and per-turn views with their different comparison scopes in mind.