cd /news/ai-agents/caniundo-can-i-undo-this-command-rec… · home › topics › ai-agents › article
[ARTICLE · art-179955] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Caniundo – Can I undo this command? Recovery recipes tested in CI

An open-source project called caniundo launched a database of 99 destructive commands, 53 of which are marked "tested" because recovery recipes were run in CI and verified to restore what was lost, according to the project. The tool, installable via `npm install -g caniundo` on Node.js 20 or later, reports what a command would destroy, what to do instead and how to undo it, and ships as a skill for Claude.ai, Claude Desktop and Claude Code plus a plugin that can stop Claude Code before it runs an irreversible command. The project states it reads commands without executing them and collects no telemetry, and it warns that anything absent from the database is "not known", never "safe".

key takeaway

caniundo's Claude Code plugin offers three hook modes — `ask` (default, shows what would be lost and waits), `steer` (stops Claude and suggests a safer path) and `note` (no interruption) — while everyday commands like `rm -rf node_modules` and `git commit` never interrupt.

read4 min views14 publishedDec 2, 2026
Caniundo – Can I undo this command? Recovery recipes tested in CI
Image: Michielbdejong (auto-discovered)

One command can delete a database, a branch or a week of work, and most tools only tell you that it is dangerous. caniundo tells you what would be lost, what to do instead and how to get it back. It is an open database that anyone can extend, and an entry is only called tested when its recipes were really run and everything came back. It works as a skill for Claude, inside Claude Code, in your terminal and on the web.

Some of the project's best features:

  • 99 commands, 53 of them tested so far
  • Says what is lost, what stays, what to do instead and how to undo it
  • Finds the command inside sudo ,bash -c ,docker exec ,xargs ,ssh and others
  • A skill for Claude.ai, Claude Desktop and Claude Code, with nothing to install
  • Stops Claude Code before it runs something that cannot be undone
  • Reads Bash, PowerShell and SQL
  • Everything in English and Spanish

You need Node.js 20 or later.

npm install -g caniundo

Or run it without installing anything:

npx caniundo "git reset --hard"
caniundo "docker compose down -v"     # what would be lost
caniundo oops "deleted branch"        # how to recover
caniundo list git                     # what is in the database

Add --json for other programs. The exit code is 0 when everything comes back, 1 when something does not, 2 for wrong use and 3 when nobody knows.

Claude reads the database and answers from it: before a command, or after something went wrong. It needs no program and no network.

Where How
Claude.ai and Claude Desktop Download caniundo-skill.zip and upload it in the Skills section of the settings
Claude Code Copy skills/caniundo to~/.claude/skills/ , or install the plugin below, which includes it

Then ask in your own words, for example "I ran git stash drop by mistake, can I get it back?"

/plugin marketplace add willor16/caniundo
/plugin install caniundo@caniundo

Before a command that cannot be undone, Claude Code shows you what would be lost and waits. The plugin also brings the skill.

Mode What happens
ask (default) You decide, with the facts in front of you
steer Claude is stopped and told a safer way
note Nobody is stopped, but Claude knows how to go back

Everyday commands, such as rm -rf node_modules or git commit, never interrupt.

Each proof runs in a temporary folder, and every step has to hold:

  1. Something valuable exists, and a check sees it
  2. The command runs
  3. The check fails, so something was really lost
  4. The recipe runs, exactly as you read it
  5. The check passes again

Nobody writes "tested" by hand. If a recipe changes, its evidence is no longer valid and the entry goes back to "documented" until the proof runs again.

| 🌿 Code | Git, GitHub | | 📁 Files | Linux, macOS, Windows, PowerShell | | 🗄️ Data | PostgreSQL, MySQL, SQLite, Redis, MongoDB | | 📦 Containers | Docker, Kubernetes, Helm | | ☁️ Cloud | AWS, Google Cloud, Azure, Terraform, Railway, Heroku, Fly.io, Supabase, Vercel | | 🚚 Packages | npm, Cargo, PyPI |

  • It reads the command and never runs it

  • No network, no account, no telemetry and no install scripts

  • The hook can ask or stop, but never approves a command

  • A recipe is always one plain command, from a short list of programs, with nothing hidden in it

  • A recipe that could lose something has to say so

  • The proofs receive no tokens from the environment

  • Privacy: it collects, stores and sends nothing about you or your commands

  • What is not in the database is "not known", never "safe"

  • It cannot see inside a script, or a variable that only has a value when it runs

  • It does not look at your folder, so it warns even when there was nothing to lose

  • Your version or your settings can behave in another way. Keep a copy of what matters

  • It is a seat belt and not a sandbox

An entry is a single YAML file, in English and Spanish. The skill, the plugin and the website are generated from those files. See CONTRIBUTING.md and SECURITY.md.

Technologies used in the project:

  • TypeScript
  • Node.js
  • GitHub Actions
  • YAML

This project is licensed under the MIT License.

── more in #ai-agents 4 stories · sorted by recency
── more on @caniundo 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/caniundo-can-i-undo-…] indexed:0 read:4min 2026-12-02 · —