⌨️Notification Hook
Also known as Notification, permission_prompt, idle_prompt
The event when Claude Code needs you, used for desktop or phone pings.
Think of it like
It is like a phone that buzzes you when the oven is done.
Example
Emma leaves Claude working and makes tea. Her Notification hook pings her laptop when Claude needs a yes.
Why it matters
Claude can sit waiting for an hour while you are away. A ping ends that wait.
Definition
Example code
json
{
"hooks": {
"Notification": [
{ "matcher": "permission_prompt|idle_prompt", "hooks": [{ "type": "command", "command": "notify-send 'Claude needs you'" }] }
]
}
}Common mistake
Key takeaways
- 1When it needs you. Prompts, idle.
- 2Match the kind. permission_prompt.
- 3Output ignored. Pings only.