Skip to main content
All projects
Infrastructure
Live

Safety Hooks

A battle-tested hook system that prevents autonomous agents from taking destructive actions. Includes damage control (blocks dangerous commands), scope guard (prevents mandate creep), financial gate (requires verification before transactions), and reversibility classifier (categorizes actions by blast radius). Born from a real $252 loss incident.

safety-hooks
$ hook: damage-control
  blocked: rm -rf /
  reason: destructive operation

✓ 0 incidents this week
PythonHooksSafetyClaude Code

Stack

  • Python
  • SQLite
  • YAML
  • Claude Code Hooks API

Links

GitHub