Skip to content

Light version: pages open quickly, without the 3D graphics. You are seeing the light version because the 3D graphics would be slow on this device. The content is the same.

Turn on 3D

Preparing the graphics. This can take a moment on the first visit.

Henry Lõiv

Web design & development

Quick Answer

Can Claude Code /rewind undo everything?

Artificial Intelligence 2 min read

No. /rewind can restore checkpointed files, the conversation, or both, but it does not capture every change to a project. Before relying on it, check how the files were changed and preserve any work you want to keep. A checkpoint is not a full project backup. 1

Open the correct recovery action

Run /rewind, or press Esc twice with an empty prompt. Double Esc clears a typed draft when the input is not empty. 2 Read the menu carefully: choose a code-restoring option when you want file changes reversed.

Before confirming, decide what should survive. For example, you might want to undo a component rewrite while keeping the diagnosis in the conversation. Write down the intended outcome, especially if other work happened during the same session.

Know the important capture limit

A file changed only through Bash is not checkpointed. If Claude had already tracked it through its file-editing tools, later Bash edits to that file can be restored. Some subagent and external edits are also outside checkpoint coverage. 1

Treat a deployment or database operation as a separate recovery task. Record what ran and use that system’s recovery procedure instead of assuming that restoring source files reverses its effects.

Inspect the result

Review git diff for unstaged changes and git diff --cached for staged changes. 3 Use git status --short --untracked-files=all to include untracked files in the status listing. 4

Compare the actual files with your intended result, then run the existing check relevant to the change. If a page was broken, open that page as well. Do this before asking the agent to continue; otherwise a new edit may obscure what restoration actually achieved.

Related reading

Sources

  1. Claude Code: Checkpointing
  2. Claude Code: Interactive mode
  3. Git: git-diff
  4. Git: git-status

Fact checked:

Hi!

I really love the sea, yachts, sunsets and starry skies.

Through this little 3D world, I can share a small part of myself with you.

Thank you for opening this bottle and reading my letter.

Henry

Let’s talk about your project

Tell me about your project

Tell me what you’d like to build or improve. You don’t need a finished brief — we’ll work out the scope and next steps together.

01 How can I help?
02 How many pages do you need?
03 Which extras do you need? Choose all that apply
04 When does it need to be ready?
05 Project details
06 Your contact details

Enquiry received

Thank you!

Your enquiry has been received. I usually reply by email within 2 working days.