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". 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 https://nodejs.org 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 https://willor16.github.io/caniundo/caniundo-skill.zip and upload it in the Skills section of the settings | | 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 | 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 https://github.com/willor16/caniundo/blob/main/CONTRIBUTING.md and SECURITY.md https://github.com/willor16/caniundo/blob/main/SECURITY.md . Technologies used in the project: - TypeScript - Node.js - GitHub Actions - YAML This project is licensed under the MIT License https://github.com/willor16/caniundo/blob/main/LICENSE .