Home / Claude Code mods / Git & CI / time-machine

time-machine

time-machine is a Claude Code mod by midudev that every turn that changes files is a git snapshot off your history: /timeline shows them and puts the working tree back as it was before any turn, Bash changes included. Undoable.

Updated 2026-11-24

What is time-machine?

time-machine is a Claude Code mod by midudev that every turn that changes files is a git snapshot off your history: /timeline shows them and puts the working tree back as it was before any turn, Bash changes included. Undoable. It is listed under Git & CI and has 298 GitHub stars.

TypeClaude code mod
Authormidudev
Repositorymidudev/better-claude
Popularity298 GitHub stars
CategoryGit & CI
SecurityReview before installing (72/100)
Rank#153 of 9,397 Claude Code mods; #8 in Git & CI
LicenseMIT
Last commit2026-11-24
Stars this week+4
Hooks10 events
Seesevery prompt, every tool call
Draws onPane

Is time-machine safe to install?

time-machine scores 72/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; watches every prompt or event. It passed 5 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Doesn't read environment variablesPass
Watches every prompt or eventReview
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.command.register
$.fs.existsreads files
$.fs.listreads files
$.process.runruns processes
$.session.cwd
$.session.id
$.state.get
$.state.set
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.keyskeeps its own state
$.store.setkeeps its own state
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install time-machine?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/midudev/better-claude
    claude plugin validate ./better-claude/plugins/time-machine
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add midudev/better-claude && claude plugin install time-machine@better-claude

Or ask Claude to set it up

Paste this into Claude Code and it installs time-machine for you:

Install the "time-machine" Claude Code mod from https://github.com/midudev/better-claude/tree/main/plugins/time-machine. Run claude plugin validate on it first and show me what it can access before you enable it.

More from midudev/better-claude

This repository has at least 9 Claude Code mods on MCPMods.

  • after: A real prompt queue for Claude Code: /after runs it after the current task, without steering. See, reorder and remove qu (Low risk)
  • context-meter: The session's context window fill, right above the prompt: gray while there is room, yellow when it is time to /compact, (Low risk)
  • image-preview: Hover a pasted [Image #N] to see the picture: above the prompt while you write, and on the prompts you sent. (Review before installing)
  • narrator: Click ⏸︎ narrator off in the footer, or /narrator, and after each turn Claude tells you out loud what it did, in your la (High risk)
  • quick-peek: The paths in Claude's replies become links: hover one to preview it, click it to show it in Finder. (Review before installing)
  • sub-meter: Your subscription usage at the bottom right of Claude Code: the 5-hour and weekly windows, taking turns, side by side or (Low risk)
  • think-hard: Start a prompt with + and that turn thinks at max effort. Other prompts keep the session's effort. (Low risk)
  • token-meter: Each turn's tokens and the session's running total, in color at the end of the hint line under the prompt. (Low risk)