# /diff Command

> It shows each change in your files not yet committed.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** /diff, Diff panel

## Think of it like

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

## 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

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.

## Example code

```console
/diff
```

Look over the changes so far.

## Why it matters

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

## Common mistake

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

## Three principles

- **Uncommitted changes.** Claude's and yours.
- **Lines added, removed.** Per file.
- **Stays open.** In fullscreen.

## Related terms

- [Diff](https://learn.benibix.com/term/development/diff)
- [/code-review Command](https://learn.benibix.com/term/ai/code-review-command)
- [Claude Code Checkpoint](https://learn.benibix.com/term/ai/claude-code-checkpoint)

## Taught in

- [Diff and Code Review](https://learn.benibix.com/learn/ai-claude-code-commands/diff-and-code-review): Claude Code Commands, 8/17

![A panel lists the changed files, each with the number of lines added and removed, and shows the changes of the file picked.](https://learn.benibix.com/diagrams/cmd-diff.svg)

---

Source: https://learn.benibix.com/term/ai/diff-command
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
