Add hook support for AskUserQuestion tool
Resolved 💬 7 comments Opened Dec 31, 2025 by olgkv Closed Mar 15, 2026
I'd like to play a sound notification when Claude uses the AskUserQuestion tool to ask me a question and wait for my response.
Current Behavior:
- The hooks system supports events like
PreToolUse,PostToolUse,PermissionRequest, andNotification - None of these trigger when Claude calls
AskUserQuestion - The
Notificationhook withidle_promptonly triggers after 60+ seconds, which is too long for immediate feedback
Requested Feature:
Add a hook event that triggers specifically when AskUserQuestion is called, so users can run commands (like playing a sound) to get notified immediately.
Use Case:
When working and Claude asks me a question, I want an audio notification so I know Claude is waiting for my input, especially if I'm not actively watching the terminal.
Suggested Implementation:
Either:
- Add an
AskUserQuestionmatcher toPreToolUse/PostToolUsehooks, or - Add a new notification matcher like
user_question_prompt
Example desired configuration:
{
"hooks": {
"PreToolUse": [
{
"tool": "AskUserQuestion",
"hooks": [
{
"type": "command",
"command": "afplay /System/Library/Sounds/Glass.aiff &"
}
]
}
]
}
}This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗