Sending Notifications

Send macOS modal notifications from tmux terminal scripts via osascript.

7|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/WarrenZhu050413/Warren-Claude-Code-Plugin-Marketplace --skill sending-notifications
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Sending Notifications
Source: https://github.com/WarrenZhu050413/Warren-Claude-Code-Plugin-Marketplace/tree/main/claude-context-orchestrator/snippets/local/productivity/sending-notifications
Command: npx skills add https://github.com/WarrenZhu050413/Warren-Claude-Code-Plugin-Marketplace --skill sending-notifications

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the frustration of invisible or unreliable notifications, especially when working in terminal environments like tmux, ensuring you never miss important alerts.

Core Features & Use Cases

  • Reliable macOS Notifications: Display dialog-based alerts that work consistently across all environments including tmux sessions.
  • Customizable Alerts: Choose from different icons, titles, and auto-dismiss timers for various notification types.
  • Use Case: When running long scripts or automated tasks, use this Skill to get immediate visual confirmation when jobs complete, errors occur, or important emails arrive - without constantly checking the terminal.

Quick Start

Send a macOS notification with title "Task Complete" and message "Your script finished successfully" using the display dialog method.

Frequently Asked Questions about Sending Notifications

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send notifications from tmux scripts on macOS?

Send notifications from tmux by using osascript with reattach-to-user-namespace to invoke macOS System Events display dialog. This method bypasses tmux's environment isolation, ensuring modal alerts appear reliably without requiring notification permissions.

Why don't my terminal notifications work in tmux?

Terminal notifications often fail in tmux because the session lacks access to the user's display server. Using reattach-to-user-namespace with osascript restores that access, delivering guaranteed modal dialogs that work consistently across all tmux environments.

Can I customize macOS alert dialogs for different notification types?

Yes, macOS System Events display dialog supports customizable titles, messages, and icons. You can configure auto-dismiss timers and visual styles for different alert types—task completion, errors, or event notifications—all triggered reliably from terminal scripts.

Do I need notification permissions to display macOS alerts from scripts?

No, System Events display dialog does not require notification permissions. It creates modal alerts that auto-dismiss after five seconds, making it ideal for long-running scripts and automated workflows that need guaranteed user attention without configuration overhead.

What's the best way to alert users when background tasks complete?

Use modal macOS alerts triggered by osascript through reattach-to-user-namespace for guaranteed visibility in any terminal environment. This method ensures task completion, error states, and important events display reliably without constant terminal monitoring.