Desktop App Productivity ★ 6,373 stars on GitHub

Destructive Command Guard

High-performance safety hook that intercepts destructive file, git, and system commands before AI coding tools execute them.

Guide and Overview

What it does in plain English

Destructive Command Guard acts as an intelligent safety layer between your terminal and AI coding assistants. When an assistant attempts to run a catastrophic operation like erasing code directories or dropping databases, the tool instantly blocks the command. It provides clear explanations and safer alternatives, protecting your work from accidental data loss.

Who it’s for

  • Developers and engineers who use AI coding assistants to manage local project pages and cloud servers.
  • Teams wanting automated guardrails against accidental data deletion during automated scripting tasks.
  • Anyone looking to prevent unrecoverable terminal mistakes before they happen.

Key features

  • Zero-config core protection: Automatically blocks dangerous file deletion and history-rewriting git commands out of the box.
  • Extensive security packs: Includes dozens of rule sets covering databases, cloud platforms, containers, and infrastructure tools.
  • Lightning-fast performance: Written in Rust with sub-millisecond filtering speed so it never slows down your workflow.
  • Smart context detection: Distinguishes between safe references and actual execution hazards to minimize false alarms.
  • Clear terminal feedback: Explains precisely why a command was blocked and suggests safer ways to achieve your goal.

How to install (Download)

To download verified release signatures and checksum verification files for your platform, use the official links below:

Pros and Cons

  • Pros: Fast and lightweight performance, robust out-of-the-box protection, wide compatibility across major AI coding tools.
  • Cons: Requires manual configuration to enable advanced provider security packs, command overrides require deliberate bypass steps.

Optional commercial services unrelated to the open-source developer. Clicking an #ad link helps fund HubHum at no extra cost to you.

  • ★ Top Recommended — Systeme.io: Free-forever all-in-one platform to build landing pages, newsletters, and automated workflows with zero monthly fees — Activate Systeme.io → (#ad)
  • AdGuard: Block intrusive ads, tracking scripts, and phishing domains system-wide across all browsers and desktop apps — AdGuard (#ad)
  • InterServer: Launch and host self-hosted web apps 24/7 on managed Linux cloud VPS servers starting at $3/month — InterServer (#ad)

Official Source & Credits: Official Source / Credits

Affiliate transparency (#ad): Some links on this page are affiliate links. If you choose to activate a service through them, we may earn a commission at no extra cost to you.

Your Saved Favorites

Your favorite apps are saved right here in this browser.


Sign in with one click to link your GitHub profile and sync favorites.