Anthropic shipped anthropic-sdk-python v2.16.0 on December 1, and the headline feature is easy to miss: “add support for Claude Managed Agents on Amazon Bedrock.” That single line means the agent runtime Anthropic has been building inside its own API is now reachable through AWS’s model hosting layer. The rest of the changelog is a long list of bug fixes to the SDK’s session tooling, and read together they describe something more interesting than a point release. Anthropic is hardening the plumbing that lets a model run code, hold a shell open, and coordinate work across threads, and it is doing so in public, one patch at a time.
The version number tells its own story. This is v2.16.0, the sixteenth minor release on the 2.x line, and the changes are almost entirely to the tools and environments modules rather than the core client. That is where the action is. Anthropic is not shipping new model endpoints here. It is shipping the scaffolding that makes an agent’s tool calls behave like a real program: leases, cancellation, concurrency limits, and cleanup.
The bash tool grows up
The most consequential fix is buried under “kill what the bash tool’s shell started, and save long output to a file.” Before this release, a timeout or cancellation killed the shell but left its background jobs running. Now it kills the shell and everything it spawned. Once a shell has ended, bash refuses further calls until one passes restart. That is a small sentence with large implications: orphaned processes were a real failure mode for anyone running agent-generated commands, and this closes it.
The limits moved too. A command may now run for 295 seconds, up from 120. Output is captured as stdout then stderr, cut after 30,000 characters, with the path of a file holding the remainder. The previous behavior kept the last 100 KiB. The read tool now asks for a view_range above 110,000 bytes, down from 256 KiB. These are not glamorous numbers, but they are the difference between an agent that can run a test suite and one that gets truncated halfway through the log. Anthropic also flagged an API break: use BashSession.start(), because BashSession() now takes other arguments. Anyone calling the constructor directly will find out the hard way.
Concurrency, leases, and the environment worker
The feature line that matters for throughput is max_concurrent_calls on the session tool runner and the environment worker. Set it above 1, or to None for no limit, and calls from different session threads run concurrently. The default stays at one at a time. That default is the tell. Anthropic is adding parallelism as an opt-in, which suggests the team is not yet confident that concurrent tool calls are safe by default, and the surrounding fixes explain why.
The environments changes are about distributed coordination. A work item is now claimed before it is served, and items whose lease was lost are no longer stopped. The poller’s auto_stop sends a force stop. handle_item() logs a failure instead of raising it when the lease is lost, and it raises errors as they are rather than wrapping them in an ExceptionGroup. Memory files upload when the session goes idle, and subagent skills download too. Of two skills sharing a name, the first is kept; previously the last won. These are the semantics of a job queue, not a chat completion. Anthropic is building the scheduler that sits underneath an agent that does work over time.
The tools module gets the same treatment. Only the session tool calls the session is waiting on will run. A running async tool is cancelled when the session no longer accepts its result or the runner stops. The tool timeout is now 325 seconds, up from 150. bash keeps one shell per session thread. A permanent API error from reading the session, such as the 404 for a deleted session, is raised rather than swallowed. Async tools must shield what they await to clean up with anyio.CancelScope(shield=True), and run blocking work with anyio.to_thread.run_sync. The runner also waits at most 150 seconds for a cancelled tool when it stops.
These are the semantics of a job queue, not a chat completion. Anthropic is building the scheduler that sits underneath an agent that does work over time.
The smaller line that matters
Two performance notes round out the release. Streaming now constructs stream events directly instead of reflectively. And structured outputs generate a model’s JSON schema once in transform_schema(). That second one carries a caveat worth reading twice: a model whose JSON schema changes after it is first passed to transform_schema() keeps its first schema, as it already does with parse() and stream(). Pass Model.model_json_schema() instead to regenerate on every call. It is the kind of behavior that silently breaks a dynamic-schema workflow, and the release notes are unusually candid about it.
There is also a new error code, storage_not_ready, which joins the API’s error surface. Anthropic does not explain what triggers it, but the name suggests object storage backing a session or environment is not yet provisioned when a call arrives. Combined with the lease and claim changes, the picture is a system where state lives somewhere other than the request, and the client has to handle the moments when that state is not ready.
What this means for builders
The through-line is that Anthropic is treating the Python SDK as an operating environment for agents, not a thin wrapper around an HTTP API. The 2.16.0 changes assume agents run for minutes, spawn subprocesses, hold leases on shared work, and coordinate across threads. That is a different product from the one the SDK shipped a year ago, and the Managed Agents on Bedrock line is the commercial expression of it: the same runtime, now billable through AWS.
For anyone building on the SDK, the migration risks are concrete. Direct BashSession() construction breaks. Code that relied on the last 100 KiB of output now gets the first 30,000 characters plus a file path. Async tools that do not shield their cleanup will leak. The concurrency default stays at one, so existing behavior is preserved unless you opt in. Anthropic is being careful, which is the right instinct for infrastructure that runs model-generated commands on real machines.
The open question is what storage_not_ready and the environment worker’s lease semantics look like at scale. A single session is easy to reason about. A fleet of sessions claiming work items from a shared queue, with subagents downloading skills and uploading memory on idle, is a distributed system, and distributed systems fail in ways changelogs do not capture. Anthropic has now shipped the primitives. The next few minor versions will show whether the defaults hold up.