← Catalog

@feli-santos/pi-notify-macos

macOS desktop notifications for pi when it needs input, finishes, or fails. Click jumps back to the terminal (Ghostty, Terminal.app, VS Code).

Extension

Install

Install with PiG

pig install npm:@feli-santos/pi-notify-macos

Install with Pi

pi install npm:@feli-santos/pi-notify-macos
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": [
    "./index.ts"
  ]
}

README

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

pi-notify-macos

macOS desktop notifications for the pi coding agent. Click a notification to jump back to where pi is running.

EventNotification
pi asks you something / waits for approvalpi · Needs input with the question
a run finishespi · Done with the last reply
a run failspi · Failed with the error

Nothing is shown while your terminal is the frontmost app.

Install

pi install npm:@feli-santos/pi-notify-macos

Terminals

TerminalBanner fromClick
GhosttyGhostty (native OSC 777)focuses the exact tab
Terminal.appTerminalfocuses the exact tab
VS CodeVisual Studio Codebrings VS Code forward

Enable notifications for the terminal app in System Settings → Notifications. In Ghostty, desktop-notifications must be on (the default).

How it works

Ghostty shows notifications itself, so the extension only writes an escape sequence. Terminal.app and VS Code ignore it, so a tiny bundled helper (notifier.app, source in notifier.swift) posts the banner under that app's identity and stays alive just long enough to report a click. There is no background service.

To rebuild the helper from source: ./build.sh (needs Xcode Command Line Tools).

Limitations

  • macOS 13+ only.
  • The helper uses NSUserNotificationCenter, deprecated by Apple but the only API that can post as another app. A future macOS may break it.
  • If pi reloads while a banner is up, clicking that banner does nothing.

License

MIT