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.
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
5 releases in the last 90 days, the latest 3 days ago, with 3 contributors on GitHub.
The biggest single-day gain in the last year, +987 stars on Jul 13, coincided with release v0.6.6.
Use Cases & Benefits
- Blocks destructive git and shell commands from executing to protect code and data from accidental deletion by AI coding agents and CLI tools.
- Provides zero-configuration, high-performance, and context-aware protection with modular security packs and sub-millisecond latency for seamless integration.
- Use for safeguarding AI coding agent workflows like Claude Code, Codex CLI, and GitHub Copilot CLI from catastrophic commands that could destroy uncommitted work.
- Use for enforcing safety in CI/CD pipelines by scanning and blocking dangerous commands in pre-commit hooks and automated code reviews.
- Use for protecting cloud, container, database, and infrastructure management commands by enabling specific modular packs tailored to those environments.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
Other
GitHub could not identify this license; read the LICENSE file before depending on it.
Community files
- README: present
Watch-outs
- License not identified by GitHub; read the LICENSE file before depending on it.
General guidance from repository metadata, not legal advice. How we score
From the README
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), and related tools.
Supported: Claude Code, Codex CLI 0.125.0+, Gemini CLI, GitHub Copilot CLI, VS Code Copilot Chat, Cursor IDE, Hermes Agent, Grok (xAI) (native
~/.grok/hooks/plus Claude compatibility layer), Antigravity CLI (agy) (native~/.gemini/config/hooks.jsonviadcg install --agy), OpenCode (via community plugin), Pi (via extension recipe), Aider (limited—git hooks only), Continue (detection only)
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
+574 stars over 90 days across 11 snapshot days; best day +11 on Aug 11.
Forks
265+44
Open issues
18+0
Compared with peers in AI Agents
Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| vercel-labs/agent-desktop | 17.0K | +13.3K | 33 | today |
| thedotmack/claude-mem | 113.6K | +8.8K | 35 | today |
| stablyai/orca | 116.8K | +6.6K | 40 | today |
| milind-soni/OpenMausBot | 13.5K | +6.0K | 45 | today |
| HKUDS/DeepTutor | 55.5K | +5.5K | 65 | 5 days ago |
| Dicklesworthstone/destructive_command_guard | 6.3K | — | 55 | 3 days ago |
| Category median | 55.5K | +6.6K | 40 | — |
Also by Dicklesworthstone
Other repositories from this maintainer that GStars tracks
Discover Repositories
Search across tracked repositories by name or description