Skip to content
BENIBIX Learn

/diff Command

Also known as /diff, Diff panel

It shows each change in your files not yet committed.

Think of it like

It is like a list of each page you marked, and what you changed.

Example

Before he commits, Jack opens /diff and sees Claude also changed a config file he did not expect. He asks Claude to put it back.

Why it matters

You should read what changed before it is committed. This is the quickest place to do it.

Definition

/diff shows the changes in your working tree without leaving Claude Code: the edits Claude has made so far, plus anything else not yet committed. Each changed file shows how many lines were added and removed, and its changes below. In the fullscreen view it opens as a panel beside the chat and updates as Claude works. Run /diff again to close it.

Example code

console
/diff
Look over the changes so far.
Each changed file, with its lines added and removed.

Common mistake

Thinking it shows only Claude's edits. It shows every uncommitted change, yours too.

Key takeaways

  1. 1
    Uncommitted changes. Claude's and yours.
  2. 2
    Lines added, removed. Per file.
  3. 3
    Stays open. In fullscreen.

Learn it properly