- Home
- Conversation & context
- /rewind
/rewind
Undo: roll code and conversation back
★ Start here⇄ Broad file changes
Rolls the conversation and/or code back to an earlier checkpoint, or summarizes from a selected message.
Best use
Claude broke several files: run /rewind, pick the message before the edits, and restore both code and conversation.
Aliases
/checkpoint · /undo
Safety labels
⇄ Broad file changes: Can change or revert many files at once. Commit or back up first, and review with /diff afterwards.
Used in these situations
- Claude broke something and I want to undo it
/rewind → /diff
Related commands · Conversation & context
- /clearStart a fresh conversation (the old one stays resumable)
- /compactSummarize a long conversation to free space
- /contextSee what is filling the context window
- /planGet a plan first; edits wait for your approval
- /resumeGo back to an earlier conversation
- /autocompactSets how full the context window gets before automatic compaction, e.g.
- /branchCreates a branch of the conversation at this point and switches into it; the original is preserved and reachable via /resume.
- /btwAsks a side question about the current session without adding it to the conversation.
← See all commands