conon.ai

conon.ai/Tips

/rewind Is Your Agent's Undo

Claude Code silently checkpoints before every request — /rewind rolls files, conversation, or both back to any of the last ~100 points, surviving app restarts. It only sees the agent's own edits though: your manual changes and shell-level moves are invisible to it. It complements version control, never replaces it.

IntermediateTOOLSClaude Code

Why it works

Claude Code silently checkpoints before every request — /rewind rolls files, conversation, or both back to any recent point, and the checkpoints survive app restarts. It's the difference between experimenting freely and experimenting anxiously. But it sees only the agent's own edits: your manual changes and anything moved by shell commands are invisible to it, which is why it complements version control instead of replacing it.

How to do it

  1. Type /rewind in the prompt field (or double-press Esc on an empty prompt).
  2. Pick the checkpoint — they map to your requests, newest first.
    claude code
    /rewind
      › 12:40  add pricing table        files · chat · both
        12:31  restyle header           files · chat · both
        12:18  build landing v1         files · chat · both
    Checkpoints map to your requests — pick the moment, pick the scope.
  3. Choose what to restore: files only, conversation only, or both.
  4. Confirm; the project folder returns to that moment.
  5. Remember the blind spots: manual edits and shell-level file operations don't rewind.
  6. For history that must survive weeks, not minutes: version control — 'commit the current state.'

Copy this

prompt
/rewind

What to watch for

  • Treating checkpoints as backup is the documented mistake: rewind is local undo for the last stretch of work; git is the permanent history. You need both.
  • If you edited files by hand since the checkpoint, a rewind can mix restored agent-state with your untouched manual changes — commit before big experiments.

Sources

Original: conon.aiDocumentation: code.claude.com

Read next

We build and operate the systems behind tips like this one — agents, automations and internal tools, shipped into production. See what the studio does →