osascript to display notifications via AppleScript. On Linux, it uses notify-send.
Overview
The Desktop notifier provides OS-native desktop notifications with support for:- Sound alerts for urgent notifications
- Priority-based notification urgency
- Automatic platform detection (macOS/Linux)
- Session-based notification grouping
- Graceful fallback on unsupported platforms
Desktop notifications do not support click-through URLs natively. On macOS,
osascript’s display notification command lacks URL support. Consider using terminal-notifier if you need click-to-open functionality.Configuration
Add the desktop notifier to youragent-orchestrator.yaml:
Configuration Options
Enable or disable sound alerts for urgent notifications. When enabled, notifications with
urgent priority will play the default system sound.How It Works
Priority Mapping
The plugin maps event priorities to notification behavior:urgent
urgent
- Plays sound alert (if
soundis enabled) - Uses critical urgency on Linux
- Title prefixed with “URGENT”
action
action
- Normal notification
- No sound
- Standard system behavior
info / warning
info / warning
- Silent notification
- Standard system behavior
Notification Format
Title Format:Platform Support
macOS
Usesosascript to execute AppleScript commands:
The plugin automatically escapes special characters in titles and messages to prevent AppleScript injection.
Linux
Usesnotify-send with urgency flags:
Other Platforms
On unsupported platforms (Windows, etc.), the plugin logs a warning and performs no operation:Usage Examples
Basic Configuration
Disable Sound Alerts
Per-Project Override
Event Types
The desktop notifier handles these orchestrator events:- session.started - Agent session has started
- session.completed - Agent session completed successfully
- session.failed - Agent session failed
- pr.created - Pull request created
- pr.updated - Pull request updated
- ci.failed - CI checks failed
- review.requested - Code review requested
- human.required - Human judgment needed
Troubleshooting
No notifications appearing on macOS
No notifications appearing on macOS
Check notification permissions:
- Open System Preferences → Notifications
- Find “Terminal” or your terminal emulator
- Enable “Allow Notifications”
No notifications appearing on Linux
No notifications appearing on Linux
Install notify-send:Ubuntu/Debian:Fedora:Test notify-send:
Sound not playing
Sound not playing
- Verify
sound: truein your config - Check system sound is enabled
- Only
urgentpriority events play sound - Test with system sound settings
Notifications appear but are cut off
Notifications appear but are cut off
This is a platform limitation. Most systems truncate long notification messages. Keep event messages concise (under 200 characters recommended).
Source Code
View the plugin source:- Package:
@composio/ao-plugin-notifier-desktop - Location:
packages/plugins/notifier-desktop/src/index.ts
Related
- Slack Notifier - Send notifications to Slack
- Webhook Notifier - Generic HTTP webhook notifications
- Composio Notifier - Unified notifications via Composio
- Notifier Plugin Interface - Technical interface documentation
