Show HN: Block dangerous Git and shell commands from being executed by agents
Category: security
Tags: ai-agents, security, rust, command-protection, git-hook
Score: 7.8/10 (Innovation: 6, Technical: 8, Documentation: 9, Utility: 8)
A high-performance Rust hook that blocks destructive commands (like git reset --hard, rm -rf) before AI coding agents execute them, protecting against accidental data loss. It supports 50+ security packs for various tools and clouds, uses SIMD-accelerated filtering for sub-millisecond latency, and integrates with major agent platforms like Claude Code and Codex CLI.
Target audience: backend devs, devops, ai engineers
Repository: https://github.com/Dicklesworthstone/destructive_command_guard · Rust · NOASSERTION · 2622 stars
View on Hacker News