Claude Code

Rewind Claude Code to the Step That Broke Your Code

Time Machine is a free Claude Code mod that records every step Claude takes and saves your files after each one. What it does, how to install it, the catches, and a prompt to try it safely

2min read
1prompts to copy
4numbered steps
4sections

When Claude changes several files and your tests fail, a git diff only tells you what changed. It does not tell you which step did it. Time Machine is a Claude Code mod that records each step in order, with a snapshot of your files, so you can go back to any one.

Here's what it does, how to install it, the catches, and a prompt to start with.

What it does

  • Records every tool call (each edit and command) on a timeline, with a snapshot of your files after it.
  • Keeps the snapshots in its own hidden git store, so nothing is written to your own .git.
  • /tm why points at the edit that broke a failing test run.
  • /tm restore <n> puts your files back to step n (it shows a dry run first), and /tm branch <n> tries another path from that step.
  • /tm compare puts two runs side by side, and /tm rerun repeats a step with the same input.

Keep reading

Free, for an email.

Unlocks 3 more sections, 1 copy-paste prompt, the document version, and every other guide on the site, for free. Enter your email once to keep reading.

45,000+ follow where these guides come from.No spam. Unsubscribe in one click.

Read next