Claude Code expects hooks as a record keyed by event name, not an array. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
225 B
JSON
16 lines
225 B
JSON
{
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "./hooks/error-capture.sh"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|