Checkpointing (Rewind)
Automatic tracking of file modifications with targeted undo. At any point in a Claude Code session, `Esc Esc` (double escape) or `/rewind` lets you revert to the state before the last modification, without losing conversation context. More precise than a `git reset`: rewind targets exactly what Claude modified.
Strengths
- Instant undo, double Esc undoes Claude's changes without touching your own work
- Conversation context preserved, you return to the same decision point with history intact
- Zero configuration, active by default as soon as a Claude Code session opens
Limitations
- Limited to current session, cannot go back to past sessions
- Partial rewind only, undoes modified files, not executed shell commands
Best for
- When Claude goes in the wrong direction, rewind rather than correcting an error on an error
- Exploring multiple successive approaches without polluting context with failed attempts
- Pair programming with Claude: rewind serves as a save point before each experiment