@agentapps/protocol
v0.3.0
Published
Agent Apps Protocol v2.0 — message schemas, control + session planes, error codes
Maintainers
Readme
@agentapps/protocol
Agent Apps Protocol v2.0 — the standard the whole @agentapps ecosystem implements.
- Envelope:
{ id, type, timestamp, version, sessionId? }shared by both planes. - Control plane (host ↔ controller):
initialize/initializedhandshake with capability negotiation,session_open/session_closetenant sessions, boundedcontroller_health,session_statusandevents_gapnotifications. - Session plane (host ↔ app instance, proxied by the controller): tool calls and listing, health checks, cancellation, streaming (
tool_progress,tool_stream), events, and secret/auth callbacks. - Error model: typed codes with retryability classification.
Transport-agnostic: the same messages run over stdio, HTTP, WebSocket, or gRPC. Bundled transport bindings are included — StdioTransport, HttpTransport, and an in-process pair via createInProcessTransportPair().
