Skip to content

[UX] No /diff command to see what the agent changed this session #4865

@SHL0MS

Description

@SHL0MS

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:

  1. Git-based: If in a git repo, `git diff` against the commit that was HEAD when the session started (tracked at session init).
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions