← Files trigger-treeARCHIVED FILE
hooks/hooks.json
1.91 KB · Oct 2, 2026 · 00:29 UTC
{
"description": "Collect local documentation-discovery telemetry without affecting Codex commands.",
"hooks": {
"SessionStart": [{"hooks": [{"type": "command", "command": "H=\"${CLAUDE_PLUGIN_ROOT}/scripts/tt-codex-hook.py\"; [ -f \"$H\" ] || exit 0; if command -v python3 >/dev/null 2>&1; then exec python3 \"$H\" --client codex; else exec python \"$H\" --client codex; fi", "commandWindows": "if exist \"%CLAUDE_PLUGIN_ROOT%\\scripts\\tt-codex-hook.py\" py -3 \"%CLAUDE_PLUGIN_ROOT%\\scripts\\tt-codex-hook.py\" --client codex", "timeout": 5}]}],
"UserPromptSubmit": [{"hooks": [{"type": "command", "command": "H=\"${CLAUDE_PLUGIN_ROOT}/scripts/tt-codex-hook.py\"; [ -f \"$H\" ] || exit 0; if command -v python3 >/dev/null 2>&1; then exec python3 \"$H\" --client codex; else exec python \"$H\" --client codex; fi", "commandWindows": "if exist \"%CLAUDE_PLUGIN_ROOT%\\scripts\\tt-codex-hook.py\" py -3 \"%CLAUDE_PLUGIN_ROOT%\\scripts\\tt-codex-hook.py\" --client codex", "timeout": 5}]}],
"PostToolUse": [{"matcher": "Bash|Read|Glob|Grep|Skill|apply_patch|Edit|Write|mcp__.*", "hooks": [{"type": "command", "command": "H=\"${CLAUDE_PLUGIN_ROOT}/scripts/tt-codex-hook.py\"; [ -f \"$H\" ] || exit 0; if command -v python3 >/dev/null 2>&1; then exec python3 \"$H\" --client codex; else exec python \"$H\" --client codex; fi", "commandWindows": "if exist \"%CLAUDE_PLUGIN_ROOT%\\scripts\\tt-codex-hook.py\" py -3 \"%CLAUDE_PLUGIN_ROOT%\\scripts\\tt-codex-hook.py\" --client codex", "timeout": 5}]}],
"Stop": [{"hooks": [{"type": "command", "command": "H=\"${CLAUDE_PLUGIN_ROOT}/scripts/tt-codex-hook.py\"; [ -f \"$H\" ] || exit 0; if command -v python3 >/dev/null 2>&1; then exec python3 \"$H\" --client codex; else exec python \"$H\" --client codex; fi", "commandWindows": "if exist \"%CLAUDE_PLUGIN_ROOT%\\scripts\\tt-codex-hook.py\" py -3 \"%CLAUDE_PLUGIN_ROOT%\\scripts\\tt-codex-hook.py\" --client codex", "timeout": 5}]}]
}
}
SHA-256: 482a87c5281969aa47811a3a21ae57abac7a8192d9c07732e11e453534b07852