回榜單 Back to trending

Dicklesworthstone/destructive_command_guard

防止AI代理執行危險的git和shell命令 The Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from being executed by agents.

Rust 2.9k 108
ai-agentsclideveloper-toolsgitrustsafety
在 GitHub 開啟 View on GitHub X Facebook LINE

AI 分析 AI analysis

AI 閱讀專案 README 後撰寫的導讀。 Written by AI after reading the project README.

dcg 是一個用 Rust 寫的高效能命令攔截器,專門擋住 AI 編碼代理(如 Claude Code、Codex CLI)可能執行的破壞性指令,像是 git reset --hard 或 rm -rf。如果你在用 AI 輔助寫程式,尤其是讓代理直接操作終端機,這工具能避免心血被一鍵刪光。安裝簡單,開箱即用,對初學者來說幾乎零門檻。

上榜紀錄 Trending history

最佳名次 #1 Best rank #1 上榜 1 天 1 day listed 首次上榜 2026-07-13 First seen 2026-07-13