▲ 1 r/OnlyAICoding+1 crossposts

You know that "wait… what did it just delete?!" moment with your AI agent? I built an undo button for it (open source)

You prompt Claude Code for one thing.

It misreads you - or hallucinates, or follows some instruction buried in a file it read (or prompt injection) - and quietly does something destructive. Edits the wrong files. "Cleans up" a directory. rm -rf on something it decided was junk.

And the worst part isn't the deletion. It's that you have no idea what it touched. No diff, no trail. git didn't save you (you hadn't committed in an hour, and half of it was untracked anyway).

I hit this one too many times, so I made revertly - a local undo button for AI coding agents (Claude Code, Codex, Cursor).

It sits underneath the agent and:

  • snapshots your project before it runs
  • records every file it creates / edits / deletes / renames
  • lets you undo any of it - one file, a whole session, or a full rm -rf  in one command
  • alerts you the moment it reads .env / ~/.ssh or runs something like curl | sh

100% local — nothing leaves your machine. Zero dependencies, MIT.

I'm honest about what it is: a safety net, not a cage - it makes damage loud, logged, and reversible, not impossible (it runs as the same user as the agent). Full threat model's in the repo.

Early days (Phase 1, macOS + Linux). Would genuinely love feedback - roast it, break it, tell me what's missing.

Repo (free & open source): github.com/nirbenda/revertly - a ⭐ helps other people find it 🙏

u/Relative-Art8754 — 15 days ago