add PreToolUse, PostToolUse, UserPromptSubmit hooks to Codex CLI
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,30 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"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": [
|
||||
@@ -24,6 +48,18 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"UserPromptSubmit": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "python3 .codex/hooks/scripts/hooks.py --hook UserPromptSubmit",
|
||||
"timeout": 10,
|
||||
"statusMessage": "Running user prompt submit hook"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user