Dicklesworthstone

destructive_command_guard

Dicklesworthstone

The Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from being executed by agents.

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
5.6k
Stars
220
Forks
24
Watchers
8
Issues

Star 增长

今日0
近 7 天0
近 30 天0
综合评分38.03
默认分支main