Skip to content

[GitHub Trending] Dicklesworthstone/destructive_command_guard

7.1 relevance
Score Breakdown
technical depth
6
novelty
7
actionability
8
community
7
strategic
7
personal
9

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

Tool to block dangerous commands from AI agents, highly relevant and actionable.

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 an open-source, high-performance hook that intercepts and blocks destructive commands from AI coding agents like Claude Code, Codex CLI, Gemini CLI, and Copilot CLI before they execute. It uses SIMD-accelerated filtering for sub-millisecond latency, supports 50+ security packs for databases, Kubernetes, Docker, and cloud CLIs, and includes smart context detection to avoid blocking harmless commands like grep. The tool auto-detects the platform, installs as a native binary, and configures hooks across multiple agents with zero-config protection out of the box.

Author

Dicklesworthstone