Cmd. /diff
Open the interactive uncommitted and per-turn diff viewer.
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-09-22 · Claude Code 2.1.278 |
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.