← Catalog

@bacnh85/pi-notify

Desktop notifications and sounds for Pi — fires on task completion, errors, and when the agent asks a question. Cross-platform (macOS notification center, Linux libnotify, Windows toast, plus OSC 777/99 terminal protocols). Inspired by Ope…

Package

Install

Install with PiG

pig install npm:@bacnh85/pi-notify

Install with Pi

pi install npm:@bacnh85/pi-notify
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./extensions/index.js"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.9 (README.md). PiG does not review it.

pi-notify

Desktop notifications and sounds for Pi.

Fires when the agent finishes a turn, errors, or asks the user a question. Cross-platform, zero dependencies. Inspired by OpenCode's attention feature.

Install

pi install npm:@bacnh85/pi-notify

Backends

PlatformNotificationSound
macOSosascript (Notification Center)afplay (Glass.aiff)
Linuxnotify-send (libnotify)paplay (freedesktop complete.oga)
WindowsPowerShell toast (NotifyIcon)[console]::beep
TerminalOSC 777 (Ghostty/iTerm2/WezTerm/rxvt) + OSC 99 (Kitty)bell

Falls back to terminal OSC protocols when no desktop binary is available.

Configuration

Add a notify object to .pi/settings.json (project), ~/.pi/agent/settings.json (global; PI_CODING_AGENT_DIR overrides), or ~/.pi/agents/settings.json — the first settings.json containing a notify object wins (files without one are skipped):

{
  "notify": {
    "onComplete": true,
    "onError": true,
    "onQuestion": true,
    "sound": true,
    "volume": 0.4
  }
}

All keys default to true (sound defaults on, volume 0.4). Omit the object entirely to get all notifications.

volume only applies on Linux (paplay --volume, range 0–1). macOS (afplay) has no volume flag and ignores it — adjust the system volume; Windows uses a fixed beep.

Flag

FlagDescription
--no-notifyDisable all notifications and sounds for this run

Events

EventWhen
onCompleteAgent finishes a full turn (agent_settled)
onErrorA tool result is flagged as an error (deduped per turn)
onQuestionPi blocks on a user-facing prompt (ui_prompt_start) — e.g. ask_user_question

Why

Long-running agent tasks finish silently. A desktop notification when the work is done — or when something breaks — lets you context-switch away without polling.

License

MIT