Hacker GitHub

← All repos

Dicklesworthstone/destructive_command_guard

View on GitHub ↗ ★ 6,318 Rust

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.

6 mentions on Hacker News by 5 people: 3 stories, 3 comments · first 2026-01-25 · latest 2026-07-12

Mentions per year 6 mentions · busiest year 2026 (6)
20082026
  1. ▲ 2
    Show HN: Block dangerous Git and shell commands from being executed by agents
    story by adithyaharish · 2026-07-12 · 0 comments
  2. Someone recommended this in the replies: https://github.com/Dicklesworthstone/destructive_command_gua... Any other must-have tools like this?
  3. I’ve come across dcg - destructive command guard - that claims to have a fast rust based runtime, with prehooks to audit any tool or command executed by an agent and to block them if they fall in some dangerous patterns -…
  4. DCG or destructive command guard seems to work like the latter to prevent as many unsafe commands as possible - https://github.com/Dicklesworthstone/destructive_command_gua...
  5. ▲ 3
    Show HN: Destructive_command_guard (Dcg)
    story by eigenvalue · 2026-01-31 · 0 comments
  6. ▲ 2
    Destructive Command Guard
    story by Dowwie · 2026-01-25 · 0 comments