Skip to main content

Module bridge

Module bridge 

Source
Expand description

Bridge protocol — adapts phi-agent for SDK consumption.

The bridge protocol uses NDJSON over stdio to expose an agent to external language SDKs (Python, Node.js, etc.). The server::ProtocolServer manages sessions, tool registration, and event forwarding.

Modules§

messages
NDJSON protocol message types shared between phi-agent and language SDKs.
server
Protocol server — adapts AgentRuntime to the bridge protocol.