Skip to content

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

@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.

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