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) 是一个用于阻止危险的 Git 和 Shell 命令执行的安全工具。该项目使用 Rust 语言开发,具有高性能和低延迟的特点,能够在命令执行前拦截并阻止潜在的破坏性操作,如 `git reset --hard` 或 `rm -rf ./src`,从而保护代码免受意外删除。它支持多种 AI 编码助手(例如 Claude Code、Codex CLI、GitHub Copilot CLI 等),并且提供了超过 50 种安全包来覆盖数据库、Kubernetes、Docker、云服务等场景。此外,dcg 还具备智能上下文检测功能,可以扫描 Heredoc 和内联脚本中的危险指令。适用于任何需要防止代码或数据被误删的开发环境。

Rust
Other
1.1k
Stars
65
Forks
3
Watchers
1
Issues

Star 增长

今日0
近 7 天+14
近 30 天+89
综合评分69.36
默认分支main