/diff
The slash command that shows the git diff, including untracked files.
Specs
Verified:
- Kind
- Slash command (inside TUI session)
- Syntax
- /diff
- First seen
- —unverified
- Inline args
- Not supported
The official description of /diff is "show git diff (including untracked files)" — broader than a plain `git diff` because it also covers untracked files. First-seen version is unverified (our coverage starts at 0.154.0 and the command predates it).
Key features
- View workspace changes inside the session
- Includes untracked files (unlike plain git diff)
- Remains available inside side conversations
Use cases
Check the diff after the agent edits, before deciding to commit — pairs with /review for a self-check loop.
Install
Type `/diff` in the TUI.
Caveats
It shows the working tree at call time — files the agent is still editing may change right after.
Added
Updated
Verified