{"slug": "caniundo-can-i-undo-this-command-recovery-recipes-tested-in-ci", "title": "Caniundo – Can I undo this command? Recovery recipes tested in CI", "summary": "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\".", "body_md": "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.\n\nSome of the project's best features:\n\n- 99 commands, 53 of them tested so far\n- Says what is lost, what stays, what to do instead and how to undo it\n- Finds the command inside `sudo` ,`bash -c` ,`docker exec` ,`xargs` ,`ssh` and others\n- A skill for Claude.ai, Claude Desktop and Claude Code, with nothing to install\n- Stops Claude Code before it runs something that cannot be undone\n- Reads Bash, PowerShell and SQL\n- Everything in English and Spanish\n\nYou need [Node.js](https://nodejs.org) 20 or later.\n\n```\nnpm install -g caniundo\n```\n\nOr run it without installing anything:\n\n```\nnpx caniundo \"git reset --hard\"\ncaniundo \"docker compose down -v\"     # what would be lost\ncaniundo oops \"deleted branch\"        # how to recover\ncaniundo list git                     # what is in the database\n```\n\nAdd `--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.\n\nClaude reads the database and answers from it: before a command, or after something went wrong. It needs no program and no network.\n\n| Where | How | \n|---|---|\n| Claude.ai and Claude Desktop | Download [caniundo-skill.zip](https://willor16.github.io/caniundo/caniundo-skill.zip) and upload it in the Skills section of the settings | \n| Claude Code | Copy [skills/caniundo](https://github.com/willor16/caniundo/blob/main/skills/caniundo) to`~/.claude/skills/` , or install the plugin below, which includes it | \n\nThen ask in your own words, for example *\"I ran git stash drop by mistake, can I get it back?\"*\n\n```\n/plugin marketplace add willor16/caniundo\n/plugin install caniundo@caniundo\n```\n\nBefore a command that cannot be undone, Claude Code shows you what would be lost and waits. The plugin also brings the skill.\n\n| Mode | What happens | \n|---|---|\n| `ask` (default) | You decide, with the facts in front of you | \n| `steer` | Claude is stopped and told a safer way | \n| `note` | Nobody is stopped, but Claude knows how to go back | \n\nEveryday commands, such as `rm -rf node_modules` or `git commit`, never interrupt.\n\nEach proof runs in a temporary folder, and every step has to hold:\n\n1. Something valuable exists, and a check sees it\n2. The command runs\n3. The check fails, so something was really lost\n4. The recipe runs, exactly as you read it\n5. The check passes again\n\nNobody 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.\n\n| 🌿 Code | Git, GitHub | \n| 📁 Files | Linux, macOS, Windows, PowerShell | \n| 🗄️ Data | PostgreSQL, MySQL, SQLite, Redis, MongoDB | \n| 📦 Containers | Docker, Kubernetes, Helm | \n| ☁️ Cloud | AWS, Google Cloud, Azure, Terraform, Railway, Heroku, Fly.io, Supabase, Vercel | \n| 🚚 Packages | npm, Cargo, PyPI | \n\n- It reads the command and never runs it\n- No network, no account, no telemetry and no install scripts\n- The hook can ask or stop, but never approves a command\n- A recipe is always one plain command, from a short list of programs, with nothing hidden in it\n- A recipe that could lose something has to say so\n- The proofs receive no tokens from the environment\n- Privacy: it collects, stores and sends nothing about you or your commands\n\n- What is not in the database is \"not known\", never \"safe\"\n- It cannot see inside a script, or a variable that only has a value when it runs\n- It does not look at your folder, so it warns even when there was nothing to lose\n- Your version or your settings can behave in another way. Keep a copy of what matters\n- It is a seat belt and not a sandbox\n\nAn 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](https://github.com/willor16/caniundo/blob/main/CONTRIBUTING.md) and [SECURITY.md](https://github.com/willor16/caniundo/blob/main/SECURITY.md).\n\nTechnologies used in the project:\n\n- TypeScript\n- Node.js\n- GitHub Actions\n- YAML\n\nThis project is licensed under the [MIT License](https://github.com/willor16/caniundo/blob/main/LICENSE).", "url": "https://wpnews.pro/news/caniundo-can-i-undo-this-command-recovery-recipes-tested-in-ci", "canonical_source": "https://github.com/willor16/caniundo", "published_at": "2026-12-02 04:26:12+00:00", "updated_at": "2026-12-02 04:45:27.722540+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-safety"], "entities": ["caniundo", "Claude", "Claude Code", "Claude Desktop", "Node.js", "Anthropic"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/caniundo-can-i-undo-this-command-recovery-recipes-tested-in-ci", "markdown": "https://wpnews.pro/news/caniundo-can-i-undo-this-command-recovery-recipes-tested-in-ci.md", "text": "https://wpnews.pro/news/caniundo-can-i-undo-this-command-recovery-recipes-tested-in-ci.txt", "jsonld": "https://wpnews.pro/news/caniundo-can-i-undo-this-command-recovery-recipes-tested-in-ci.jsonld"}}