Dicklesworthstone/destructive_command_guard

Stack:Rust
Claude Code
Shell
Rust hook that intercepts AI agents' shell commands and blocks destructive ones — rm -rf, git reset --hard, DROP TABLE — before they execute, with an explanation and safer alternatives.
Why it's interesting
Anyone using coding agents has risked an unwanted reset --hard at least once. dcg puts a pre-execution guardrail on Claude Code, Codex, Gemini CLI and more: sub-millisecond, 50+ optional packs, one command to install.