{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Write|Edit",
        "hooks": [{
          "type": "command",
            "command": "root=\"${CLAUDE_PLUGIN_ROOT:-$CLAUDE_PROJECT_DIR}\"; hook=\"$root/hooks/ibr-pre-change.sh\"; if [ -x \"$hook\" ]; then \"$hook\"; else printf '{}'; fi",
          "timeout": 5000
        }]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Write|Edit",
        "hooks": [{
          "type": "command",
            "command": "root=\"${CLAUDE_PLUGIN_ROOT:-$CLAUDE_PROJECT_DIR}\"; hook=\"$root/hooks/ibr-post-change.sh\"; if [ -x \"$hook\" ]; then \"$hook\"; else printf '{}'; fi",
          "timeout": 30000
        }]
      }
    ],
    "Stop": [
      {
        "hooks": [{
          "type": "command",
            "command": "root=\"${CLAUDE_PLUGIN_ROOT:-$CLAUDE_PROJECT_DIR}\"; hook=\"$root/hooks/ibr-loop-hook.sh\"; if [ -x \"$hook\" ]; then \"$hook\"; else printf '{}'; fi"
        }]
      }
    ]
  }
}
