← Files RiqorARCHIVED FILE

hooks/hooks.json

1.85 KB · Oct 2, 2026 · 00:30 UTC

↓ Download file

{
  "description": "Bounded routing, continuity, and evidence hooks for Riqor",
  "hooks": {
    "SessionStart": [
      {
        "matcher": "startup|resume|clear|compact",
        "hooks": [
          {
            "type": "command",
            "command": "node \"${PLUGIN_ROOT}/hooks/main.mjs\"",
            "timeout": 5,
            "statusMessage": "Loading measured execution guidance",
            "additionalContextLimit": 900
          }
        ]
      }
    ],
    "UserPromptSubmit": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "node \"${PLUGIN_ROOT}/hooks/main.mjs\"",
            "timeout": 5,
            "additionalContextLimit": 900
          }
        ]
      }
    ],
    "SubagentStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "node \"${PLUGIN_ROOT}/hooks/main.mjs\"",
            "timeout": 5,
            "additionalContextLimit": 600
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Bash|shell|exec_command|run_shell_command|start_process|interact_with_process|apply_patch|write_file|edit_file|edit_block|multi_replace|create_file|delete_file",
        "hooks": [
          {
            "type": "command",
            "command": "node \"${PLUGIN_ROOT}/hooks/main.mjs\"",
            "timeout": 5
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "node \"${PLUGIN_ROOT}/hooks/main.mjs\"",
            "timeout": 5,
            "statusMessage": "Checking completion evidence"
          }
        ]
      }
    ],
    "SessionEnd": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "node \"${PLUGIN_ROOT}/hooks/main.mjs\"",
            "timeout": 3
          }
        ]
      }
    ]
  }
}

SHA-256: 6f2e719c15bdb62d7214c7593db353df59841416d1aec049e0c5e204f8afc2f3