All shelves / Mods / Review
time-machine
By YeonwooSung
time-machine is a Claude Code review mod by YeonwooSung.
Draws a branching timeline of Claude's tool calls with a git snapshot after each change, to diff steps, trace a test failure, restore files, or re-run a step.
Draws
Install
The marketplace name is my-claude-code-mods.
/plugin marketplace add YeonwooSung/my-claude-code-mods /plugin install time-machine@my-claude-code-mods
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.1.7
- License
- Apache-2.0
- Repo stars
- 1089
- Last change
- 2026-10-23
What it can reach
- Draws in the session
- Sees tool calls
- Reads this turn's file edits
- Calls another program on this machine
Claude Code 2.1.287 or later and git. Everything goes through /tm: /tm shows the timeline of the last 30 steps, /tm show <n> one step, /tm diff <a> [b] the patch between two snapshots, and /tm why [n] the files most likely behind a test failure, with what fixed it. /tm restore <n> and /tm branch <n> are dry runs until you add --yes, and save the current state first, so a restore can be undone. /tm compare compares two branches or sessions, /tm rerun <n> runs a step's tool again with the same input, /tm sessions lists recorded sessions, and /tm-pane opens a live timeline. A snapshot is taken after each Edit, Write, Bash, or MCP tool that changes something, into a separate shadow git repository under ~/.claude/time-machine, so nothing is written to your .git; ignored files such as .env and node_modules are not saved or restored. Session records are deleted after 14 days by default. The author says restores, branches, and reruns run only when you type them, and the conversation itself is not rewound, only the files and the timeline. The ranking from /tm why is a clue, not proof. In VS Code chat only the command text shows.
The marketplace, my-claude-code-mods, holds seventeen mods by YeonwooSung, loop-detective and pin-memo among them. This one installs on its own. Going back over Claude's edits is why this page files it under review. time-machine-diegomarty snapshots the working tree with git at each turn that changes files, and /timeline opens a pane to move the files to any state and back. replay-theater, from Anthropic's playground, steps through the files Claude edited last turn, one diff at a time. This one snapshots after every tool call, ties test failures to the edits before them, and can re-run a step. The author says it does not replace Claude Code's own /rewind.
Demo

What it hooks into
session.startWhen a session startssession.endWhen a session endsturn.startWhen Claude starts a turntool.callAround a tool call, where it can hold oneturn.stepAt each step of a turncommand.runWhen you run its slash command/tm/tm-paneui.renderDraws into the sessionPane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Files
The author's README and source, 5 files. They load when you open them.
Facts
- Author
- YeonwooSung
- Category
- Review
- Marketplace
- my-claude-code-mods
- Folder
- time-machine
- Version
- 0.1.7
- License
- Apache-2.0
- Repo stars
- 1089
- Last change
- 2026-10-23
- Language
- TypeScript
- Files
- 28