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.

This repository also configures its own agents. See what destructive_command_guard tells them →

6.4kStars on the repository
2Mods indexed here, across every type
yesterdayLast push, which is what freshness is scored on
customA LICENSE file GitHub cannot name, so bodies are not copied

dcg

01

Dicklesworthstone/destructive_command_guard

Skill Claude CodeCodex

Destructive Command Guard - High-performance Rust hook for Claude Code that blocks dangerous commands before execution. SIMD-accelerated, modular pack system, whitelist-first architecture. Essential safety layer for agent workflows.

not rated 6.4k +12 changed 9d ago D ✓ AI review 42 tokens