Who it is forA developer whose coding agent made a wrong or unwanted set of edits in a repository and needs the files back as they were.
The problemAn agent turn changed several files in a way you did not want, and reverting by hand is slow and error prone.
The outcomeYour files return to the state from before the turn, with a list of the files that will change shown first and the current state saved so the undo can be undone.
What you need first
- An Apple silicon Mac running macOS 13 or newer
- Terminal access to run the install command
- At least one supported coding agent installed, such as Claude Code or Codex
Steps
- Let the agent finish its turn in a git repository or any folder.
- Open the tab's ⋮ menu and choose Undo last turn, or use Restore to before this on one of your prompts in the agent timeline.
- Read the list of files the undo will change.
- Confirm the restore.
- Open the review inbox with ⌃⌘I to check that it matches the restored files.
Prompt for your agent
Using the Tellurion repo at https://github.com/steventsvik/Tellurion, run an agent turn in <project-folder> that makes a change, then use Undo last turn from the tab's ⋮ menu. Report the list of files the undo listed. Verify that the restored files match their state before the turn.
Caveat. Snapshots are git objects, and the README says staged changes stay as they are, so check the file list before you confirm.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for steventsvik/Tellurion and "Undo an agent turn that broke your files"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer