// devtools · Dicklesworthstone/destructive_command_guard

destructive_command_guard

destructive_command_guard — проект с открытым исходным кодом из категории «Инструменты разработчика» от Dicklesworthstone (Dicklesworthstone/destructive_command_guard на GitHub). У него 6 120 звёзд на GitHub и 253 форка, он распространяется по лицензии MIT и последний раз обновлялся на GitHub 8 октября 2026.

A guard that blocks dangerous git and shell commands before AI agents can execute them.

★ 6,1 тыс. звёзд⑂ 253 форкаMITобновлено окт. 2026
▦ визуал — в README этого проекта нет встраиваемого скриншота,
поэтому здесь заглушка. Руководство ниже в любом случае полное.
// факты о проекте

Факты о проекте

Звёзды GitHub
6 120
Форки
253
Лицензия
MIT
Последнее обновление на GitHub
8 октября 2026
Тип страницы
Полное руководство по установке
// как это работает

Как это работает

  1. Clarify the risk

    If an agent with shell access could wipe uncommitted work or damage your system, dcg is the seatbelt that sits in its command path.

  2. Install dcg

    Run the installer for your platform, using easy mode if you want sensible defaults.

  3. Configure rule packs

    Review the enabled packs, choose warn/log/ask/block behavior per rule, and add allowlist entries for your legitimate workflows.

  4. Verify the guard

    Have your agent (or yourself) attempt a blocked command such as git reset --hard and confirm dcg intercepts it.

// возможности

Почему его любят

Blocks destructive commands

Intercepts dangerous git and shell commands before execution, explaining the reason and suggesting a safer alternative like git stash.

Rule packs by category

Organized packs cover git, filesystem, database, cloud and platform CLIs (including Azure DevOps), plus Windows-specific packs enabled by default on Windows.

Graduated responses

Rules can block, warn, log silently or ask the operator for review where the hook protocol supports it, with severity ladders and presets such as strict_git.

Agent-specific profiles

Automatically detects which AI coding agent invoked it and applies per-agent disabled/extra packs and allowlists; Codex CLI is a first-class hook target alongside Claude Code.

Secret-disclosure protection

An opt-in pack blocks value-emitting secret reads from tools like Infisical, 1Password, Doppler, Vault and AWS Secrets Manager.

Explainable decisions

dcg explain --format json shows exactly which rule and mode would apply to a command before you rely on it.

Advertisement
// запустите сами

Запустите сами

  1. Clone the repository

    Clone the guard if you want the source; most users install the released binary in the next step.

    git clone https://github.com/Dicklesworthstone/destructive_command_guard.git
    cd destructive_command_guard
  2. Install dcg

    Run the official installer in easy mode (a PowerShell installer is provided for Windows).

    curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/destructive_command_guard/main/install.sh?$(date +%s)" | bash -s -- --easy-mode
  3. Test the guard

    Try a destructive command through your agent hook and confirm dcg blocks it with an explanation.

    git reset --hard HEAD~5
    # dcg intercepts and blocks: git reset --hard destroys uncommitted changes
// сценарии использования

Что можно создать

Advertisement
// вопросы и ответы

Вопросы и ответы

Who maintains dcg?

The Destructive Command Guard is maintained by Dicklesworthstone (Jeffrey Emanuel).

Is dcg free?

Yes — its LICENSE is the MIT License with an additional OpenAI/Anthropic rider; read the LICENSE file for the exact terms.

Does it need a paid API key?

No. dcg is a local Rust binary that evaluates commands against rule packs; no network service or key is involved.

How does it compare to agent permission prompts?

Permission prompts ask about every command or broad categories; dcg evaluates the actual command content against curated destructive-command packs and can block, warn or ask per rule.

How do I get started?

Run the installer with --easy-mode, then test it by attempting git reset --hard through your agent.

// продолжить изучение

Похожие инструменты

Инструменты разработчика

open-terminal

Open Terminal — a computer you can curl: a sandboxed terminal API for AI agents, from Open WebUI.

★ 3,3 тыс. звёздMIT
Смотреть руководство →
Инструменты разработчика

mcp_agent_mail

Gmail for coding agents: identities, inboxes, threads, and file leases over FastMCP, Git, and SQLite.

★ 2,2 тыс. звёздNOASSERTION
Смотреть руководство →
Инструменты разработчика

aichat

One Rust CLI for every LLM: shell assistant, chat REPL, RAG, tools and agents across 20+ providers.

★ 10,5 тыс. звёздApache-2.0
Смотреть руководство →
Инструменты разработчика

Athas

A lightweight, cross-platform code editor, built with Tauri (Rust and React) with Git support, AI agents, vim keybindings

★ 3,1 тыс. звёздCustom (check repo)
Смотреть руководство →
Инструменты разработчика

differ

A two-panel terminal UI for git diffs, with AI commits.

★ 58 звёздMIT
Смотреть руководство →
Инструменты разработчика

paperjury

Stress-test your research paper with an AI reviewer before submission.

★ 1,2 тыс. звёздMIT
Смотреть руководство →
// альтернативы

Альтернативы: Инструменты разработчика

Другие проекты из категории «Инструменты разработчика» с наибольшим числом звёзд в каталоге LibreAI — реалистичный список альтернатив, если destructive_command_guard вам не подходит.

// ещё в категории devtools

Больше проектов: Инструменты разработчика

Соседние проекты из категории «Инструменты разработчика» в каталоге, ближайшие по числу звёзд к destructive_command_guard — продолжайте изучать полку по обе стороны от него.

Получить destructive_command_guard

Бесплатно и открыто — забирайте исходный код, ставьте звезду репозиторию и начинайте создавать.