Dicklesworthstone

destructive_command_guard

Dicklesworthstone

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.

AI 简介

Destructive Command Guard(dcg)是一个面向AI编码代理的安全防护工具,用于实时拦截并阻止危险的Git和Shell命令执行。它通过高性能Rust实现的CLI钩子机制,在命令执行前进行语义级扫描,支持git reset --hard、rm -rf、DROP TABLE等高危操作的识别与阻断,并内置50+安全规则包(覆盖数据库、Kubernetes、云平台等)。具备亚毫秒延迟、heredoc/内联脚本检测及上下文感知能力。适用于使用Claude Code、Copilot CLI、Cursor、Gemini CLI等AI编程代理的开发者,防止因模型误输出导致的代码或数据意外破坏。

Rust
Other 最后更新 2026年11月24日活跃
6.4k
Stars
270
Forks
20
Watchers
24
Issues

Star 增长

今日+1
近 7 天+12
近 30 天+167
综合评分38.3
默认分支main