DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to find the edit that broke a test and restore the file with My Claude Code Mods

Use Time Machine's step timeline and shadow-git snapshots to locate and undo a breaking edit.

Short answer: Confirm git is on your PATH (inferred: git --version); then add the marketplace with claude plugin marketplace add YeonwooSung/my-claude-code-mods if you have not already; install with claude plugin install time-machine@my-claude-code-mods --scope user. All steps.

Credentials. Shadow-git snapshots store file states, so any secrets in tracked files may be captured in the recorder store.

Who it is forA developer whose test suite went from passing to failing during an agent session and who needs to know which change caused it.

The problemAfter many tool calls, it is hard to tell which edit introduced a failure or what the files looked like before it.

The outcomeThe specific step that broke the test, the file as it was at an earlier step, and a restored state you can re-test.

What you need first

  • A Claude Code CLI with Mods support (mods are enabled by default from 2.1.287)
  • git on your PATH for Time Machine
  • A terminal running macOS, Linux, or a Bash or Zsh shell for the install block
  • Node 22.19.0 or later only if you plan to run the repo's development tests

Steps

  1. Confirm git is on your PATH (inferred: git --version). (inferred, check the README)
  2. Add the marketplace with claude plugin marketplace add YeonwooSung/my-claude-code-mods if you have not already.
  3. Install with claude plugin install time-machine@my-claude-code-mods --scope user.
  4. Start a new Claude Code session, or run /reload-plugins, then run /plugin to confirm time-machine is loaded.
  5. Open the timeline, view the files as they were before the failing step, and restore that state; then re-run your test command.

Prompt for your agent

In the repo YeonwooSung/my-claude-code-mods, install time-machine at user scope, then after a failing run of <test command> identify the tool call that introduced the failure. Output the step number, the file changed, and the restored content for that file. Verify the result by re-running <test command> after the restore and reporting pass or fail.

Caveat. The README says Time Machine needs git on your PATH and that its per-test options are ignored on the early-access 2.1.280 build.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for YeonwooSung/my-claude-code-mods and "Find the edit that broke a test and restore the file"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer