omp packages

@feli-santos/pi-notify-macos1.0.0

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

feli-santos Published 7 days ago MIT ~310 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-notify-macos

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

Event Notification
pi asks you something / waits for approval pi · Needs input with the question
a run finishes pi · Done with the last reply
a run fails pi · Failed with the error

Nothing is shown while your terminal is the frontmost app.

Install

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

Terminals

Terminal Banner from Click
Ghostty Ghostty (native OSC 777) focuses the exact tab
Terminal.app Terminal focuses the exact tab
VS Code Visual Studio Code brings 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