{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "apply_patch|Edit|Write",
        "hooks": [
          { "type": "command", "command": "node \"$(git rev-parse --show-toplevel)/.codex/hooks/cascade-file-lock.mjs\"", "timeout": 10 }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          { "type": "command", "command": "node \"$(git rev-parse --show-toplevel)/.codex/hooks/cascade-file-lock.mjs\"", "timeout": 10 }
        ]
      }
    ],
    "SessionEnd": [
      {
        "hooks": [
          { "type": "command", "command": "node \"$(git rev-parse --show-toplevel)/.codex/hooks/cascade-file-lock.mjs\"", "timeout": 3 }
        ]
      }
    ]
  }
}
