Skip to content
Documentation
Command

/rewind

Restores your conversation and code to a previous point in the session. Claude Code takes [checkpoints](^Automatic snapshots of your git state taken before Claude makes changes. Each checkpoint records the conversation turn and the working tree state) before making changes, so

From plugin
explore-claude-code
26212 skills8 agents12 commands
Install
$ npx -y skills add LukeRenton/explore-claude-code --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/rewind

Context preview

What this command does when you run it.

Restores your conversation and code to a previous point in the session. Claude Code takes [checkpoints](^Automatic snapshots of your git state taken before Claude makes changes. Each checkpoint records the conversation turn and the working tree state) before making changes, so

Command definition

rewind.md

/rewind

Restores your conversation and code to a previous point in the session. Claude Code takes [checkpoints](^Automatic snapshots of your git state taken before Claude makes changes. Each checkpoint records the conversation turn and the working tree state) before making changes, so you can safely undo work and try a different approach.

Usage

/rewind

No arguments. An interactive picker opens showing your conversation history.

You can also trigger rewind by pressing `Esc` twice.

How It Works

1. Claude Code shows a list of conversation turns, each with a summary of what happened 2. You select the point you want to return to 3. Claude Code restores both:

  • **Conversation state**: messages after that point are removed
  • **Code state**: file changes made after that point are reverted via git

4. You continue the conversation from the restored point

What Gets Restored

| Restored | Not Restored | |---|---| | File changes (via git checkout) | External side effects (API calls, sent messages) | | Conversation history | Background task results | | Task list state | Terminal output |

Summarise Mode

Instead of rewinding, you can choose to **summarise** from a selected message. This compresses everything from that point forward into a summary, similar to `/compact` but starting from a specific turn.

When to Use It

  • Claude went down the wrong path and you want to try a different approach
  • An edit broke something and you want to undo it cleanly
  • You want to explore two different solutions from the same starting point (combine with `/fork`)
  • You accidentally approved a change you did not want

/rewind vs Git

`/rewind` is not a replacement for git. It uses git under the hood (reverting to a checkpoint commit), but it also restores conversation state. Use `/rewind` when you want to undo both the code changes and the conversation that produced them. Use `git checkout` or `git stash` when you only want to undo code changes.

Tips

  • Checkpoints are automatic. You do not need to create them manually
  • `/rewind` works best for recent changes. For older history, use git directly
  • Combine with `/diff` to inspect what each turn changed before deciding where to rewind to
  • Press `Esc` twice as a quick shortcut instead of typing `/rewind`
Read more
Ships withexplore-claude-code

Learn Claude Code by exploring it as it was designed - interactive IDE-style docs for commands, MCP, skills, CLAUDE.md and more.

Get the whole plugin, auto-invoked
Stats
262
Stars
0
Views
30
Forks
Active
Maintenance
JavaScript
Language
MIT
License
15d ago
Last commit
5mo ago
Created

Repo: LukeRenton/explore-claude-code