Skip to content
v0.2.0MIT

Block destructive shell and git commands before they run

dcg

Block destructive shell and git commands before they run.

Hooks

EventOutput
PreToolUseblocks the command when dcg flags it as destructive

[!warning] dcg must already be installed and available in PATH. This plugin only wires the hook, it does not install or manage the dcg binary.

Installation

Native plugin (recommended):

my-agent plugin install dcg@one-for-all

APM package:

apm install kilianpaquier/ai-integration/plugins/dcg -g

APM plugin:

apm marketplace add kilianpaquier/ai-integration
apm install dcg@one-for-all -g

Compatibility table

Agent RuntimeManifestHook configuration
APMapm.yml.apm/hooks/hooks.json
Antigravityplugin.json-
Claude Code.claude-plugin/plugin.jsonhooks/claude.json
Codex.claude-plugin/plugin.jsonhooks/claude.json
Copilotplugin.jsoncom.github.copilot/hooks/hooks.json
Cursor.cursor-plugin/plugin.jsonhooks/cursor.json
Devin.claude-plugin/plugin.json-

[!note] APM merges .apm/hooks/hooks.json into the target agent runtime settings (e.g. ~/.claude/settings.json) and rewrites ${PLUGIN_ROOT} to the path it deployed the scripts to.