{"slug": "show-hn-do-over-undo-for-ai-agent-shell-commands", "title": "Show HN: Do-over, undo for AI agent shell commands", "summary": "Developer built Do-over, a tool that plugs into Claude Code's hooks to snapshot files before AI agent shell commands run, protecting untracked, ignored, and out-of-repo files from destructive actions like git checkout, git clean -fd, and git reset --hard. The tool addresses data loss incidents reported in Claude Code's issue tracker, including a 50GB data loss and a deleted three-year-old Unity project.", "body_md": "Hello HN,\n\nI built this after a coding agent deleted my files while tidying a project. Do-over plugs into Claude Code's hooks and snapshots what a command is about to touch right before it runs.\n\nI know what you're thinking. Why don't you just commit more often?\n\nThis tool doesn't seek to replace git. What it does is: [1] Protect the stuff git doesn't protect: your untracked/ignored files and files that exist outside your repo (which is how a guy lost 50GB of data - Claude code issue tracker) [2] Protects you when git itself is weaponized by your agent: git checkout ., git clean -fd, and git reset --hard (a three year old Unity project was deleted this way - Claude Code issue tracker) [3] Protects you in the case when you're just forgetful and don't commit\n\nIt really is a simple safeguard to potential headaches. And it's a last mile effort that secures what current measures can't. That includes sandboxes, checkpoints, git.\n\nComments URL: [https://news.ycombinator.com/item?id=49371211](https://news.ycombinator.com/item?id=49371211)\n\nPoints: 1\n\n# Comments: 1", "url": "https://wpnews.pro/news/show-hn-do-over-undo-for-ai-agent-shell-commands", "canonical_source": "https://github.com/CaydenChik/doover", "published_at": "2026-08-20 06:42:36+00:00", "updated_at": "2026-08-20 07:14:08.491166+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "developer-tools"], "entities": ["Do-over", "Claude Code"], "alternates": {"html": "https://wpnews.pro/news/show-hn-do-over-undo-for-ai-agent-shell-commands", "markdown": "https://wpnews.pro/news/show-hn-do-over-undo-for-ai-agent-shell-commands.md", "text": "https://wpnews.pro/news/show-hn-do-over-undo-for-ai-agent-shell-commands.txt", "jsonld": "https://wpnews.pro/news/show-hn-do-over-undo-for-ai-agent-shell-commands.jsonld"}}