stdiobus v2.1.1 #1
morozow
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The SDK provides typed JSON-RPC messaging, session routing, streaming aggregation, and cross-platform backend support for AI agent communication.
Highlights
agent_message_chunknotifications are aggregated intoresult["text"]automaticallystop()fails all pending requests withTransportError, no silent dropson_notification()for subscribing to notifications separately from raw messagesSince 1.0.0
Key evolution across
1.0.0→2.0.0→2.1.1:SubprocessBackendadded — spawnsstdio_busbinary via stdin/stdout NDJSON pipes, now the default backendstdio_bus/helloprotocol negotiation withhello()andconnect()_ext.identity,_ext.audit,agentIdrouting in JSON-RPC messagesBusConfig/PoolConfig/LimitsConfigdataclasses, no config files neededFull history: CHANGELOG.md
What's Changed in 2.1.1
Added
agent_message_chunknotification aggregation intoresult.text(ACP protocol parity with Rust SDK)stop()fails all pending requests withTransportError("Bus is shutting down")on_notification()handler — subscribe to notifications separately from raw messages_PendingRequestinternal class — tracks pending requests with streaming chunk aggregationChanged
_handle_messagenow dispatches notifications separately and aggregates streaming chunksstop()now cancels all in-flight requests before stopping backend_on_backend_closed) uses_PendingRequestwrapperCompatibility
stdio_busbinary in PATH, or Dockercffifor native backendBackends
subprocessstdio_busbinary in PATH (default)--config-fdpipenativelibstdio_bus.abuilt with cffidockerAuto-selection order: subprocess → native → docker (Unix), subprocess → docker (Windows).
Install
With native backend support:
Quick Start
Known Limitations
TransportError. Create a new instance to reconnect.stdoutfrom the bus process must carry NDJSON protocol messages only.Links
This discussion was created from the release stdiobus v2.1.1.
Beta Was this translation helpful? Give feedback.
All reactions