/diff
A Claude Code slash command, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
What it is
Open an interactive diff viewer showing uncommitted changes and per-turn diffs. Use left/right arrows to switch between the current git diff and individual Claude turns, and up/down to browse files. Press Enter to open the selected file's diff, scroll it with up/down or PageUp/PageDown, and press Esc to return to the file list. Claude Code computes these diffs from raw git blob content, so diff drivers and textconv filters configured in .gitattributes or git config don't apply. Before v2.1.222, workspace-configured drivers and filters could rewrite the viewer's output. The open viewer also refreshes automatically when the repository's git state changes outside the session, such as a branch switch or commit in another terminal; the auto-refresh requires Claude Code v2.1.198 or later
Anthropic's own wording. Read off Commands, captured 2026-08-28.
Presence across releases
The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Changelog entries naming it
-
v2.1.228Diff panel inside the REPL
A full uncommitted-changes side panel with filters and "Ask about selection" is built but gated off.
named in this entry
-
v2.1.228/diff tells you when the panel is unavailable
/diff now tells you when the diff panel can't be opened instead of silently doing nothing.
named in this entry
-
v2.1.228A toggleable /diff panel sits behind a gate that is off by default
/diffwould toggle a sidebar instead of opening a dialog, but the gate is off so you keep the old behaviour.named in this entry
Documentation pages
- Commands reference table Claude Code CLI
- Claude Code changelog mentions it Claude Code CLI
- Week 21 · May 18–22, 2026 mentions it Claude Code CLI
A reference table page is one whose own table defines this name, and it is where the description above came from. A page that mentions it carries the name somewhere in its text and may say nothing about it at all. Every page carrying it.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the slash command does. All slash commands.