cool-solution — dev.blog

Dicklesworthstone/destructive_command_guard

by Dicklesworthstone

Preview of Dicklesworthstone/destructive_command_guard

Stack:RustClaude CodeShell

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.

#security#claude-code#ai-agents#guardrails#developer-tools