{"repo":"Dicklesworthstone/destructive_command_guard","free":true,"listed":false,"github":"https://github.com/Dicklesworthstone/destructive_command_guard","clone":"git clone https://github.com/Dicklesworthstone/destructive_command_guard.git","description":"The Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from being executed by agents.","language":"Rust","stars":5778,"topics":["ai-agents","cli","developer-tools","rust","safety","git"],"license":null,"category":"cli-tools","readme_excerpt":"dcg (Destructive Command Guard) A high-performance hook for AI coding agents that blocks destructive commands before they execute, protecting your work from accidental deletion across Claude Code, Codex CLI, Gemini CLI, Copilot CLI, VS Code Copilot Chat, Cursor, Hermes Agent, Grok (xAI), Posit Assistant, and related tools. Supported: Claude Code, Codex CLI 0.125.0+, Gemini CLI, GitHub Copilot CLI, VS Code Copilot Chat, Cursor IDE, Hermes Agent, Posit Assistant (Positron/RStudio extension, standalone server, and pa terminal client), Grok (xAI) (native /.grok/hooks/ plus Claude compatibility layer), Antigravity CLI ( agy ) (native /.gemini/config/hooks.json via dcg install --agy ), OpenCode (via community plugin), Pi (via extension recipe), Aider (limited—git hooks only), Continue (detection only) Quick Install Works on Linux, macOS, and Windows via WSL. Auto-detects your platform, downloads the right binary, and configures supported agent hooks including Claude Code, Codex CLI, Gemini CLI, GitHub Copilot CLI, VS Code Copilot Chat (through VS Code's Claude-hook compatibility), Cursor IDE, Hermes Agent, Posit Assistant, and Grok (xAI) (via dcg install --grok for a native /.grok/hooks/dcg.json , or via the Claude compatibility layer automatically picked up by Grok). For native Windows, use the PowerShell installer below. Windows (native, PowerShell) Installs native dcg.exe , verifies the mandatory SHA256 checksum, verifies the release's long-lived minisign signature when minisign","default_branch":null,"files":null,"tree":[],"storefront":"/r/Dicklesworthstone","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Dicklesworthstone/destructive_command_guard/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}