Dicklesworthstone/destructive_command_guard
The Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from being executed by agents. observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 99
- Release rhythm 99
- Longevity 17
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 238
- days_rel: 9
- days_push: 7
- n_releases_24m: 56
Adoption not part of the score
5840 stars · 238 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A high-performance Rust CLI hook that intercepts and blocks destructive git and shell commands before AI coding agents execute them. It integrates with tools like Claude Code, Codex CLI, Gemini CLI, Cursor, and Copilot CLI to protect against accidental deletion.
Use cases
- prevent AI agents from running destructive shell commands
- block dangerous git commands from Claude Code
- protect my repo from accidental deletion by coding agents
- add a safety guard to Codex CLI or Gemini CLI
- stop an AI agent from running rm -rf
- sandbox dangerous commands executed by AI coding assistants
When to choose
- you use AI coding agents (Claude Code, Codex, Gemini CLI, Cursor, etc.) and want automatic protection from destructive commands
- you want a fast, lightweight Rust-based hook that installs across many agent tools
- you need per-command blocking before execution rather than after-the-fact recovery
When to avoid
- you need full sandboxing or OS-level isolation of agent processes rather than command filtering
- you don't use AI coding agents and just want general shell safety aliases
- you require a permissively licensed dependency (license is custom)
Facets
cli-tool · maturity active
security cli developer-tools developer-tools security windows cli rust ai-agent-hooks safety git-protection claude-code command-blocking ai-agents command-line linux macos
2 sources
- readme: https://github.com/Dicklesworthstone/destructive_command_guard · fetched 2026-08-28 · 007dc4e2df2d
- registry_crates: https://crates.io/api/v1/crates/destructive_command_guard · fetched 2026-08-29 · c749e11a97b0
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Dicklesworthstone/destructive_command_guard | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="Dicklesworthstone/destructive_command_guard")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem