Skip to content

[GitHub Trending] Dicklesworthstone/destructive_command_guard

8.6 relevance
Score Breakdown
technical depth
9
novelty
8
actionability
9
community
8
strategic
7
personal
10

Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.

Essential tool to block dangerous agent commands; highly actionable and trending.

AI/ML github.com
The Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from being executed by agents. - Dicklesworthstone/destructive_command_guard
Summary

dcg (Destructive Command Guard) is a sub-millisecond, SIMD-accelerated open-source hook that blocks catastrophic commands (rm -rf /, git reset --hard, DROP TABLE users) from AI coding agents like Claude Code, Codex CLI, Gemini CLI, Grok (xAI), and Copilot CLI. It features 50+ security packs for databases, Kubernetes, and cloud providers, smart context detection, heredoc/inline script scanning, and agent-safe streams. One-line install via curl (Linux/macOS/WSL) or PowerShell (Windows) with zero config.

Author

Dicklesworthstone