Skip to content
The Daily Repo

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.

Why this job: says: coding agents, ai coding

Destructive Command Guard - Protecting your code from accidental destruction

What it does

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), Posit Assistant, Oh My Pi, Factory Droid's Execute tool, and related tools.

Get started

No single install command. Read the steps in the README (opens in new tab)

Maintenance
Active
Last commit 2 days ago
Stars
6,319
+88 this week
Licence
Custom
Read before business use
Downloads for
3 systems
Mac, Windows, Linux
Latest version
v0.16.0
Released 9 days ago
Built with
Rust
92% of the code

Is it looked after?

Contributors
1
Last 90 days
Issues
95% closed
24 still open
Pull requests
28 merged
0 waiting
Releases
76
30+ in the last year
More: download files, languages, topics and project record

Download files, v0.16.0

  • Mac6 files, 1,851 downloads
  • Windows3 files, 954 downloads
  • Linux6 files, 5,165 downloads

All files on GitHub (opens in new tab)

Languages

  • Rust 92%
  • Shell 5%
  • PowerShell 3%
  • Python 1%

Topics

  • ai-agents
  • cli
  • developer-tools
  • rust
  • safety
  • git

Project record

  • JobCoding agents
  • StatusListed
  • Commits3,248
  • Forks268
  • Watching20
  • Stars in 28 days+178
  • CreatedJan 7, 2026
  • First seen by usNov 7, 2026
  • CheckedNov 10, 2026

Type to search.

Try