{
  "version": 1,
  "hooks": {
    "sessionStart": [
      {
        "command": "node ~/.agents/hooks/inject-doctrine.mjs",
        "timeout": 5
      }
    ],
    "preToolUse": [
      {
        "command": "node ~/.agents/hooks/step0-gate.mjs",
        "matcher": "Write|StrReplace|ApplyPatch|Edit|MultiEdit|Replace",
        "timeout": 5,
        "failClosed": false
      }
    ],
    "beforeShellExecution": [
      {
        "command": "node ~/.agents/hooks/permission-gate.mjs",
        "timeout": 5,
        "failClosed": false
      }
    ],
    "stop": [
      {
        "command": "node ~/.agents/hooks/final-review.mjs",
        "timeout": 30,
        "loop_limit": 3
      }
    ]
  }
}
