ClaudeCodeMod

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.

In Claude Code
/plugin marketplace add midudev/better-claude
/plugin install time-machine@better-claude
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.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

The opening of the Time Machine README: /timeline opens a pane of five states with each turn's files and lines, the selected and current state, and what Enter would change.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • session.endWhen a session ends
  • prompt.submitWhen you send a prompt
  • turn.startWhen Claude starts a turn
  • tool.callAround a tool call, where it can hold one
  • turn.completeWhen a turn ends
  • command.runWhen you run its slash command
  • ui.focusA Claude Code event
  • ui.closeWhen its pane closes
  • 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, 4 files. They load when you open them.

Facts

Author
DiegoMarty
Category
Review
Marketplace
better-claude
Repo
midudev/better-claude
Folder
plugins/time-machine
Version
0.1.3
License
MIT
Repo stars
194
Last change
2026-10-22
Language
TypeScript
Files
17

Other mods in Review

image-peekkaranb192Shows a pasted image while the text cursor sits on its [Image #N] marker, in a large pane on a wide window or above the prompt, on macOS in Ghostty.quiz-afterDannyMac180When Claude finishes a task that changed something, draws a quiz of two or three questions about the change above the prompt, each with a button for the answer.tool-cardsbradtraversyReplaces each tool-use row with a card: the tool's icon, an action title, its state, and the time, with the output folded behind Details until a call fails.decoratedthomas-whitaker1Teaches Claude a small tag language and draws it in the reply: colored badges, callouts, bar and braille charts, heat maps, flow and sequence diagrams, and SVG.cc-intelligent-uirazorback16Draws each answer from Claude as a typeset picture made with Typst: rendered Markdown, LaTeX math, charts, and diagrams, in kitty, Ghostty, or iTerm2.image-peekchicioDraws a tile above the prompt for each image you paste, real pixels in kitty and Ghostty and block characters in Warp, and opens one full size in Quick Look.windbg-paneglslangDraws a WinDbg-style pane from windbg-mcp tool calls as they happen: disassembly with the stop marked, registers, stack, memory, breakpoints, and commands.slint-previewtilladamOpens a live preview of a Slint UI file in a pane beside the conversation, reloads it when you save, and lists build errors under the last good UI.prompt-polishjheroorehjRewrites your prompt with the prompting guide for the session's model before it is sent, and shows the polish beside the original to apply, retry, or keep.latexzaahiralTypesets TeX math, TikZ diagrams, and LaTeX blocks in Claude's replies in the desktop app's Code tab, with MathJax or one of 10 LaTeX fonts.quick-peekmidudevTurns file paths in Claude's replies into links: hover one for a preview of the file, or its lines, by the pointer, and click to show it in Finder.review-pingarasovicShows a toast when Claude commits 30 or more lines with no review since the last commit, and adds a note to that commit asking the model to review it.
All 145 in Review