Expand description
IDE bridge protocol.
HTTP server that allows IDE extensions (VS Code, JetBrains, etc.) to communicate with the running agent. The bridge exposes endpoints for sending messages, reading conversation state, and streaming events.
§Protocol
POST /message— send a user message to the agentGET /messages— retrieve conversation historyGET /status— agent status (idle/active, model, session)GET /events— SSE stream of real-time events
The bridge runs on localhost with a random high port. The port is written to a lock file so IDE extensions can discover it.
Structs§
- Bridge
Instance - A discovered running bridge instance.
- Bridge
Message Request - Message request body for POST /message.
- Bridge
State - Bridge server state shared across request handlers.
- Bridge
Status - Status response returned by GET /status.
Functions§
- discover_
bridges - Discover running bridge instances by scanning lock files.
- remove_
lock_ file - Remove the bridge lock file on shutdown.
- write_
lock_ file - Write the bridge lock file so IDE extensions can find us.