Features · Built in · since version 2.0.0
Checkpointing
Undo Claude's file edits or roll the conversation back to an earlier prompt.
What it is
Claude Code records the state of the files it edits before each prompt you send. The rewind menu lists your prompts; pick one to restore the code, the conversation, or both to that point. The same menu can also shrink part of the conversation into a summary to free up context.
Why it matters
- Try things safelyExplore a different approach knowing you can return to where you started.
- Quick recoveryRevert edits that introduced a bug without leaving the session.
- More room in contextSummarize a long stretch of the conversation while keeping the rest intact.
How it works
- Work as usual: every prompt that starts a turn creates a checkpoint automatically.
- Run /rewind, or press Esc twice with an empty prompt, to open the rewind menu.
- Select the prompt you want to go back to.
- Choose what to restore: code and conversation, conversation only, or code only. Or choose one of the summarize options.
- Keep using Git for anything permanent: changes made only by shell commands are not tracked, and checkpoints are for session-level recovery.
Hands-on example coming
This feature has no reviewed example yet. The official documentation below has the details.
Update history
Version 2.0.0 · Sep 29, 2025
Introduced The /rewind command arrived, undoing code changes from a conversation.