ClaudeCodeMod

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.

In Claude Code
/plugin marketplace add YeonwooSung/my-claude-code-mods
/plugin install time-machine@my-claude-code-mods
Open the repo

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

The time-machine section on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • session.endWhen a session ends
  • turn.startWhen Claude starts a turn
  • tool.callAround a tool call, where it can hold one
  • turn.stepAt each step of a turn
  • command.runWhen you run its slash command/tm/tm-pane
  • ui.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
Repo
YeonwooSung/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

Other mods in Review

diagram-paneray-amjadPins every diagram Claude draws in a side pane, keeps a live map of the work, and lets you open boxes and change them.show-your-workiamumeransariShows Claude's finished work in the terminal: screenshots, videos of it clicking through your app, and before-and-after QA recordings.review-paner3al1tymDocks the session's latest reply in a calm reading pane beside the conversation, following the live turn, with its plan, question, and tasks one key away.prismantisNahumLitvinRedraws Claude's replies in the terminal: colored tables, code, charts, flowcharts, and one quiet line per tool call.glassrashedInt32Redraws the terminal transcript as colored commands, diff cards, a tool tree, and a band of running subagents above the prompt.cc-split-diff-viewneteye-platformDraws Edit and Write diffs, and the files a Bash command updates, in two columns, removed lines left and added lines right, in Claude Code's own diff colors.mdviewxuanji86Opens a clicked Markdown path as a rendered pane beside the conversation, pictures included, and sends an edit when you type one in a block.mermaid-modngothanhlucDraws mermaid blocks in Claude's replies as Unicode diagrams in place, and leaves the stored message as Mermaid source.accountable-reviewwyeworksShows a review run on the status line, then publishes a review agenda for a pull request as a private Claude Artifact page.repowiserepowise-devDraws margin notes under edits, a change review under the answer, and a /lens pane of what an edit reaches.hal-grammar-checkvintaDraws grammar corrections above the prompt while you type, with explanations in your language: English by default, or Chinese, Japanese, or Korean.sc-modskylesnowschwartzDraws mermaid diagrams in replies as text, jump buttons above the prompt, and a copy button under each reply.
All 145 in Review