dcg
Block destructive shell and git commands before they run.
Hooks
| Event | Output |
|---|---|
PreToolUse | blocks the command when dcg flags it as destructive |
[!warning]
dcgmust already be installed and available inPATH. This plugin only wires the hook, it does not install or manage thedcgbinary.
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 Runtime | Manifest | Hook configuration |
|---|---|---|
| APM | apm.yml | .apm/hooks/hooks.json |
| Antigravity | plugin.json | - |
| Claude Code | .claude-plugin/plugin.json | hooks/claude.json |
| Codex | .claude-plugin/plugin.json | hooks/claude.json |
| Copilot | plugin.json | com.github.copilot/hooks/hooks.json |
| Cursor | .cursor-plugin/plugin.json | hooks/cursor.json |
| Devin | .claude-plugin/plugin.json | - |
[!note] APM merges
.apm/hooks/hooks.jsoninto the target agent runtime settings (e.g.~/.claude/settings.json) and rewrites${PLUGIN_ROOT}to the path it deployed the scripts to.