Destructive Command Guard
github.com · Open source · Active
Safety hook that blocks destructive shell and git commands from AI agents
- Security & privacy
- Open source
- Rust
- Day-7 check
- Day-30 check
- Stars
- 6.4k
- Forks
- 271
- Open issues
- 17
- Last commit
- Releases
- 79
- Found
- 10 months ago
GitHub figures as of . They are context, not a ranking.
Destructive Command Guard is a Rust hook that blocks destructive shell, git and filesystem commands before an AI coding agent runs them. It includes more than 50 security packs covering databases, Kubernetes, Docker, cloud and Terraform, and it works with Claude Code, Codex CLI, Gemini CLI and several other agents.
Repository description on GitHub: “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, ”
What it does
- Blocks destructive commands before the agent runs them
- More than 50 security packs for databases, Kubernetes, Docker, cloud and Terraform
- Explain mode and CI scan mode
Good for
- Stop an agent from running a destructive shell or git command in a project
- Scan scripts in CI for destructive commands before they run
Suits: Developers who let AI coding agents run shell and git commands.
Worth knowing: Released under a custom license, according to its readme badge.
What you can try
Install the Rust tool as its readme describes, then register it as a hook in a supported agent such as Claude Code.
Install
cargo install destructive_command_guardConfirmed against the package registry. Read the project’s own instructions before running anything.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw Destructive Command Guard on , when Dicklesworthstone created its repository on GitHub. The oldest published release on GitHub is v0.2.1, dated . Its first tagged release came 4 days after it was found. 79 releases have been published in total; the latest is v0.17.2 ().
Day-7 and day-30 updates
Day 7 7 releases shipped
- 7 releases in the first 7 days: v0.2.1 (12 Jan 2026), v0.2.2 (12 Jan 2026), v0.2.3 (12 Jan 2026), v0.2.4 (12 Jan 2026), v0.2.5 (12 Jan 2026), v0.2.6 (12 Jan 2026), v0.2.7 (12 Jan 2026)
Checked , later than day 7 because tracking began after.
Day 30 11 releases shipped
- 11 releases in the first 30 days: v0.2.4 (12 Jan 2026), v0.2.5 (12 Jan 2026), v0.2.6 (12 Jan 2026), v0.2.7 (12 Jan 2026), v0.2.9 (14 Jan 2026), v0.2.10 (15 Jan 2026), v0.2.15 (20 Jan 2026), v0.3.0 (2 Feb 2026) and earlier ones
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: Dicklesworthstone/destructive_command_guard
- Found: Dicklesworthstone created its repository on GitHub. GitHub
- Release v0.2.1
- Release v0.15.2
- Release v0.15.3
- Release v0.16.0
- Release v0.17.0
- Release v0.17.1
- Release v0.17.2
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Showing the first and the 6 latest of 79 releases. All releases on GitHub
Quick answers
- When was Destructive Command Guard released?
- Its first tagged release on GitHub is dated 12 Jan 2026. Kip found it on GitHub on 7 Jan 2026.
- Is Destructive Command Guard open source?
- Its source is public on GitHub at Dicklesworthstone/destructive_command_guard; check the repository for licence terms.
- What does Destructive Command Guard run on?
- Command line.
- Is Destructive Command Guard free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is Destructive Command Guard still maintained?
- Yes. It had a commit or release in the last 90 days as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| GitHub | listing official API record | |
| GitHub repository | Dicklesworthstone/destructive_command_guard REST API record | |
| GitHub Releases | release list REST API record |
Stable ID github-1130004860. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
- claude-code-safety-netActive
Guard that blocks destructive git and file commands from AI coding agents
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.