⌨️Hook Timeout
Also known as timeout
How many seconds a hook may run before Claude Code stops it.
Think of it like
It is like an egg timer. When it rings, the job stops.
Example
Emma's lint check sometimes hangs. She sets a timeout of 120 seconds, so a stuck run cannot hold Claude for ten minutes.
Why it matters
A stuck hook stalls the whole session until its timeout ends.
Definition
Example code
json
{
"type": "command",
"command": "./slow-check.sh",
"timeout": 120
}Common mistake
Key takeaways
- 1In seconds. Per hook.
- 2Defaults differ. 600, 30, 60.
- 3Lower on prompts. 30 seconds.