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, and Notification
  • None of these trigger when Claude calls AskUserQuestion
  • The Notification hook with idle_prompt only 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:

  1. Add an AskUserQuestion matcher to PreToolUse/PostToolUse hooks, or
  2. 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 &"
          }
        ]
      }
    ]
  }
}

View original on GitHub ↗

This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗