← Catalog

@saburto/pi-notify-fullscreen

Fullscreen notifications for [pi coding agent](https://github.com/earendil-works/pi), powered by [notify-fullscreen](https://github.com/saburto/notify-fullscreen) — a dimmed full-screen overlay that stays until you dismiss it, so you notic…

Package

Install

Install with PiG

pig install npm:@saburto/pi-notify-fullscreen

Install with Pi

pi install npm:@saburto/pi-notify-fullscreen
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 0.1.0 (README.md). PiG does not review it.

pi-notify-fullscreen

Fullscreen notifications for pi coding agent, powered by notify-fullscreen — a dimmed full-screen overlay that stays until you dismiss it, so you notice when pi needs you even from another app.

Demo

▶ Watch the demo (31s)

Requirements

  • Linux with X11/Xwayland ($DISPLAY set)
  • notify-fullscreen installed — make install puts it in ~/.local/bin (found automatically) or set NOTIFY_FULLSCREEN_BIN.

Install

pi install ./extensions/pi-notify-fullscreen          # permanent
pi -e ./extensions/pi-notify-fullscreen/src/index.ts  # one-off session

Usage

Automatic — a fullscreen Pi needs your input (confirm — Deploy to prod?) overlay appears whenever the agent blocks on user interaction, and dismissing it refocuses the terminal.

notify tool (the agent alerts you):

You saidAgent passes
"Tell me when you're done"after_task: true
"Remind me in 10 minutes"delay_seconds: 600
"Deploy to prod?"ask: true → returns "User answered YES/NO."
—message only

Also opacity, font_size, ok_label, no_label, refocus (on by default).

/notify-fullscreen command (you alert yourself):

/notify-fullscreen Coffee's ready
/notify-fullscreen --in 5m Check the oven
/notify-fullscreen --after-task Review the diff
/notify-fullscreen --confirm Dinner at Zoka?     # blocking yes/no
/notify-fullscreen --no-refocus Heads up only

Configuration

VariableDefaultMeaning
NOTIFY_FULLSCREEN_BINautoBinary path override (~/.local/bin, then $PATH)
PI_NOTIFY_ON_PROMPT11 confirm/input/editor prompts · all every prompt · 0 off
PI_NOTIFY_PROMPT_REFOCUS1Refocus terminal after prompt alerts
PI_NOTIFY_ON_SETTLED01 also notify "Pi has finished." whenever pi idles
PI_NOTIFY_COOLDOWN_MS3000Min gap between automatic alerts (not tool/command use)
PI_NOTIFY_FORCE01 skips Linux/$DISPLAY checks (testing)

Notes

  • Scheduled notifications are in-process timers: they die with pi, so in one-shot -p mode they only fire if due before exit.
  • Overlays are modal — pi waits for dismissal. Quitting pi leaves a shown overlay until you click it away.
  • Yes/No answers come back to the agent via the binary's exit code (0/1).

Development

bun run typecheck

Test with a fake binary (no screen takeover):

printf '#!/bin/sh\necho "$*" >> /tmp/fake-notify.log\nsed "s/^/  /" >> /tmp/fake-notify.log\nexit 0\n' > /tmp/fake-notify && chmod +x /tmp/fake-notify

NOTIFY_FULLSCREEN_BIN=/tmp/fake-notify PI_NOTIFY_FORCE=1 \
  pi --no-extensions -e ./extensions/pi-notify-fullscreen/src/index.ts \
  -p "Call the notify tool with message 'hello from test'"