⏪ AI Tip: Claude Code broke something? Press Esc twice to rewind
Claude Code quietly saves a checkpoint of your code before every prompt you send. So when an edit goes wrong, you don't need to untangle it by hand.
How:
• Press Esc twice (with an empty prompt), or type /rewind (alias /undo)
• Pick the prompt you want to go back to
• Choose: restore code, conversation, or both
Example: you asked "refactor the payment module" and tests now fail. Rewind to before that prompt, choose "Restore code", and the files are back, ready for a better prompt.
Bonus: "Summarize from here" compresses a long debugging detour to free up context.
⚠️ Changes made by Bash commands (like rm) aren't tracked, so keep Git as your real safety net.
#AI
Claude Code quietly saves a checkpoint of your code before every prompt you send. So when an edit goes wrong, you don't need to untangle it by hand.
How:
• Press Esc twice (with an empty prompt), or type /rewind (alias /undo)
• Pick the prompt you want to go back to
• Choose: restore code, conversation, or both
Example: you asked "refactor the payment module" and tests now fail. Rewind to before that prompt, choose "Restore code", and the files are back, ready for a better prompt.
Bonus: "Summarize from here" compresses a long debugging detour to free up context.
⚠️ Changes made by Bash commands (like rm) aren't tracked, so keep Git as your real safety net.
#AI
