Skip to content
Documentation
Command

/diff

Opens an interactive diff viewer showing uncommitted changes in your working directory and per-turn diffs from Claude's edits.

From plugin
explore-claude-code
32912 skills8 agents12 commands
$ npx -y skills add LukeRenton/explore-claude-code --agent claude-code

Command definition

diff.md

/diff

Opens an interactive diff viewer showing uncommitted changes in your working directory and per-turn diffs from Claude's edits.

Usage

/diff

No arguments. The viewer opens immediately.

How It Works

1. `/diff` launches a terminal-based diff viewer 2. Use **left/right arrows** to switch between two views:

  • **Git diff**: all uncommitted changes in the working directory
  • **Turn diffs**: changes Claude made in each individual turn

3. Use **up/down arrows** to browse files within the current view 4. Press Escape or `q` to close

Two Views

| View | What It Shows | Useful For | |---|---|---| | Git diff | All uncommitted changes (staged and unstaged) | Reviewing everything before a commit | | Turn diffs | Changes from each Claude turn, individually | Understanding what Claude changed and when |

When to Use It

  • Before committing, to review all changes Claude has made
  • To understand which turn introduced a specific change
  • To verify Claude edited the right files before moving on
  • When you want a quick visual check without leaving the session

Tips

  • `/diff` shows the same information as `git diff` but in an interactive, navigable viewer
  • Turn diffs are especially helpful after long sessions with many edits, where `git diff` alone does not tell you which step changed what
  • Combine with `/rewind` if you spot a change you want to undo: use `/diff` to find the turn, then `/rewind` to roll back to it
Read more
@lukerenton
Ships withexplore-claude-code

Learn Claude Code by exploring it as it was designed - interactive IDE-style docs for commands, MCP, skills, CLAUDE.md and more.

3295 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
329
Star history of LukeRenton/explore-claude-code on GitHub, a chart by star-history.com

Other commands on explore-claude-code.

btw

btw

Command

Ask a quick side question about your current work without adding to the conversation history. The question and answer appear in a…

compact

compact

Command

Compresses your conversation to reclaim context window space. Claude summarises the conversation so far, discards the original…

More commands from other plugins.