promptgarten 🌱

Command reference Β· Claude Code

/rewind

Resets the conversation and/or the code to an earlier point, or summarizes from a selected message onward.

/rewind opens a menu with every prompt you've sent in the session. You choose a point and then an action: restore code and conversation, restore only the conversation, restore only the code, summarize from here, or summarize up to this point. The two code options only appear if there are actually tracked file changes at that point. Instead of the command, you can also press Esc twice on an empty input line to open the same menu. Since version 2.1.191, you can even rewind past a cleared conversation: after /clear, an additional entry appears in the menu to return to the previous session. Summarizing doesn't change any files β€” it only compresses part of the conversation history into a summary; the original messages remain in the transcript. Aliases: /checkpoint, /undo.

🎬 AS A SHORT VIDEO

Resets the conversation and/or the code to an earlier point, or summarizes from a selected message onward.

πŸ”„ THE SAME TASK (β€œUNDO CHANGES (UNDO/REWIND)”) ON OTHER PLATFORMS

Compare all 28 tasks β†’

βœ… WHEN TO USE IT?

Undo a failed fix

Call /rewind, choose the point before the failed attempt, and use 'Restore code and conversation' to reset both code and conversation together.

Compress only part of the conversation

Open /rewind and choose 'Summarize from here' on an early message to summarize from there and free up context without changing the code.

β›” WHEN NOT TO?

Just re-reading an earlier text

/rewind resets the conversation and possibly the code state β€” for just re-reading, that's unnecessarily risky for the current code state.

Better: Scroll up in the transcript.

Undoing bash commands run by Claude

Checkpointing only tracks file changes made by Claude's own editing tools, not changes from bash commands like rm, mv, or cp β€” these can't be undone via /rewind.

Better: Use git to undo such changes.

SOURCES

MORE COMMANDS Β· Claude Code

/run/run-skill-generator/sandbox/schedule/scroll-speed/security-review/setup-bedrock/setup-vertex/simplify/skills/stats/status

All commands Β· Claude Code β†’

Share:𝕏inπŸ’¬