54 lines
1.4 KiB
JSON
54 lines
1.4 KiB
JSON
{
|
|
"hooks": {
|
|
"SessionStart": [
|
|
{
|
|
"matcher": "startup|resume|clear",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python \"$(git rev-parse --show-toplevel)/.codex/hooks/session_start_context.py\"",
|
|
"timeout": 10,
|
|
"statusMessage": "Loading project plan context"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "^Bash$",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python \"$(git rev-parse --show-toplevel)/.codex/hooks/pre_tool_policy.py\"",
|
|
"timeout": 10,
|
|
"statusMessage": "Checking project shell policy"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "^apply_patch$|Edit|Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python \"$(git rev-parse --show-toplevel)/.codex/hooks/pre_tool_policy.py\"",
|
|
"timeout": 10,
|
|
"statusMessage": "Checking project edit policy"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python \"$(git rev-parse --show-toplevel)/.codex/hooks/stop_workspace_check.py\"",
|
|
"timeout": 10,
|
|
"statusMessage": "Checking project completion state"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|