⌨️PermissionRequest Hook
Also known as PermissionRequest
The event just before Claude Code asks you. A hook can answer.
Think of it like
It is like a friend who gets the door for you.
Example
Lucy runs Claude in the background. Her hook approves safe reads in a test folder, so the run does not stall on a prompt.
Why it matters
It lets your own logic stand in for you when you are away from the screen.
Definition
Example code
json
{
"hookSpecificOutput": {
"hookEventName": "PermissionRequest",
"decision": { "behavior": "allow" }
}
}Common mistake
Key takeaways
- 1Before a prompt. When one is due.
- 2Answer for you. Allow or deny.
- 3No exit 2. Use JSON.