Problem
There is no way to see a summary of all file changes the agent made during the current session. The only diff capability is `/rollback diff ` which shows changes since a specific checkpoint — but requires checkpoints to be enabled and a specific checkpoint number.
Users finishing a long session have no quick way to review "what did you actually change?" before committing.
Suggested fix
Add a `/diff` command that shows all file modifications since the session started. Two possible approaches:
- Git-based: If in a git repo, `git diff` against the commit that was HEAD when the session started (tracked at session init).
- Checkpoint-based: If checkpoints are enabled, diff against checkpoint 0 (session start).
Output should show a file stat summary (files changed, insertions, deletions) and optionally the full diff with syntax highlighting via Rich.
Update: Inline diff previews shipped in #4411/#4423 — file write and patch operations now show diffs in the tool activity feed. A /diff command could aggregate these existing per-edit diffs into a session-level summary rather than computing diffs from scratch.
Problem
There is no way to see a summary of all file changes the agent made during the current session. The only diff capability is `/rollback diff ` which shows changes since a specific checkpoint — but requires checkpoints to be enabled and a specific checkpoint number.
Users finishing a long session have no quick way to review "what did you actually change?" before committing.
Suggested fix
Add a `/diff` command that shows all file modifications since the session started. Two possible approaches:
Output should show a file stat summary (files changed, insertions, deletions) and optionally the full diff with syntax highlighting via Rich.
Update: Inline diff previews shipped in #4411/#4423 — file write and patch operations now show diffs in the tool activity feed. A
/diffcommand could aggregate these existing per-edit diffs into a session-level summary rather than computing diffs from scratch.