Claude Tips mascot
Claude Tips & Tricks
Claude Code beginner

Use /rewind to Undo Claude's Mistakes

Roll back conversation, code changes, or both when Claude goes off track. Faster than trying to correct in-place.

When Claude goes down the wrong path, don’t try to fix it in place. Rewind and start that part fresh.

How to Rewind

Press Esc twice (or type /rewind) to open the rewind interface. You’ll get options:

  1. Conversation only - undo the last exchange, keep code changes
  2. Code only - revert file changes, keep conversation context
  3. Both - roll back conversation and code together
  4. Summarize from here - compress everything up to this point to free context

When to Use

  • Claude implemented the wrong approach and you want to redirect
  • An edit broke something and you want to restore the previous state
  • You want to try a different prompt without the failed attempt polluting context
  • Context is getting bloated with a long back-and-forth correction

vs. /clear

Action/rewind/clear
ScopeSelective rollbackFull reset
Code changesCan revertUntouched
ContextPartially preservedWiped
Use whenWrong directionNew task entirely

Tip

If you find yourself rewinding more than twice on the same task, switch to Plan mode (Shift+Tab twice) first. Get alignment on the approach before Claude writes any code.

Paste into Claude Code
Claude went off track with its last few changes. Use /rewind to roll back and try a different approach.