Latest / Security & privacy

Destructive Command Guard

github.com · Open source · Active

Safety hook that blocks destructive shell and git commands from AI agents

Visit github.com ↗Share

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_guard

Confirmed 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

Checked , later than day 7 because tracking began after.

Day 30 11 releases shipped

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (30 in total, busiest month 17). Based on the most recent releases on record.
  1. Repository created on GitHub: Dicklesworthstone/destructive_command_guard
  2. Found: Dicklesworthstone created its repository on GitHub. GitHub
  3. Release v0.2.1
  4. Release v0.15.2
  5. Release v0.15.3
  6. Release v0.16.0
  7. Release v0.17.0
  8. Release v0.17.1
  9. Release v0.17.2
  10. Day-7 check recorded by Kip (details)
  11. 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

SourceRecordLast checked
GitHublisting
official API record
GitHub repositoryDicklesworthstone/destructive_command_guard
REST API record
GitHub Releasesrelease 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

More in Security & privacy

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.