hooks.json
Codex lifecycle hook configuration
| Event | Matcher | Type | Command | Timeout | Async |
|---|---|---|---|---|---|
PreToolUse | ^Bash$ | command | $(git rev- | 30 | — |
Source
{
"hooks": {
"PreToolUse": [
{
"matcher": "^Bash$",
"hooks": [
{
"type": "command",
"command": "$(git rev-parse --show-toplevel)/.codex/hooks/deny-dangerous-shell.sh",
"timeout": 30,
"statusMessage": "Checking shell safety policy"
}
]
}
]
}
}Revision History
CreatedUpdated