dcg

Block destructive Git and filesystem commands in Claude Code workflows.

70|13|Updated Jan 5, 2026
One-click install
npx skills add https://github.com/Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations --skill dcg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dcg
Source: https://github.com/Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations/tree/main/skills/dcg
Command: npx skills add https://github.com/Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations --skill dcg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

DCG prevents destructive commands from executing in Claude Code workflows, reducing the risk of data loss during automated agent runs.

Core Features & Use Cases

  • Whitelist-first guard that blocks dangerous commands like git reset --hard, rm -rf, and git push --force.
  • SIMD-accelerated filtering with a modular pack system for fast, real-time command interception.
  • Use Case: Integrate with Claude Code to automatically guard destructive commands during agent-driven coding workflows.

Quick Start

Run the dcg tool in a test environment to observe how it blocks dangerous commands and logs the rationale for denial.

Frequently Asked Questions about dcg

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I block destructive Git commands in Claude Code before they execute?

You can block destructive Git commands in Claude Code using a whitelist-first guard that intercepts risky commands like git reset --hard before they execute. This prevents data loss during automated agent runs.

What is a whitelist-first model for intercepting destructive filesystem commands?

A whitelist-first model for intercepting destructive filesystem commands enforces a default-allow configuration with modular packs. It filters commands using SIMD-accelerated Rust implementations to block risky operations like rm -rf in real-time.

How do I set up command interception to prevent data loss during automated coding agent workflows?

To set up command interception for automated coding agent workflows, integrate a modular pack system that applies a whitelist-first guard to your environment. Test the tool in a sandbox to observe how it blocks dangerous commands and logs the rationale for denial.

Does the Rust-based destructive command blocker work with existing Git workflows?

Yes, the Rust-based destructive command blocker works with existing Git workflows by intercepting risky Git commands like git push --force before execution. It applies a default-allow model so standard operations continue uninterrupted.

What are the limitations of using a default-allow model for command filtering in Claude Code?

The limitation of a default-allow model for command filtering in Claude Code is that only specifically whitelisted destructive commands are blocked. Unknown or novel risky filesystem commands might bypass the modular packs if they are not explicitly defined.