undo-core
Ctrl-Z for AI agents. The reversible side-effect engine behind undo, plus the undo command-line tool.
When you let an AI agent (Cursor, Claude, Copilot, Aider, or your own) loose on your machine, undo records every change it makes and reverses all of it with one command — files, directories, permissions, and symlinks restored exactly, crash-safely, under a lock, with redo.
Install the CLI
Use it
Use it as a library
use Undo;
let u = init?;
u.checkpoint?;
u.track?; // capture before the agent acts
// ... agent runs ...
u.rollback?; // exact restore
Filesystem effects are fully reversible today; the same Effect journal is built to carry network, email, and database effects without changing the rollback path.
See the main project for the MCP server, the auto-capture hooks, and the full story.
License
MIT