← Files TrinityARCHIVED FILE

hooks/hooks.json

1.16 KB · Oct 3, 2026 · 06:33 UTC

↓ Download file

{
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          { "type": "command", "command": "node \"${PLUGIN_ROOT}/dist/codex-hook.js\" SessionStart", "timeout": 5 }
        ]
      }
    ],
    "UserPromptSubmit": [
      {
        "hooks": [
          { "type": "command", "command": "node \"${PLUGIN_ROOT}/dist/codex-hook.js\" UserPromptSubmit", "timeout": 5 }
        ]
      }
    ],
    "PreToolUse": [
      {
        "matcher": ".*",
        "hooks": [
          { "type": "command", "command": "node \"${PLUGIN_ROOT}/dist/codex-hook.js\" PreToolUse", "timeout": 5 }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": ".*",
        "hooks": [
          { "type": "command", "command": "node \"${PLUGIN_ROOT}/dist/codex-hook.js\" PostToolUse", "timeout": 5 }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          { "type": "command", "command": "node \"${PLUGIN_ROOT}/dist/codex-hook.js\" Stop", "timeout": 5 }
        ]
      }
    ],
    "SessionEnd": [
      {
        "hooks": [
          { "type": "command", "command": "node \"${PLUGIN_ROOT}/dist/codex-hook.js\" SessionEnd", "timeout": 5 }
        ]
      }
    ]
  }
}

SHA-256: f249f1eed452e1d0475b902237a2b2811145a7975970f1fe46f014873738294f