destructive_command_guard
destructive_command_guard is a safety hook that blocks dangerous shell, git, and file deletion commands from AI coding agents before they run.
What it is good for
- Stopping AI agents from running git reset --hard or rm -rf
- Blocking database drops and risky cloud commands from agents
- Checking commands for danger before they run in CI
At a glance
- Who it is for
- Setup difficulty
- Technical ยท Guided command-line setup
Level 4 of 5. You copy and paste commands into a terminal by following the instructions. Comfortable territory for vibe coders.
- Cost
- Free and open source
- Type
- Agent app
- Tasks
- Works with
- Claude Code, Codex CLI, Gemini CLI, GitHub Copilot CLI, Cursor IDE, Hermes Agent
Momentum
- Rank this week
- Not ranked yet
- Best rank
- None yet
- GitHub stars
- 6,361
GitHub numbers as of Nov 16, 2026. Updated weekly.
Official links
Setup steps are on the official pages. We do not repeat them here, since they change.
Questions
- Is destructive_command_guard free?
- Yes. It is free and open source.
- Do I need to know how to code to use destructive_command_guard?
- You do not need to write code, but setup means copying and pasting commands into a terminal by following its instructions.
- What does destructive_command_guard work with?
- According to its own documentation, it works with Claude Code, Codex CLI, Gemini CLI, GitHub Copilot CLI, Cursor IDE, and Hermes Agent.
- What is destructive_command_guard good for?
- Stopping AI agents from running git reset --hard or rm -rf, blocking database drops and risky cloud commands from agents, and checking commands for danger before they run in CI.
Similar agents to destructive_command_guard
- rtk
rtk is a command-line proxy that shrinks the output of developer commands before an AI coding agent reads it, to cut token costs.
- goose
goose is an agent app that runs on your computer and handles coding, research, writing, and automation tasks for developers and power users.
- DeepSeek-Reasonix
Reasonix is an open-source coding agent that reads, edits, and runs code in your project folder for developers and vibe coders.
- qwen-code
qwen-code is an agent app that writes, fixes, and explains code in your project from the terminal, editor, or desktop for developers.
- Crush
Crush is a terminal coding agent that helps programmers write, fix, and review code using the AI model of their choice.
- agent-desktop
agent-desktop is a command-line tool that lets AI agents read and operate desktop apps on macOS, Windows and Linux without guessing from screenshots.