[Feature Request] Add default notification hooks for user input/approval states
Description
Claude Code _really_ should have notification hooks configured by default, or at the very least have a documented example in docs.
The collective lost productivity of users not knowing CC is waiting for input/approval or already finished could easily be ~1M hours (or more)! 🫠
The majority of normie Claude Code users likely don't even know hooks exist.
Including notification hooks is an easy quality-of-life improvement while also demonstrating the utility of a powerful, but underutilized feature.
Basic settings.json example:
{
"hooks": {
"Notification": [{
"matcher": "",
"hooks": [{
"type": "command",
"command": "powershell.exe -c \"[System.Media.SystemSounds]::Exclamation.Play()\""
}]
}],
"Stop": [{
"matcher": "",
"hooks": [{
"type": "command",
"command": "powershell.exe -c \"[System.Media.SystemSounds]::Asterisk.Play()\""
}]
}]
}
}
_It's also possible to use _Windows.UI.Notifications_ directly or through a .ps1 script which would make for a great example, but I haven't fully tested so only posted what I've confirmed works._
Environment Info
- Platform: win32 (Win10-64)
- Terminal: vscode (VS Code Insiders 1.107.0)
- Version: 2.0.50
- Feedback ID: 68c0422f-3cfa-4f56-9b5b-38ff5e12c71c
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗