Dicklesworthstone/destructive_command_guard
A fast Rust safety hook that blocks destructive shell, git, and filesystem commands before AI coding agents run them. 50+ security packs (databases, Kubernetes, Docker, cloud, Terraform), heredoc/inline-script scanning, CI scan mode, and explain mode; works with Claude Code, Codex, Gemini, Copilot, Cursor, and more.
A Rust hook that stops AI coding agents from nuking your repo — dcg intercepts shell and git commands from AI coding agents like Claude Code, Codex CLI, Gemini CLI, and Cursor, blocking destructive operations before they run. It integrates as a native hook across a long list of agent tools, aiming to prevent accidental deletions in automated coding workflows.
Metrics
See About for how each metric is defined.
Star growth and Trending appearances (last 30 days)
Daily trending ranks as a table (1 days)
| Date | Daily |
|---|---|
| Sep 22, 2026 | rust #17 +9 |
Created Jan 8, 2026 · First on trending Sep 22, 2026
Other notable repositories in the same category (AI agents)
- jam0824/ai_test_management_skills
- erkamyaman/unslop-anything
- flyhero/antumi
- laSenu/roblox-in-this-town
- travisvaleri/fontpool
See all AI agents repositories →
Rank within ai-agents
| # | Repository | ★ |
|---|---|---|
| 1 | morluto/rea | 489,711 |
| 2 | affaan-m/ECC | 316,652 |
| 3 | deepseek-ai/deepseek-harness | 291,021 |
| 4 | NousResearch/hermes-agent | 268,215 |
| 5 | firecrawl/firecrawl | 216,906 |
| 6 | DietrichGebert/ponytail | 204,950 |
| 7 | Significant-Gravitas/AutoGPT | 188,279 |
| 8 | Graphify-Labs/graphify | 157,154 |
| 9 | stablyai/orca | 156,739 |
| 10 | garrytan/gstack | 142,532 |
| 141 | Dicklesworthstone/destructive_command_guard | 6,397 |