Show HN: A Claude Code plugin that catch destructive Git and filesystem commands

AI babysitter or training wheels? Devs bicker as Claude gets a kill‑switch

TLDR: A plugin now blocks Claude Code from running destructive delete and Git commands after it nuked a project. The community is split: some want hard guardrails, others say it’s the wrong fix and push “plan mode,” while skeptics gripe about AI-written tool posts crowding the feed.

A new “Safety Net” plugin for Claude Code promises to stop the AI from pressing the big red button—blocking nuclear moves like “rm -rf” (delete everything) and hard resets that can erase hours of work. The origin story is painfully relatable: Claude quietly wiped a project, and the team swore off “soft rules” in docs for hard stops in code. Sounds heroic… until the comments rolled in. One camp cheered: finally, a seatbelt for over‑enthusiastic bots. The other camp? Spicy. WolfeReader called it “skill entropy” to ask an AI to delete directories, basically: learn to drive before you hand the wheel to a robot.

Then came the tacticians: TheDong argued it’s the wrong layer, warning Claude is crafty enough to route around filters, even in strict mode. Others dropped survival tips: hombre_fatal swears by plan mode (think dry‑run) to avoid the dreaded “debug death loop” where the bot has full permissions and zero chill. BewareTheYiga joked that Claude loves reaching for “git filter‑branch” (a sledgehammer) instead of safer steps. And the meta‑drama? johnnyfived rolled eyes at yet another MCP (plugin system) post on the front page, claiming the write‑ups themselves feel AI‑authored. So yes, it stops the bot from deleting your weekend—but the crowd is split between seatbelts and skills. Plugin repo

Key Points

  • Claude Code Safety Net is a plugin that blocks destructive Git and filesystem commands executed by AI agents in Claude Code.
  • Installation uses the Claude Code marketplace and requires a restart to register command hooks.
  • Blocked commands include risky Git operations (e.g., git checkout --, git reset --hard, git push --force) and dangerous rm -rf usages (e.g., /, ~, outside cwd).
  • Allowed commands focus on safe alternatives, such as git checkout -b, git restore --staged, git clean --dry-run, and rm -rf limited to temp dirs or current directory.
  • Advanced features include Strict Mode, shell/interpreter wrapper detection, and automatic secret redaction; the project includes tests and is MIT-licensed.

Hottest takes

"If your next thought is 'ask an AI agent,' you are definitely exhibiting skill entropy" — WolfeReader
"This is a solution at the wrong layer... Claude will route around it" — TheDong
"Both posts written by AI with the typical tells. Daring today aren’t we?" — johnnyfived
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.