All shelves / Mods / Review
time-machine
By DiegoMarty
time-machine is a Claude Code review mod by DiegoMarty.
Snapshots the working tree with git at each turn that changes files, Bash included, and /timeline opens a pane to move the files to any state and back.
Draws
Install
The marketplace name is better-claude.
/plugin marketplace add midudev/better-claude /plugin install time-machine@better-claude
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.3
- License
- MIT
- Repo stars
- 194
- Last change
- 2026-10-22
What it can reach
- Draws in the session
- Reads this turn's file edits
- Sees tool calls
- Runs a command when you press
- Calls another program on this machine
It needs a git repository. Elsewhere /timeline says so, and nothing is snapshotted. /timeline opens a pane with one row per state: the turn's prompt, its files, and its lines. Choosing a row shows which files would change, Enter goes there, and u and r undo and redo. If you go back and let Claude take another way, the old way stays, dimmed, one Enter away. Files you changed by hand are saved as a state before any jump, so a jump needs no confirmation. /timeline <n>, /timeline undo, and /timeline redo work from the prompt. With your next prompt, Claude reads which files differ from how it left them. Unlike Claude Code's own checkpoints, it also brings back what Bash changed, and the snapshots outlive the session. Snapshots are commits no branch points at, under refs/time-machine/<session>/<n>. git log does not show them, but git log --all and graph views do, with the first 60 characters of the turn's prompt as the message, and git push --mirror would publish them. A jump moves the files, never HEAD, the branches, or the staging area. Ignored files are neither saved nor put back. A snapshot stores every file that is not ignored, so add a file of secrets such as .env.local to .gitignore before the session starts. Snapshots are kept for 7 days by default. A Bash command that only looks, such as ls, cat, or git status, takes no snapshot. The author measured 283 ms for a session's first snapshot on a repository of 12,800 files, and about 150 ms at each end of a turn that changes files.
The install name is time-machine. This page adds the author's name. The plugin's README and manifest name DiegoMarty, and it ships in midudev's better-claude marketplace. The marketplace also holds after, use-haiku, think-hard, token-meter, sub-meter, context-meter, image-preview, commit, and narrator. This one installs on its own. The timeline of file states is why this page files it under review. time-machine, by YeonwooSung, draws a branching timeline of Claude's tool calls with a git snapshot after each change. safe-delete moves the files Claude deletes to the Bin instead. This one snapshots the whole working tree once per turn, keeps your own changes before a jump, and tells Claude once what moved.
Demo

What it hooks into
session.startWhen a session startssession.endWhen a session endsprompt.submitWhen you send a promptturn.startWhen Claude starts a turntool.callAround a tool call, where it can hold oneturn.completeWhen a turn endscommand.runWhen you run its slash commandui.focusA Claude Code eventui.closeWhen its pane closesui.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, 4 files. They load when you open them.
Facts
- Author
- DiegoMarty
- Category
- Review
- Marketplace
- better-claude
- Folder
- plugins/time-machine
- Version
- 0.1.3
- License
- MIT
- Repo stars
- 194
- Last change
- 2026-10-22
- Language
- TypeScript
- Files
- 17