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:
- Conversation only - undo the last exchange, keep code changes
- Code only - revert file changes, keep conversation context
- Both - roll back conversation and code together
- 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 |
|---|---|---|
| Scope | Selective rollback | Full reset |
| Code changes | Can revert | Untouched |
| Context | Partially preserved | Wiped |
| Use when | Wrong direction | New 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.