What problem does it solve?
Damage Control defends Claude Code by intercepting tool calls before execution, blocking dangerous commands and protecting sensitive files via PreToolUse hooks. It also enforces guarded operations with Ask patterns and strict path protections to prevent unintended or destructive actions.
Core Features & Use Cases
- Command Pattern Blocking: Blocks dangerous bash commands (rm -rf, git reset --hard, etc.) before they run.
- Ask Patterns: Triggers confirmation dialogs for risky-but-valid operations (when needed).
- Path Protection Levels: Defines zeroAccessPaths, readOnlyPaths, and noDeletePaths to control access to secrets and critical files.
- Runtime Flexibility: Supports Python (UV) or TypeScript (Bun) implementations for executing hooks.
- Project Scoping: Works at Global, Project, and Project Personal levels for flexible deployment.
Quick Start
Install Damage Control, then choose a protection level and add patterns to block dangerous commands.