Dicklesworthstone

    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.

    ai-agents
    cli
    developer-tools
    git
    rust
    safety
    Rust
    NOASSERTION
    6.3K stars
    265 forks
    6.3K GitHub watchers
    Updated Nov 5, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    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.json via dcg install --agy), OpenCode (via community plugin), Pi (via extension recipe), Aider (limited—git hooks only), Continue (detection only)

    Excerpt from the Dicklesworthstone/destructive_command_guard README on GitHub (NOASSERTION license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Aug 11: +11Aug 12: +3Sep 22: +4

    +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

    Dicklesworthstone/destructive_command_guard compared with AI Agents repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    vercel-labs/agent-desktop17.0K+13.3K33today
    thedotmack/claude-mem113.6K+8.8K35today
    stablyai/orca116.8K+6.6K40today
    milind-soni/OpenMausBot13.5K+6.0K45today
    HKUDS/DeepTutor55.5K+5.5K655 days ago
    Dicklesworthstone/destructive_command_guard6.3K—553 days ago
    Category median55.5K+6.6K40—

    Also by Dicklesworthstone

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description