Install
Install with PiG
pig install npm:@fyeeme/pi-notifyInstall with Pi
pi install npm:@fyeeme/pi-notifyPackages 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
Desktop notifications for pi: when the agent finishes a run and is waiting for your input, a native terminal notification pops with the last thing it said.
Packaged from mitsuhiko/agent-stuff extensions/notify.ts (Apache-2.0). The implementation is carried over as-is; single-file index.ts, no build step, no dependencies.
What it does
- OSC 777 notifications — writes
ESC ] 777 ; notify ; title ; body BELto stdout on everyagent_end. Supported terminals: Ghostty, iTerm2, WezTerm, rxvt-unicode. Not supported: Kitty (uses OSC 99), Terminal.app, Windows Terminal, Alacritty. - Body from the last assistant message — rendered through a plain markdown theme (no styling, links keep only their label), stripped of terminal sequences and control characters (an embedded OSC 8 hyperlink would truncate the notification), whitespace collapsed onto one line, truncated to 200 characters with
…. - Title —
πwhen there is a body;Ready for inputwith an empty body when the last assistant message has no text.
Install
pi install npm:@fyeeme/pi-notify
or copy/link this directory into ~/.pi/agent/extensions/ (global) or .pi/extensions/ (project).
Usage
Nothing to configure — installed means active. Run a task, switch away from the terminal, and the notification tells you when pi is waiting.
Development
npm install --ignore-scripts
npm test # vitest
npm run typecheck
License
MIT. Derived from mitsuhiko/agent-stuff extensions/notify.ts (Apache-2.0).