Skip to content
← Back to release · 2.1.260
New features / v2.1.260

Live diff panel in fullscreen

CHANGELOG · original

Added a diff panel that opens beside the conversation in fullscreen mode and shows your uncommitted changes as Claude edits; toggle it with /diff
Open official changelog ↗

Documentation

Documentation excerpt

Diff panel

The diff panel lists the changed files with their added and removed line counts, and shows each file's diff under the list. Claude Code refreshes it each time Claude edits a file or runs a shell command. To close the panel, run /diff again or click the ✕ in its header.

To use the panel you need:

  • Fullscreen rendering
  • A git repository
  • A terminal at least 110 columns wide
  • Claude Code v2.1.287 or later

The panel also opens on its own once Claude starts editing files, if your terminal is at least 144 columns wide. After you've opened it yourself with /diff, later sessions open it as soon as Claude edits a file in any terminal wide enough to fit it. Close the panel and it stays closed, in this session and later ones, until you run /diff again.

While the panel is open, you can:

  • Jump to a file: click its row in the list. Scroll the panel with the mouse wheel. When the file list itself is too long to fit, scroll it with Alt+Up and Alt+Down, or Ctrl+Up and Ctrl+Down.
  • Ask Claude about a file's changes: click ask, at the right of the file's name above its diff. Claude Code attaches that file's diff to your next prompt, and the button reads asked ✓ until you send that prompt. Asking on a second file replaces the first.
  • Show one turn's edits: click the source picker in the panel's header, then choose a turn with Up and Down and press Enter. Turns are labeled T1, T2, and so on. The picker appears once Claude has edited files, and Current returns you to the working tree.
  • Show the files the panel leaves out: the list skips test files and generated files, and collapses changes from before this session into one line at the bottom. Click either count line to expand it.
  • Change what the panel compares against: press Ctrl+X B to cycle from this session's changes, to your uncommitted changes as one list, to everything since your branch split from the default branch. Claude Code remembers the choice for each repository.

To rebind the keys that scroll the file list or change the comparison, see Diff panel actions.

During an unfinished merge, rebase, cherry-pick, or revert, the panel keeps showing the changes it last read from git, so it doesn't fill with the operation's incoming changes. It updates at its first refresh after the operation ends, for example when Claude next edits a file.

Documentation snapshot · 2026-11-20

Change details