See every change Claude made in a single diff — no git required, no digging through local history.
When Claude Code edits your files across a session, it can be hard to get a clear picture of everything that changed. Local history is scattered, and you may not be using git (or don't want to clutter it with work-in-progress commits). This tool gives you a complete before-and-after view of all files Claude touched in any session, opened directly in PyCharm's diff viewer.
- A Hook (
hook_snapshot.py) runs automatically before every Write/Edit operation Claude performs. It silently saves a copy of each file's original state to~/.claude/session-snapshots/. - A GUI (
review_gui.py) lists all your recent sessions, allowing you to select one and see what changed there.
This will set up the hook and add the skill to Claude.
Linux / macOS:
./setup.shWindows:
setup.bat- Safe to re-run if not sure...
- Restart Claude Code after running it.
From Claude Code's terminal, run:
/history
This opens the session diff reviewer GUI. From there:
- Filter sessions by keyword (searches summaries, prompts, and project names)
- Sort by clicking any column header
- Double-click a session (highlighted in green if it has snapshots) to launch PyCharm's diff view
Or run:
/last
To immediately open the last session for this project.
- Python 3
- PyCharm (must be available on PATH as
pycharmorpycharm-professional) - Claude Code
Windows, Linux, Mac and Cheese (Mac not tested... Should work, but I don't have a Mac... But you know what they say! Users are the best testers...)
- Only the first version of each file is saved per session (the true "before" state)
- Snapshots are stored under
~/.claude/session-snapshots/{session_id}/files/ - Old snapshots are automatically cleaned up after 7 days
- The hook is designed to never interfere with Claude — if anything goes wrong, it fails silently
Use at your own discretion! It is simply a placeholder until Anthropic come to their senses and add "/history" into claude code...