Dicklesworthstone/destructive_command_guard
A fast Rust safety hook that blocks destructive shell, git, and filesystem commands before AI coding agents run them. 50+ security packs (databases, Kubernetes, Docker, cloud, Terraform), heredoc/inline-script scanning, CI scan mode, and explain mode; works with Claude Code, Codex, Gemini, Copilot, Cursor, and more.
3 best points · 0 comments · 3 Hacker News posts · 6,284 GitHub stars · View on GitHub
Hacker News discussions
- Show HN: Destructive_command_guard (Dcg) (3 points, 0 comments, by eigenvalue, 2026-01-31)
- Destructive Command Guard (2 points, 0 comments, by Dowwie, 2026-01-25)
- Show HN: Block dangerous Git and shell commands from being executed by agents (2 points, 0 comments, by adithyaharish, 2026-07-12)