mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 23:36:32 +00:00
29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
---
|
|
description: "Play a notification sound when the AI agent needs human input or when AI generation is finished"
|
|
alwaysApply: true
|
|
---
|
|
# Sound Notification for Human Attention
|
|
|
|
Play a notification sound whenever human attention is needed. This includes waiting for input AND completing generation.
|
|
|
|
## Commands by OS
|
|
|
|
- **macOS**: `afplay /System/Library/Sounds/Glass.aiff &`
|
|
- **Linux**: `paplay /usr/share/sounds/freedesktop/stereo/bell.oga 2>/dev/null || aplay /usr/share/sounds/freedesktop/stereo/bell.oga 2>/dev/null || echo -e '\a' &`
|
|
- **Windows (PowerShell)**: `[System.Media.SystemSounds]::Exclamation.Play()`
|
|
|
|
Detect the OS from the user's system info or by running `uname -s` if unknown.
|
|
|
|
## When to play the sound
|
|
|
|
- Asking clarifying questions
|
|
- Presenting choices (e.g. via AskQuestion tool)
|
|
- Requesting approval for destructive actions
|
|
- Reporting that you are blocked and need guidance
|
|
- Any situation where the conversation will stall without user response
|
|
- **When AI generation is complete** — play the sound as the very last action before ending your turn, so the user knows the response is ready
|
|
|
|
## When NOT to play the sound
|
|
|
|
- In the middle of executing a multi-step task and just providing a status update (more tool calls will follow)
|