In short.
Session event stream is a guide for developers building Claude Managed Agents clients, whose live connections only receive events emitted after they open. It explains how to recover history, distinguish completed turns from tool and budget pauses, answer tool requests and redirect ongoing work. Important constraints include buffered response text, model restrictions on system messages, persistent transcripts and a sandbox lifetime of 30 days from creation. The examples were not executed; reliability, performance and actual costs are not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected documentation page at [https://platform.claude.com/docs/en/managed-agents/events-and-streaming.md], including metadata, all example groups, reconnection, tool responses, budget pauses, interruptions, system-message restrictions and the 30-day sandbox notice. Linked pages are excluded; descriptions of linked features are limited to statements on this page. No commands, code, API behavior, compatibility, performance or costs were tested.
The overview
Identity
Session event stream is an Anthropic documentation guide for the event interface of Claude Managed Agents. The selected source is [https://platform.claude.com/docs/en/managed-agents/events-and-streaming.md], with the page URL [https://platform.claude.com/docs/en/managed-agents/events-and-streaming].
The guide teaches communication with an existing session: sending instructions, receiving progress, answering requests and managing later interactions. It is documentation rather than an installable agent, library or standalone application.
Assessment
The guide is useful for implementing a client that follows an agent through several states rather than expecting one request and one response. Its strongest detail concerns ordering: open the stream before sending work, recover history after reconnecting, and answer blocking tool calls without confusing them with a completed turn.
It covers communication with an existing session in detail, but does not supply a complete application setup. Session creation, permission-policy configuration, detailed pricing and deployment instructions require information beyond this page. Its examples establish documented usage, not demonstrated runtime results.
Users
The main audience is developers connecting an application to Claude Managed Agents, particularly applications that display progress, support follow-up messages or return results from tools running in their own systems.
Beginners receive examples in several languages and explanations of why sessions stop. Experienced developers receive details about event deduplication, processing timestamps, concurrent workflow runs and model-specific validation. Readers still need basic API knowledge and access to an existing session.
Capabilities
The page explains sending user.message events to start or continue work, streaming session and agent events, handling session.error, listing history and filtering history by event type. It also covers user.interrupt for stopping the current turn and following it with a new direction.
For tool integration, it documents user.custom_tool_result responses and user.tool_confirmation decisions with allow or deny results. Custom tool results identify the original call through custom_tool_use_id; confirmations use tool_use_id. A repeated custom tool result is accepted but has no effect.
On supported primary models, system.message appends privileged context for the accompanying turn and subsequent turns. It accepts 1 to 1,000 text items and does not replace the top-level system prompt. These messages reach only the primary thread.
Using it
Requirements
The HTTP examples assume an Anthropic API key and an existing session ID. They use beta=true, anthropic-version: 2026-10-21 and anthropic-beta: managed-agents-2026-04-01. Streaming requests accept text/event-stream, the format used for server-sent updates. Examples are provided for cURL, the ant CLI, Python, TypeScript, C#, Go, Java, PHP and Ruby.
The metadata lists beta availability through the Claude API, Claude Platform on AWS and Claude Models on Google Cloud under Anthropic management. Access eligibility, minimum SDK versions and rate limits are not established on this page.
The explicit system.message support list includes Claude Fable 5.2, 5.1 and 5; Claude Mythos 5.2, 5.1 and 5; Claude Opus 5.5, 5 and 4.8; Claude Sonnet 5.5; and Claude Haiku 5.5. This list is narrower than the page's general model metadata. An unsupported primary model produces model_does_not_support_mid_conversation_system; the API does not validate subagent models for this event.
Mechanism
Events use names such as user.message and agent.message, following a domain.action pattern. A stream delivers only events emitted after it opens. History retrieval is separate. Stream and webhook names can differ: the page contrasts session.status_idle on the stream with session.status_idled in webhooks.
A session.status_idle event means the agent has stopped and is waiting for input. Its stop_reason.type distinguishes end_turn, requires_action and budget_reached. end_turn covers both a completed turn and an interrupted turn. requires_action identifies blocking tool events through stop_reason.event_ids; resolving all blocking events returns the session to running.
The processed_at timestamp records when an event finishes processing. Sent events generally have no populated timestamp while queued. The documented exceptions are user.define_outcome, user.custom_tool_result and user.tool_result, which are processed on receipt.
While requires_action is pending, a system.message must follow a tool result event in the same request. Sending it alone or alongside only a user.message is rejected until the pending tool events are resolved.
Setup
For an existing session, open its event stream before sending the first user.message. Handle agent.message content, session.status_idle and session.error. The page supplies HTTP, CLI and SDK versions of this basic sequence, but does not explain installing the SDKs or creating the agent and session.
For reconnection, open a new stream first, retrieve the full history and collect its event IDs, then consume live events while skipping IDs already seen. Opening the stream first closes the gap in which events could otherwise be missed. Retrieve all history pages rather than assuming one response contains the entire history.
The Python and TypeScript reconnection examples explicitly skip event_start and event_delta preview events before deduplicating persisted events. The TypeScript example notes that these previews have no top-level id. The page directs complex recovery and tool-response loops to SDKs rather than a single shell command.
Example
In the page's README example, a client opens the session stream, sends a user.message asking for a repository README summary, displays text from agent.message events and stops listening when the session becomes idle or reports an error. The source provides code for this sequence; it was not executed.
A tool-enabled application needs additional handling. When agent.custom_tool_use arrives, the application runs its own tool and sends user.custom_tool_result with the call's event ID. The result can be sent immediately without waiting for an idle event. With workflow runs open, waiting for idle can leave the call unanswered while other threads continue working.
For tool confirmations, calls with evaluated_permission set to ask need an allow or deny response. The page's basic confirmation example allows every pending call. An application requiring individual approval decisions needs its own decision logic, including handling requests that arrive while the session remains running.
Assessment & evidence
Limitations
A live stream does not automatically replay history. Also, agent.message text is buffered until the model request producing it completes. Displaying text during generation requires the separate event-delta feature; its implementation is outside this page.
Conversation history and sandbox contents have different lifetimes. History remains until the session is deleted. Sandbox checkpoints preserve files, installed packages and other state for only 30 days from sandbox creation, and activity does not extend that window. Afterward, resuming starts a fresh sandbox and the previous sandbox contents are unrecoverable. The page advises saving important artifacts to outputs before expiry.
Interrupt requests return after being queued, before the interrupt necessarily takes effect. A model response in progress stops immediately, but applying the interrupt can take longer while tools are running. An interrupt does not end open workflow runs, and a running workflow can prevent the expected idle event from appearing.
The page does not establish delivery latency, throughput, event-ordering guarantees beyond the described sequences, service reliability or successful execution of its examples.
Reasoning
The documented behavior implies that a client needs to distinguish receiving updates, waiting for an application response and completing a turn. Treating every idle event as successful completion could leave tool requests unresolved or conceal a budget pause. Likewise, treating a queued interrupt as already applied could give users an inaccurate status.
The guide is particularly useful when an application must survive connection loss or support concurrent workflow runs. Its stream-first recovery sequence addresses missed updates, while its immediate tool-response guidance addresses calls that need attention before the whole session becomes idle. These are conclusions from the documented behavior, not measured results.
Alternatives
The page presents HTTP, CLI and SDK access as different ways to use the same session interface. For complex loops, it recommends SDKs. It also points to event deltas for text during generation and webhooks for major-event notifications without polling.
Those linked features are mentioned but not documented in full here. Their implementation details, trade-offs and costs are not assessed. The page provides no comparison with competing agent services.
Evidence
The evidence consists of the complete selected Session event stream page, including its metadata, explanatory text, examples, retention notice and model-support list. It supports an account of documented API behavior, not claims of observed performance or reliability.
The captured source revision is sha256:049f8152cefdd3f52b1a4474136293f32b17dcd18530b2d1cb7a419a4ea34dbc. Linked reference, pricing, permissions, workflow, output and event-delta pages are outside the supplied evidence. No examples or API calls were executed.
Access & freshness
Costs
Prices, free allowances, billable components and actual operating costs are unknown from this page. It explains a budget mechanism based on the session's tracked list cost, but does not provide rates or establish how that figure relates to a customer's final bill.
No event sent to a budget-paused session resumes its work. The budget must be raised above consumed list cost or removed. Budget-paused workflow runs then resume and emit workflow_run.status_running; a run paused by an interrupt remains paused.
Rights
The page does not supply a documentation license, an example-code license, redistribution permission or terms governing output ownership. Those rights are unknown from the supplied evidence.
The metadata states that Managed Agents are not eligible for zero data retention, except for self-hosted Managed Agents. It also states that sessions are stateful and transcripts persist until deletion. Detailed self-hosted eligibility and broader data-use terms are not provided.
Freshness
The source was captured on 2026-11-14 at 04:13:11.415 UTC. Its metadata labels Managed Agents beta and identifies the managed-agents-2026-04-01 beta header. The HTTP examples use anthropic-version: 2026-10-21.
These dated API identifiers do not establish the page's publication or last-update date. No such date is supplied. Model availability and compatibility beyond the captured documentation are unknown.
Actions
For an integration, retain the session ID, open the stream before sending work and implement separate handling for messages, errors and each idle stop reason. Add stream-first history recovery with event-ID deduplication. Applications using workflow runs should answer custom tool calls and confirmation requests as they arrive rather than waiting for the entire session to become idle.
Before relying on persistent work, arrange to save important sandbox artifacts to outputs within 30 days of sandbox creation. If using system.message, choose a supported primary model and account for the restrictions during pending tool calls.
Obtain the missing session-creation instructions, required SDK version, pricing, detailed permission configuration and applicable data and license terms before committing to an implementation. The supplied page does not resolve those dependencies.
