Skip to content

Repository files navigation

Undo

Give your files or agents an undo button

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.

Install

curl -fsSL https://useundo.co/install.sh | bash

Available for macOS and Linux.

Undo an agent's work

undo run claude
undo runs
undo run show r_421
undo ask r_421 "remove the auth migration work"
undo apply rec_812

undo 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-interactive

See everything in the local UI

undo ui          # the full timeline
undo ui r_421    # jump straight to one Run's review

Opens 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.

Recover other changes

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 panic

Everything stays under ~/.undo/. There is no account or cloud service.

Learn more

License

FSL-1.1-MIT

About

Give your files an undo button.

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages