Skip to navigation

Track changes to Band SDKs including the Python SDK and MCP SDK.

Added

  • Python SDK:
    • Provider-Native Activity Reporting — Agno, Claude SDK, Codex, Copilot SDK, and LangGraph adapters now observe and report provider-native tool activity with per-call scope, so each native tool call appears as its own activity entry in the room’s working state.

Changed

  • Python SDK:
    • Breaking: Keyed Activity Reporting — The activity reporting API is now keyed. report_tool_activity, end_tool_activity, and report_memory_activity are replaced by start_tool_activity(tools, key, name), start_memory_activity(tools, key), and end_activity(tools, key). ActivityObserver.update is replaced by start(key, activity) and end(key). TurnActivity.apply is replaced by start(key, activity) and end(key). ExecutionContext.observe_activity is replaced by start_activity and end_activity. execute_custom_tool and invoke_validated_custom_tool take tools= instead of turn=. See the migration guide.
    • Breaking: ACP TurnSink — The ACP ChunkSink callable is replaced by the TurnSink protocol. prompt and prompt_turn take sink= instead of on_chunk=. Update any ChunkSink type annotations and on_chunk= call sites. See the migration guide.

Fixed

  • Python SDK:
    • Activity Ownership with Overlapping Tools — Activity ownership is now preserved when multiple tools execute concurrently in the same turn, so each tool’s activity is reported under its original owner rather than being displaced by a later tool.

Added

  • Python SDK:
    • Antigravity ACP Adapter - Connect Google’s Antigravity agent to Band chat rooms with AntigravityACPAdapter, available through the existing acp extra. Each agent and room uses a separate persistent GEMINI_HOME for native session state. Band tool requests are approved only during the room’s active turn. Native tool requests use approve-once or reject-once according to approval_mode, which defaults to auto_accept. This permission policy does not sandbox the server. A runnable example and setup guide are included.

Changed

  • Python SDK:
    • Codex Session State - CodexSessionState replaces thread_id, room_id, created_at, and has_thread() with room_to_thread and replay_messages. Read a room’s thread with state.room_to_thread.get(room_id). See the 7.1.0 migration guide.

Fixed

  • Python SDK:
    • Codex Session Resume - Codex now records a room’s thread only after its first prompt completes, so a failed or interrupted first prompt is no longer resumed after a restart, and this works with task events turned off. A fresh thread is seeded with the room transcript and roster. Rooms with earlier Codex session records start a fresh, replayed thread after upgrading; later resumption requires the seeded record to be present in loaded startup history.
    • Replay Past Pending Requests - History replay into a new session no longer includes later pending requests ahead of their own turns when a thread reply is missing from the fetched history.
    • Windows ACP Agent Shutdown - Stopping an agent on Windows now ends the ACP agent’s whole process tree, so Agent.stop() no longer hangs on a launcher that exited while its child processes kept running.
    • Antigravity Startup Timeout - The Antigravity startup transition timeout is now 60 seconds instead of the generic ACP adapter’s 30 seconds.

Changed

  • TypeScript SDK:
    • Breaking: Existing Rooms Rejoin by Default - AgentConfig.autoSubscribeExistingRooms now defaults to true. At startup and after a whole-agent reconnect, agents join rooms they already belong to and may answer pending messages there. Pass agentConfig: { autoSubscribeExistingRooms: false } to retain the 0.x behavior, or use roomFilter to select rooms. See Migration below.

Added

  • TypeScript SDK:
    • Working State and Activity - Agents report when a room is processing work, with configurable keep-alive and request timeouts. Activity reporting can distinguish reasoning, tool calls, memory work and permission requests when the adapter or provider supplies those events. Set sessionConfig: { enableWorkingState: false } to disable working-state reporting.
    • Native Adapter Activity - Claude SDK, Codex, ACP, Cursor and OpenCode integrations observe native tool activity. ACP, Cursor and OpenCode also report human-decision activity. Claude SDK observes native compaction; its optional execution reporting forwards provider-emitted tool summaries rather than generating summaries itself.
    • Room and History Helpers - Create rooms with a title, retrieve and rename rooms, enumerate peers across pages, and fetch recent message history for context.
    • Optional Task-Board Tools - Added band_get_board, band_set_board, band_list_tasks, band_create_task, band_get_task and band_update_task. These tools are off by default. Enable them with linkOptions: { capabilities: { tasks: true } } on an account where the platform task board is enabled.
    • Dynamic MCP Stdio Servers - BandMcpStdioServer can start without Band tools, add or remove tools while running, expose a host-provided resource source, and notify clients when tool or resource lists change.

Fixed

  • TypeScript SDK:
    • ACP and A2A Dependency Compatibility - Optional peer ranges now require @agentclientprotocol/sdk >=1.4.0 <2 and @a2a-js/sdk >=0.3.10 <1, preventing installs from selecting incompatible major versions. ACP 2.x and A2A 1.x support is not included.
    • Gemini Default Model - Gemini and Google ADK adapters use gemini-3.1-flash-lite when no model is supplied.

Migration

Install @band-ai/sdk@1.0.0 and review which existing rooms your agent should join before its first start after upgrading. To keep the 0.x room-subscription behavior:

const agent = Agent.create({
adapter,
config,
agentConfig: { autoSubscribeExistingRooms: false },
});

Alternatively, keep the new default and pass roomFilter to join only selected rooms. Review direct ACP and A2A dependency pins and regenerate the application lockfile so they satisfy the peer ranges above.

Added

  • Python SDK:
    • Native OMP Adapter — Connect an OMP agent directly to Band chat rooms with OmpAdapter, including per-room sessions, model selection, room-scoped MCP servers, and questions relayed to the room. The new omp extra installs only the adapter’s Python dependency (psutil); install the OMP CLI separately so the omp command is available.
    • Opt-In Queued Message Batching — Set SessionConfig.consume_all_queued to have an agent handle a backlog of queued messages together in one turn instead of one turn per message, up to max_queued_messages (1–100, default 10). It requires an adapter that declares supports_batch_input, and is not available with one-shot hosting (OneShotInvoker refuses it).
    • Room-Scoped MCP Servers for ACP Agents — ACP client adapters, including the Copilot and Cursor constructors, accept an optional resolve_mcp_servers callback. It receives the room’s workspace directory path once per session setup and returns that room’s external MCP servers, which replace the configured external servers while Band’s own MCP server stays in place.
    • Cloudflare One-Shot Agent Hosting — New example shows how to host a Python Band agent on Cloudflare while keeping its persistent event connection on your own infrastructure.
    • Antigravity Tool Recognition in ACP — The ACP base now recognizes Antigravity’s tool calls, so Band replies appear under the correct tool name with a single copy of their arguments.
    • Live Room Activity Detail — Rooms can now show what an agent is doing, such as reasoning, a named tool call, or waiting on a person, including Band tools and native Claude SDK, Codex, and OMP tools, approvals, and compaction.
  • Band Bridge:
    • HTTP Bridge Bearer Token — HTTP bridge targets can now be configured with a bearer_token, which the bridge sends as an Authorization: Bearer header on every forwarded request.

Python SDK: Loopback Band MCP Server Now Requires a Bearer Token

The loopback Band MCP server now refuses every request without a valid Authorization: Bearer <token> header, so MCP clients you wire up yourself must send it.

BeforeAfter
Requests to room mounts, multi-room endpoint, streamable HTTP, SSE, and SSE message POSTAccepted with no credentialsHTTP 401 without a valid bearer token
WebSocket upgradeAcceptedRejected; the client sees an HTTP 403 handshake rejection
/healthzOpenOpen (unchanged)
LocalMCPServer(...)auth_token not neededauth_token=... is required; LocalMCPServer.auth_headers returns the headers to send
create_band_mcp_backend(settings, ...)auth_token not neededauth_token=... is required (keyword-only)
BandMCPBackendendpoint() onlyendpoint() (unchanged) plus new headers
Claude SDK Band MCP headerNoneAuthorization: Bearer ${BAND_MCP_TOKEN}, with the token passed through the CLI environment
ClaudeCLIOptions.envCould set BAND_MCP_TOKENRejects BAND_MCP_TOKEN
OpenCode and Letta MCP registrationNo headersRegistered with the token headers

Python SDK: Per-Room Session State and ACP Session Seeding

Claude SDK, Copilot SDK, and OpenCode now track one resumable session per room, and an ACP session belongs to a room only once its seeding prompt completes. Session records written by earlier versions are not resumed.

BeforeAfter
CopilotSDKSessionState.session_idOne session idRemoved; read the room’s session from room_to_session
ClaudeSDKSessionState.session_idOne session idReplaced by room_to_session, keyed by room id
Claude SDK resume recordsNo room idRequire claude_sdk_room_id
OpencodeSessionStatesession_id, mcp_server_name, room_id, created_atroom_to_session and session_registrations
OpenCode resume record keyopencode_session_idopencode_seeded_session_id
Emit.TASK_EVENTS on OpenCodeControlled whether the session was recordedStill accepted, no longer affects OpenCode
ACPClientAdapter._spawn_env_spawn_env(self)_spawn_env(self, room_id), so each room’s process can get its own environment
ACP prompt ending with stopReason: refusalNo refusal-specific handlingFails the turn with one room-visible failure carrying the agent’s text, whatever emit is set to, unless the turn already replied or declined; the agent process stays up
ACP session whose seeding prompt is refused, stopped, cancelled, raises, or times outCould become the room’s sessionDropped with no resume state; the next turn, recovery, or restart starts a new session with the room’s full context and transcript

Band Bridge: Configuration Rejects Unknown Keys

This applies to the Band Bridge app shipped with this release, not the band-sdk package.

Bridge configuration models now reject unknown keys. A bridge config with a misspelled or stray key that was previously ignored now fails at startup with a validation error that does not echo the input. Remove or correct any unrecognized keys before upgrading.

Changed

  • Python SDK:
    • Live NOOA Thoughts — NOOA thoughts now post in the room as each model call completes, instead of after the whole turn ends.
    • Mention Guidance for Agents — Agents are now told consistently to use exact roster handles and to avoid repeating recipient labels in message content.
    • WebSocket Heartbeat Handling — WebSocket heartbeat timeouts are now handled by the Phoenix transport, which now requires >=0.4.1,<0.5, and the SDK’s band-sdk-core dependency moves from 2.8.0 to 6.1.1.

Fixed

  • Python SDK:
    • Working Indicator Lifetime — The working indicator now stays on while provider work continues behind a pending approval, and no longer turns on for housekeeping turns that show nothing to users.
    • OpenCode Turn Overlap — A new OpenCode message no longer starts a turn while the previous turn is still finishing its reply.
    • OpenCode Session Resume — OpenCode no longer resumes a session whose first prompt failed, and now replays the room’s history into a fresh session.
    • Claude SDK Session Resume — The Claude SDK adapter no longer resumes a session whose seeding turn errored, and replays the room’s history when it needs to.
    • Copilot SDK Session Resume — The Copilot SDK adapter no longer resumes a session whose first prompt failed, and a fresh session no longer overwrites a room’s earlier native state.
    • Shutdown Retries — Retrying a shutdown no longer cancels an accepted turn’s cleanup a second time or reports retirement before it finishes.
    • OMP Stalled Turns — Native OMP turns no longer stay open indefinitely after a lost completion; they now fail with OmpCompletionTimeout.
    • OMP Process Cleanup — OMP cleanup no longer risks killing an unrelated process that reused a process ID, and overlapping permission prompts no longer clear each other’s activity.
    • Tool Call Redaction — Tool-call events with file content containing lone surrogate characters are now redacted and delivered instead of being lost.
    • Oversized Integer Tool Payloads — A Band tool call with an oversized integer payload is now refused under the tool’s own name instead of failing the turn.
  • Band Bridge:
    • Bridge Rehydration Cancellation — Cancelling one room’s startup during backlog rehydration no longer shuts down the whole bridge.

Security

  • Python SDK:
    • Loopback Band MCP Server Authentication — See the bearer-token breaking change above.

Fixed

  • Python SDK:
    • Agents Staying Offline After a Clean WebSocket Close — A live agent now reconnects and catches up on its rooms after the platform closes its connection normally, instead of staying offline until restarted. An agent superseded by a newer session with the same key still stops for good.

Security

  • Python SDK:
    • WebSocket Credential Exposure — Connection diagnostics and retained error details no longer expose credentials after a connection attempt.

Added

  • Python SDK:
    • Shared Resource Cleanup — Register async callbacks with adapter.add_cleanup(client.aclose) before startup. The Agent or OneShotInvoker that runs the adapter calls them in reverse registration order when it stops, after in-progress turns and framework teardown have finished. If a callback fails, stopping again retries only the failed callbacks; callbacks that already succeeded do not run again.
    • Shared-Tool Examples — Runnable examples demonstrate a shared HTTP client, a persistent SQLite connection, and a temporary draft workspace with cleanup run by the agent. After registered resources have been disposed, create fresh resources and a new adapter and agent. Resources shared across adapters stay your application’s to close.
    • Stopped-Room Polling — Set SessionConfig.stopped_resync_seconds or STOPPED_RESYNC_SECONDS to reduce polling for paused rooms without slowing active rooms. Unset uses the base interval; longer values can delay discovery of a missed resume by that interval.
    • Turn Wind-Down Timeout — Claude SDK and ACP adapters, including OMP (oh-my-pi), Cursor, and Copilot ACP, expose turn_settle_timeout_s, how long a room’s unfinished turn has to wind down before it is cancelled when the agent leaves the room or shuts down.