Architecture

RPC Protocol

Pi RPC protocol implementation details
Properties2
Iconi-lucide-cable
Order50

Pi Island communicates with Pi using JSON-RPC over stdin/stdout.

Commands

  • new_session - Create a new session
  • switch_session - Switch to existing session
  • get_messages - Retrieve conversation history
  • send_message - Send a user message

Events

  • assistant_text - Streaming text response
  • thinking_start/delta/end - Reasoning output
  • tool_call_start/end - Tool execution
  • message_complete - Response finished