destructive_command_guard
AGENTS.md6.1k starsChanged 3 months agoLicence not identifiedView on GitHub
dcg can detect which AI coding agent is invoking it and apply agent-specific trust levels and configuration overrides. This allows you to grant higher trust to well-behaved agents while maintaining…
- Deletes or force-pushes
- Commits and pushes
Trending
Less talk lately.about the whole repository
Who's talking about Dicklesworthstone/destructive_command_guard
- @camilleroux.com“dcg : un hook qui intercepte les commandes destructives avant qu'un agent IA ne les exécute, `git reset …”Bluesky · Jul 31, 2026 · 5 likes
- @rusttrending.bsky.social“Dicklesworthstone / destructive_command_guard: The Destructive Command Guard (dcg) is for blocking …”Bluesky · Jul 12, 2026 · 3 likes
- A Hacker News story“Show HN: Destructive_command_guard (Dcg)”Hacker News · Jan 31, 2026 · 3 points
- @bestofhn.bsky.social“A CLI guard that intercepts git and shell commands before an AI coding agent runs them, blocking …”Bluesky · Jul 12, 2026 · 2 likes
- A Hacker News story“Show HN: Block dangerous Git and shell commands from being executed by agents”Hacker News · Jul 12, 2026 · 2 points
The biggest 5 of 58 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 58
Talked about on GitHub, Bluesky and Hacker News (58 times).
On GitHub · 42
- Apr 10, 2026fix(gateway): dcg-guard PATH augmentation and loud missing-dcg warning — moltis-org/moltis1 reaction · 5 comments
- Oct 3, 2026agent-skills.github.dicklesworthstone.destructive_command_guard: 0.14.4 → 0.15.2 — sudosubin/agents.nix0 reactions
- Sep 26, 2026agent-skills.github.dicklesworthstone.destructive_command_guard: init at 0.14.4 — sudosubin/agents.nix0 reactions
- Aug 27, 2026Feat - Support agent hooks to block WebSearch and WebFetch to inject your ketch's search results as additional context of those WebSearch and WebFetch tool — 1broseidon/ketch0 reactions · 2 comments
- Aug 24, 2026feat(dcg): offer four ways to install the dcg binary, not one — trick77/opencode-presets0 reactions
37 more on GitHub
- Aug 22, 2026[Feature]: Add built-in destructive operation guardrail packs — ahstn/oceans-llm0 reactions · 1 comment
- Aug 15, 2026chore: bump Dicklesworthstone overlays (13 packages) — javdl/nixos-config0 reactions
- Aug 8, 2026request: add dcg — cderv/r-bucket0 reactions · 2 comments
- Jul 25, 2026package request: destructive_command_guard (dcg) — numtide/llm-agents.nix0 reactions · 1 comment
- Jul 18, 2026Evaluate Dicklesworthstone/destructive_command_guard (dcg) as optional safety provider — ichinya/aifhub-extension0 reactions
- Jul 18, 2026[Bug] ZCode: Can't install destructive command guard (dcg plugin) — zai-org/feedback0 reactions · 3 comments
- Jul 16, 2026[Guardrail] cron 자율실행 파괴명령 차단 — destructive_command_guard 연동 PoC (Hermes 훅) — altjs4510/hermes-agent0 reactions · 2 comments
- Jul 16, 2026Github trending [Dicklesworthstone/destructive_command_guard] 零配置防误删安全钩子 — web1992/github-trending0 reactions
- Jul 15, 2026🔥 GitHub Trending AI 早报 · 2026-07-16 · Top 8 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Jul 15, 2026🔥 GitHub Trending AI 早报 · 2026-07-16 · Top 8 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jul 15, 2026🔥 GitHub Trending AI 晚报 · 2026-07-15 · Top 8 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jul 15, 2026🔥 GitHub Trending AI 晚报 · 2026-07-15 · Top 8 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Jul 15, 2026Github trending [Dicklesworthstone/destructive_command_guard] AI危险命令防护钩子 — web1992/github-trending0 reactions
- Jul 14, 2026🔥 GitHub Trending AI 早报 · 2026-07-15 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Jul 14, 2026🔥 GitHub Trending AI 早报 · 2026-07-15 · Top 7 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jul 14, 2026🔥 GitHub Trending AI 晚报 · 2026-07-14 · Top 7 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jul 14, 2026🔥 GitHub Trending AI 晚报 · 2026-07-14 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Jul 13, 2026🔥 GitHub Trending AI 晚报 · 2026-07-13 · Top 7 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jul 13, 2026🔥 GitHub Trending AI 晚报 · 2026-07-13 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Jul 13, 2026Github trending [Dicklesworthstone/destructive_command_guard] AI命令防护神器 — web1992/github-trending0 reactions
- Jul 12, 2026🔥 GitHub Trending AI 早报 · 2026-07-13 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Jul 12, 2026🔥 GitHub Trending AI 早报 · 2026-07-13 · Top 7 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jul 12, 2026destructive_command_guard (dcg): AI 코딩 에이전트를 위한 파괴적 명령 가드레일 — roomedia/ax-trend0 reactions
- Jul 12, 2026🔥 GitHub Trending AI 晚报 · 2026-07-12 · Top 7 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jul 12, 2026🔥 GitHub Trending AI 晚报 · 2026-07-12 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Jul 12, 2026[2026-07-11] Apple sues OpenAI, accuses ex-employees of stealing trade secrets — jiacai2050/mofish0 reactions
- May 23, 2026Update repo table — arran4/arran40 reactions
- May 3, 2026[FEATURE] review and upgrade DCG — 0xHoneyJar/loa0 reactions
- Apr 27, 2026Smart modified path detection for harnx-mcp-bash file history snapshotting — dobesv/harnx0 reactions · 1 comment
- Apr 10, 2026Integrate Destructive Command Guard (dcg) with configurable settings — eltmon/overdeck0 reactions · 3 comments
- Apr 6, 2026block destructive commands — smp4/claude-skills0 reactions
- Mar 16, 2026feat: Destructive command blocklist — safety floor below Guardian — Creel-ai/creel0 reactions
- Mar 5, 2026acfs update: dcg install getting 404 — Dicklesworthstone/agentic_coding_flywheel_setup0 reactions · 3 comments
- Feb 4, 2026[Feature]: destructive command guard review — 0xHoneyJar/loa-beauvoir0 reactions · 1 comment
- Feb 4, 2026[FEATURE] destructive command guard — 0xHoneyJar/loa0 reactions
- Jan 26, 2026Add Destructive Command Guard for Bash Safety — NoahByrnes/claude-agent-studio-worker-template0 reactions
- Jan 23, 2026Install or adapt a hook for preventing destructive commands — Jython1415/jshoes-claude-plugins0 reactions
On Bluesky · 13
- Jul 31, 2026dcg : un hook qui intercepte les commandes destructives avant qu'un agent IA ne les exécute, `git reset --hard`, `rm -rf`, `DROP TABLE`,… — @camilleroux.com5 likes and reposts · 5 replies
- Jul 12, 2026Dicklesworthstone / destructive_command_guard: The Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from… — @rusttrending.bsky.social3 likes and reposts
- Jul 12, 2026A CLI guard that intercepts git and shell commands before an AI coding agent runs them, blocking destructive ones like force pushes, hard… — @bestofhn.bsky.social2 likes and reposts
- Aug 30, 2026Dicklesworthstone / destructive_command_guard: The Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from… — @rusttrending.bsky.social1 likes and repost
- Jul 16, 2026one line that stops your ai agent from running rm -rf. DCG sits between your coding agent and the shell and blocks the dangerous commands… — @epicvibecoder.bsky.social1 likes and repost · 1 reply
8 more on Bluesky
- Jul 14, 2026今日のGitHubトレンド Dicklesworthstone/destructive_command_guard AIコーディングエージェント向けに、破壊的なコマンドの実行を事前にブロックして誤操作によるデータ削除を防ぐためのツールです。 Claude… — @dailygithubtrends.bsky.social1 likes and repost
- Jul 12, 2026今日のGitHubトレンド Dicklesworthstone/destructive_command_guard AIコーディングエージェント向けのフックであり、破壊的なコマンドの実行を事前にブロックして、誤った削除から作業内容を保護することを目的としています。 Claude… — @dailygithubtrends.bsky.social1 likes and repost
- Jun 11, 2026this is a classic that helps (esp if people are doing DSP): github.com/Dicklesworth... — @juniperbevensee.bsky.social1 likes and repost · 1 reply
- Jul 28, 2026Intercepting dangerous git and shell commands before an agent runs them sits exactly between trusting the agent and reviewing every diff —… — @u11g.com0 likes and reposts · 1 reply
- Jul 14, 2026📈 Today's GitHub Trending: 1. https://github.com/Shubhamsaboo/awesome-llm-apps - Python, 1104 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy0 likes and reposts · 1 reply
- Jul 12, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 Dicklesworthstone / destructive_command_guard ⭐ 2,322 (+444) 🗒 Rust The Destructive Command Guard… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Jul 12, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 Dicklesworthstone / destructive_command_guard ⭐ 2,322 (+444) 🗒 Rust The Destructive Command Guard… — @github-trending-rs.bsky.social0 likes and reposts · 1 reply
- Jul 12, 2026📈 Today's GitHub Trending: 1. https://github.com/Dicklesworthstone/destructive_command_guard - Rust, 444 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy0 likes and reposts · 1 reply
On Hacker News · 3
- Jan 31, 2026Show HN: Destructive_command_guard (Dcg)3 points
- Jul 12, 2026Show HN: Block dangerous Git and shell commands from being executed by agents2 points
- Jan 25, 2026Destructive Command Guard2 points
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
Show its rules and text
We split this agents.md into the rules it gives an agent
14 rules. About 0 are common, 6 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
The licence could not be identified — read it at the source. We count its rules but don't quote them. Read them on GitHub.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

