← Catalog

@pi-archimedes/notify

Delayed desktop notifications with circuit breaker for pi-archimedes

Package

Install

Install with PiG

pig install npm:@pi-archimedes/notify

Install with Pi

pi install npm:@pi-archimedes/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": [
    "./src/index.ts"
  ]
}

README

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

@pi-archimedes/notify

Step away without losing track.

Leave the terminal for a coffee. When the work has actually settled — or something needs your decision — notify tells you, once, after a short delay. Press a key and the pending alert is cancelled; there's no inactivity scrutiny, no focus tracking. Keystrokes are the only signal — a terminal answering Pi's own questions (colour palette, device attributes, cell size) is not one.

Install

Standalone:

pi install npm:@pi-archimedes/notify

Or the full suite instead:

pi install npm:pi-archimedes

New to Pi? Pi itself is a one-time global install and needs Node.js ≥ 22.19.0:

npm install -g --ignore-scripts @earendil-works/pi-coding-agent

After installing Pi, choose one installation command above, then cd into your project and run pi. Inside the session, /login signs you in and /model picks a model — the setup section covers the first run. /reload picks the extension up in a running session.

Triggers

  • Settled runs — on Pi's agent_settled event: the run has fully settled (no automatic retry, compaction, or queued continuation still to fire), not merely "a turn ended".
  • Blocking prompts — on ui_prompt_start: any extension prompt is waiting on you (a tabbed ask, a sudo password or command-confirm prompt) — direct or subagent-relayed, since the event fires in the parent process.

The alert fires after a fixed delayMs (30 s by default) from the trigger. It is a delay, not an idle timer: nothing measures how long you've been reading. A keystroke in the terminal cancels a pending alert immediately — and only a keystroke: pi-tui's decoder decides, so protocol traffic that reaches the listener (a device-attributes reply, a cell-size report, focus and mouse sequences) cannot silently swallow an alert nobody dismissed. Anything you actually typed counts, including the characters the decoder has no name for — an accented key or an IME commit on a terminal that doesn't speak the Kitty keyboard protocol. A new agent run cancels pending alerts, whichever kind of run start it was, and a prompt that closes without you typing (say, a confirm dialog that times out and auto-declines) cancels its own timer — so a long-gone question can't ring.

Terminal delivery

EnvironmentProtocolNotes
Windows TerminalPowerShell toasttitle + body
KittyOSC 99title + body
iTerm2OSC 9body only
tmux over any of the aboveDCS passthrough wrapalerts break through tmux
other terminalsOSC 777generic fallback

Delivery depends on your terminal understanding one of these protocols; if it understands none, no alert will appear. Both triggers work standalone — the extension alone gets you the same behaviour.

Settings

~/.pi/agent/settings.json, under archimedes.notify (strict JSON):

SettingTypeDefaultDescription
notifyOnAgentEndbooltrueNotify when a run has fully settled
notifyOnQuestionbooltrueNotify when a blocking prompt needs input
delayMsnumber30000Delay after the trigger before the alert fires

In the suite the settings also appear in /archimedes (where the panel has a control), and on/off is managed by the suite: toggle via /plugins (archimedes.notify.enabled, default on).

← Back to pi-archimedes