Pi Agent Client

The Pi integration connects native Pi TUI sessions to Pontia. You can use the native TUI and the Dashboard with the same underlying conversation.

Requirements

Install these commands before running Pontia initialization:

  • pi
  • tmux for Sessions launched or resumed by Pontia

Confirm that they are available to your user:

pi --version
tmux -V

Configure your model-provider credentials in Pi before starting Sessions.

Install the integration

Select Pi when running:

pontia init

For later installation or repair, run pontia setup pi. This also enables the Pi Client.

Both setup commands verify pi --version and run:

pi install npm:@pontia/pi-client-plugin

The plugin reports native Pi lifecycle and conversation facts to pontiad and accepts supported controls from Pontia.

How Pi Sessions run

You can start pi directly in a terminal in an active registered Workspace. Pontia creates the Session when your first message starts running; this path does not require tmux. Keep the Pi TUI running to continue controlling it from the Dashboard.

When you create or resume a Session through Pontia, it launches Pi in tmux in the selected Workspace. Run Workflow commands such as pontia workflow submit from the Pi Session for the current Workflow Agent Node.

Conversation history is read from Pi’s native data. Keep that data available to browse and resume conversations through Pontia.

Override the Pi command

The default TUI command is pi. To use another executable or wrapper, set it in $PONTIA_HOME/config.toml:

[runtime.pi]
tui_command = "/absolute/path/to/pi"

For a command-scoped override, use PONTIA_PI_TUI_COMMAND. For a persistent service setting, update config.toml and run pontia up.

Diagnose the integration

Pontia’s Pi hook log is:

$PONTIA_HOME/state/pi-hook.log

Also verify that pontia status reports a healthy service and that the Pi plugin remains installed. See Troubleshooting for service logs and common recovery steps.