Undo records changes across your project, so you can see what happened and restore earlier versions when something goes wrong. It works with coding agents, scripts, tools, and your own edits.
curl -fsSL https://useundo.co/install.sh | bashAvailable for macOS and Linux.
undo run claude
undo runs
undo run show r_421
undo ask r_421 "remove the auth migration work"
undo apply rec_812undo run launches the agent and records its work. undo ask creates a preview
and changes nothing. undo apply applies the exact preview you reviewed.
Undo also works with codex, opencode, or any command:
undo run exec --agent "My Agent" -- my-agent --non-interactiveundo ui # the full timeline
undo ui r_421 # jump straight to one Run's reviewOpens a local web interface: your history as a timeline of agent Runs and manual edits, per-file diffs, checkbox-selective undo ("keep these, undo the rest"), and one-click restores, all through the same preview-then-apply recovery plans as the CLI.
Undo can also restore recorded files by time, recover deleted files, and help after a large unexpected change:
undo timeline --since 10m
undo what-changed 10m
undo preview src/server.rs 10m
undo restore src/server.rs 10m
undo restore-deleted src/old-api.rs
undo panicEverything stays under ~/.undo/. There is no account or cloud service.