docs/cli/rewind.md
The /rewind command lets you go back to a previous state in your conversation
and, optionally, revert any file changes made by the AI during those
interactions. This is a powerful tool for undoing mistakes, exploring different
approaches, or simply cleaning up your session history.
To use the rewind feature, simply type /rewind into the input prompt and press
Enter.
Alternatively, you can use the keyboard shortcut: Press Esc twice.
When you trigger a rewind, an interactive list of your previous interactions appears.
If no code changes were made since the selected point, the options related to reverting code changes will be hidden.
!).