pi-vscode-terminal-notification
v0.1.3
Published
Pi extension for VS Code terminal notifications when Pi finishes a turn.
Downloads
19
Readme
Pi Extension — VS Code Terminal Notify
Pi extension that emits terminal notifications when the coding agent finishes a turn. Paired with the VS Code extension, this enables native macOS notifications when Pi is waiting for input.

What it does
On every agent_end event, this extension:
Extracts the last assistant text response from the conversation.
Truncates it to 200 characters.
Writes an OSC 777
notifyescape sequence to stdout:ESC ] 777 ; notify ; <title> ; <body> BEL
The VS Code extension picks up these sequences from the terminal output stream and shows a native macOS notification when the terminal is not focused.
Installation
1. Install Pi package from npm
pi install pi-vscode-terminal-notification2. Install the VS Code extension
Install the companion VS Code extension to receive and display notifications.
Logging
Logs are written to ~/.pi/pi-vscode-terminal-notify/pi-extension-log.txt.
Attribution
Derived from Armin Ronacher's notify.ts (Apache-2.0).
