{
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "sh -c 'f=.prd_plugin/hooks/prd_hook_dispatch.py; [ -f \"$f\" ] && python \"$f\" --event SessionStart --host codex || exit 0'",
            "commandWindows": "python -c \"import os,sys,runpy;p=os.path.join('.prd_plugin','hooks','prd_hook_dispatch.py');sys.exit(0) if not os.path.isfile(p) else None;sys.argv=[p,'--event','SessionStart','--host','codex'];runpy.run_path(p,run_name='__main__')\"",
            "timeout": 30,
            "statusMessage": "PRD Plugin routing reminder"
          }
        ]
      }
    ],
    "UserPromptSubmit": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "sh -c 'f=.prd_plugin/hooks/prd_hook_dispatch.py; [ -f \"$f\" ] && python \"$f\" --event UserPromptSubmit --host codex || exit 0'",
            "commandWindows": "python -c \"import os,sys,runpy;p=os.path.join('.prd_plugin','hooks','prd_hook_dispatch.py');sys.exit(0) if not os.path.isfile(p) else None;sys.argv=[p,'--event','UserPromptSubmit','--host','codex'];runpy.run_path(p,run_name='__main__')\"",
            "timeout": 30,
            "statusMessage": "PRD Plugin routing reminder"
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "sh -c 'f=.prd_plugin/hooks/prd_hook_dispatch.py; [ -f \"$f\" ] && python \"$f\" --event Stop --host codex || exit 0'",
            "commandWindows": "python -c \"import os,sys,runpy;p=os.path.join('.prd_plugin','hooks','prd_hook_dispatch.py');sys.exit(0) if not os.path.isfile(p) else None;sys.argv=[p,'--event','Stop','--host','codex'];runpy.run_path(p,run_name='__main__')\"",
            "timeout": 30,
            "statusMessage": "PRD Plugin configured Stop behaviors"
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "sh -c 'f=.prd_plugin/hooks/prd_hook_dispatch.py; [ ! -f \"$f\" ] || python \"$f\" --event PreToolUse --host codex'",
            "commandWindows": "python -c \"import os,sys,runpy;p=os.path.join('.prd_plugin','hooks','prd_hook_dispatch.py');sys.exit(0) if not os.path.isfile(p) else None;sys.argv=[p,'--event','PreToolUse','--host','codex'];runpy.run_path(p,run_name='__main__')\"",
            "timeout": 30,
            "statusMessage": "PRD Plugin configured tool guards"
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "sh -c 'f=.prd_plugin/hooks/prd_hook_dispatch.py; [ -f \"$f\" ] && python \"$f\" --event PostToolUse --host codex || exit 0'",
            "commandWindows": "python -c \"import os,sys,runpy;p=os.path.join('.prd_plugin','hooks','prd_hook_dispatch.py');sys.exit(0) if not os.path.isfile(p) else None;sys.argv=[p,'--event','PostToolUse','--host','codex'];runpy.run_path(p,run_name='__main__')\"",
            "timeout": 30,
            "statusMessage": "PRD Plugin evidence and tool logging"
          }
        ]
      }
    ]
  }
}
