Command reference Β· Cursor CLI
/rewind
Jumps back to an earlier message via an interactive timeline and restores files/conversation.
/rewind opens an interactive timeline to reset files and conversation state to an earlier turn, with a per-turn diff and the option to restore only the conversation (without files). On by default. Aliases per the changelog: /undo, /restore (must first be enabled in /config). Rewinding to an earlier turn also restores that turn's image attachments.
π THE SAME TASK (βUNDO CHANGES (UNDO/REWIND)β) ON OTHER PLATFORMS
β WHEN TO USE IT?
A failed approach needs to be fully undone
/rewind β jump back to the turn before the failed refactor
Reset only the conversation state, but keep the files
/rewind β choose the 'conversation-only restore' option
β WHEN NOT TO?
Only a single typo needs correcting
Jumping back through the whole timeline is overkill for a small correction.
Better: Just give a new correction instruction directly in the chat
Two solution paths should be kept in parallel
/rewind overwrites the later state instead of keeping it alongside.
Better: Use /fork beforehand to keep a copy
SOURCES
- Cursor Docs β Slash Commands β cursor.com
- Cursor Docs β Changelog β cursor.com