41 lines
1003 B
JSON
41 lines
1003 B
JSON
{
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python \".codex/hooks/pre_tool_use_policy.py\"",
|
|
"statusMessage": "Checking risky shell command"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python \".codex/hooks/stop_continue.py\"",
|
|
"statusMessage": "Running Harness validation",
|
|
"timeout": 300
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "python \".codex/hooks/handoff_policy.py\"",
|
|
"statusMessage": "Checking PLAN/PROGRESS handoff",
|
|
"timeout": 60
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "python \".codex/hooks/drift_policy.py\"",
|
|
"statusMessage": "Checking documentation drift",
|
|
"timeout": 60
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|