Claude Code rewind + checkpoints: undo anything in one keystroke
Hey, it's Cindy 🌱 Claude Code saves a snapshot of your files every single time you hit enter. Here is the exact setup, the shortcuts, and the one caveat that keeps you safe.
btw the waitlist for AI System Club is now open! If you're keen on using AI to automate your content, video editing, job search, business or build AI agents, feel free to sign up (only if you want to hehe). Ps. the waitlist gets first dibs:)
Every prompt is a checkpoint. Before Claude touches anything, it snapshots your files.
Be reckless on purpose. So you can tell it to try the risky refactor on purpose, then undo instantly if it does not work.
They survive a clear. Checkpoints even survive /clear, and they persist after you close your terminal.
the move
The rewind move
Ask for the reckless version. Tell Claude to try the risky thing you would normally tiptoe around (for example: "rebuild this the messy way I'd never normally allow").
Let it run and rewrite files.
Hit rewind. If it flops, press Esc twice on an empty prompt, or type /rewind.
Pick what to roll back. A menu opens listing every checkpoint. Pick what to roll back: restore code and conversation, restore conversation, or restore code.
Snap back. Select an earlier checkpoint and your files snap back to that state.
copy this
Try the risky prompt (copy-paste)
🎲 the reckless prompt
Go ahead and try the version of this you'd normally warn me against. Rebuild [describe the thing] the aggressive / messy way, don't ask for confirmation on each step. I have checkpointing on, so if it flops I'll just /rewind. Show me the result and tell me what you changed.
a nice surprise
After /clear
Run /clear, then press EscEsc again and you will see a /resume (previous session) entry at the top. You can rewind to before the clear. Test this on Claude Code v2.1.191 or later so that entry appears.
what to watch
The one caveat (important)
Checkpointing tracks Claude's edits, NOT files deleted by a terminal command (a raw bash delete). So it is your fast undo, not a backup. Keep using Git for real version control. Source: Claude Code checkpointing.