Files
claude-code-best-practice/.codex/hooks.json
T
2026-04-04 18:34:48 +05:00

66 lines
1.5 KiB
JSON

{
"hooks": {
"SessionStart": [
{
"matcher": "^startup$",
"hooks": [
{
"type": "command",
"command": "python3 .codex/hooks/scripts/hooks.py --hook SessionStart",
"timeout": 10,
"statusMessage": "Loading project context"
}
]
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python3 .codex/hooks/scripts/hooks.py --hook PreToolUse",
"timeout": 10,
"statusMessage": "Running pre-tool-use hook"
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python3 .codex/hooks/scripts/hooks.py --hook PostToolUse",
"timeout": 10,
"statusMessage": "Running post-tool-use hook"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "python3 .codex/hooks/scripts/hooks.py --hook Stop",
"timeout": 10,
"statusMessage": "Running session stop hook"
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "python3 .codex/hooks/scripts/hooks.py --hook UserPromptSubmit",
"timeout": 10,
"statusMessage": "Running user prompt submit hook"
}
]
}
]
}
}