← Catalog

@pi-unipi/app-bridge

Live bridge between a pi TUI session and the UniPi phone app — streaming chat, prompts, steering and dialogs from the phone

Extension

Install

Install with PiG

pig install npm:@pi-unipi/app-bridge

Install with Pi

pi install npm:@pi-unipi/app-bridge
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.

{
  "skills": [],
  "themes": [],
  "prompts": [],
  "extensions": [
    "./index.ts"
  ]
}

README

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

@pi-unipi/app-bridge

Lets the UniPi phone app mirror a pi session that runs in a herdr pane, live, and talk to it: what you type on the phone shows in the TUI as a normal message, and everything pi streams in the TUI streams on the phone.

  • TUI mode only. Each pi listens on ~/.unipi/bridge/<pid>.sock (owner-only) and writes ~/.unipi/bridge/<pid>.json (session file, cwd, herdr pane), so unipi-host can find the pi behind a herdr pane.
  • Sending while pi works steers it (like Enter in the TUI); the app can also queue a follow-up.
  • Dialogs (ctx.ui.select / confirm / input / editor) and ask_user can be answered from the phone; the first answer wins and the other side closes.
  • /model, /thinking and /compact are mapped to bridge calls.
  • Off switch: UNIPI_APP_BRIDGE=0. Subagent children never open a bridge.

Protocol: unipi-app/docs/m5/PROTOCOL.md.