Automatically notify the user when long-running terminal commands finish (npm test, docker build, git push, etc.). The agent monitors command execution and sends a desktop notification on completion if the command ran longer than threshold (default 10s). Use when user asks to "notify me when done", "desktop notification when command finishes", "alert when done", or "tell me when this completes". Do NOT use for interactive commands (vim, nano, less, htop), commands that always complete in <5s, or streaming commands (tail -f).
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Automatically notify the user when long-running terminal commands finish (npm test, docker build, git push, etc.). The agent monitors command execution and sends a desktop notification on completion if the command ran longer than threshold (default 10s). Use when user asks to "notify me when done", "desktop notification when command finishes", "alert when done", or "tell me when this completes". Do NOT use for interactive commands (vim, nano, less, htop), commands that always complete in <5s, or streaming commands (tail -f).
triggers
["notify me when done","desktop notification","alert when done","tell me when this completes","notify when finished","ping me when","remind me when","notification on completion","when done"]
echo -e "\a"# ASCII bell characterprintf'\a'# POSIX
BurntToast Module (Windows 10/11)
Import-Module BurntToast
New-BurntToastNotification -Text "Command Complete", "npm test finished in 142s (exit 0)"
macOS Notification
osascript -e 'display notification "npm test finished in 142s" with title "Command Complete"'
terminal-notifier -title "Command Complete" -message "npm test finished in 142s"
Linux Notification (notify-send)
notify-send "Command Complete""npm test finished in 142s"
Error Handling
Error
Cause
Fix
Notification never fires
Command completed under threshold
Expected. Threshold is 10s by default.
Wrong exit code reported
Shell pipeline masking failures
Use $PIPESTATUS in bash, $LASTEXITCODE in PowerShell
Notification module missing
BurntToast/notify-send not installed
Fallback to terminal bell or Write-Host
Silent failure on background job
Job detached from monitor process
Use Wait-Job in PowerShell, wait in bash
Double notification
Parent and child process both fire
Track PID tree, notify only on root process
Desktop notification blocked
System focus assist or DnD mode
Fallback to terminal output with colored exit code
Command output lost
Notification intercepts stdout/stderr
Always tee or capture output before monitoring
Anti-Patterns
Mistake
Fix
Notify for every command
Only if >10s threshold
Breaking pipes
Ensure stdout/stderr passthrough
Breaking exit codes
Pass through original exit code
Notifications for interactive commands
Skip if TUI detected
Notify and then continue working
Wait for notification confirmation or user acknowledgment
Assuming notification system is available
Always have a text-only fallback (Write-Host)
Monitoring subprocess instead of pipeline
Track the entire pipeline PID group
Customization
Setting
Default
Description
Threshold
10s
Minimum command duration to trigger notification
Notification style
Toast
toast, bell, or both
Include exit code
Yes
Show pass/fail in notification
Show elapsed time
Yes
Include duration in notification text
Fallback on failure
Bell
What to do if toast notification fails
Checklist
Notification method matches platform (BurntToast on Windows, terminal-notifier on macOS, notify-send on Linux)
Threshold duration set appropriately (default 10s — not too short, not too long)
Not used for interactive commands (vim, nano, htop, less)
Custom message includes the command name and result (success/fail)
Fallback: terminal bell or Write-Host if notification fails
Sources
Windows Toast API (docs.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications)