Learning resourcesReviewed · Anthropic

Claude Managed Agents: Session operations

Session operations is a guide for developers managing Claude Managed Agents sessions, where idle status can still leave configuration changes blocked by open workflow runs. It explains retrieval, pagination, tool updates, budgets, archiving and permanent deletion through API, CLI and SDK examples.

Researched 12 Nov 2026

In short.

Session operations is a reference guide for developers administering Claude Managed Agents sessions, where an idle agent can still have an open workflow run that blocks configuration updates. It documents session states, retrieval, pagination, session-local tool changes, budget adjustments, archiving and deletion. Important constraints include replacement of entire tool arrays, irreversible budget removal and permanent loss of session-generated files on deletion. The feature is labeled beta. The metadata states that Managed Agents is not eligible for Zero Data Retention, except for self-hosted Managed Agents, and that session transcripts persist until you delete them. Prices, SDK package versions and runtime reliability are not established. No examples were executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete documentation page at [https://platform.claude.com/docs/en/managed-agents/session-operations.md], including feature metadata, session statuses, configuration and budget updates, retrieval, pagination, archiving, deletion and all supplied client examples. It includes the beta and Zero Data Retention notices, open-workflow-run constraints and deletion effects. Linked pages are excluded. Runtime behavior, integration success, SDK compatibility, prices and performance were not assessed; nothing was executed.

The overview

identity

This is Anthropic's Session operations documentation at [https://platform.claude.com/docs/en/managed-agents/session-operations.md]. It covers administering sessions that already exist. Session creation and sending initial work are addressed by a linked page whose contents are outside this resource.

The metadata labels Managed Agents as beta on the Claude API, Claude Platform on AWS and Claude Models on Google Cloud under Anthropic management. It also lists supported model identifiers, without comparing their capabilities or performance.

assessment

The guide is useful for implementing session administration because it explains failure conditions and irreversible changes alongside request examples. Its strongest material concerns open workflow runs, replacement of configuration arrays, budget removal and the difference between preserving history and deleting it.

It is a focused reference rather than a complete introduction to Managed Agents. Account onboarding, session creation, full workflow completion detection and production reliability are not established by this page.

users

The most direct audience is developers building session controls into applications, administrative interfaces or background automation. It is particularly relevant when changing tool permissions, managing spending limits or retaining and deleting agent history.

Beginners can use the status explanations to understand session behavior, but the examples assume familiarity with API keys, session identifiers and API requests or a language SDK. Teams with strict retention requirements also need to examine the documented transcript persistence and Zero Data Retention limitation.

capabilities

The page documents retrieving one session, listing sessions, updating permitted agent configuration, changing or removing an existing budget, archiving and deleting. Examples cover cURL, the ant CLI, Python, TypeScript, C#, Go, Java, PHP and Ruby.

Listing supports a page-size limit and forward or backward navigation through next_page and prev_page cursors, passed back as page. Results default to newest first by creation time. A cursor retains its original sort order: changing order, or changing a created_at filter to exclude the cursor position, returns a 400 error. Other filters and the limit can change between requests.

Pagination interfaces differ across clients. The CLI normally follows pages automatically; its raw format exposes one page envelope. The C# example uses the raw response to obtain cursors, while Ruby exposes the next-page cursor as next_page_.

Using it

requirements

The operations assume an existing session. The cURL examples use an Anthropic API key and a session identifier, with anthropic-version: 2026-10-21 and anthropic-beta: managed-agents-2026-04-01. JSON updates also specify content-type: application/json.

The page does not establish account eligibility, SDK package versions, installation requirements, quotas or access in particular regions. Configuration updates require an idle session with every workflow run ended; being idle alone is insufficient.

mechanism

A session can be idle while waiting for input, running while executing, rescheduling while automatically retrying a transient error, or terminated after an unrecoverable error or archiving. Completing work leaves a session idle. An open workflow run can remain present during idle status.

Only agent.tools and agent.mcp_servers can change after creation. These changes affect the session without modifying the underlying agent or requiring a new agent version. Each supplied array replaces its previous value in full. To retain existing entries, retrieve the session, modify the relevant array and submit the complete intended array.

Updates can include tool permission policies and web domain restrictions. Changed allowed_domains and blocked_domains apply for the remainder of the session.

setup

For an existing session, the documented starting point is retrieval through GET /v1/sessions/$SESSION_ID or the corresponding SDK method. Inspect its status and current configuration before preparing an update. The page provides request examples but does not explain initial client installation or session creation.

If the session is running, the documented preparation is to send user.interrupt by itself and wait for idle. Any open workflow runs must also end: interrupting the session does not end them. The page recommends asking the agent to stop its runs through user.message, or waiting for every run to finish.

example

The configuration example adds a Linear MCP connection. Its tools array contains agent_toolset_20260401 and an mcp_toolset referencing a server named linear. Its mcp_servers array defines that server at [https://mcp.linear.app/sse].

For a session that already has other tools or servers, preserving those entries requires retrieving and merging the arrays before submission. Copying the example arrays directly would replace the existing values. The page does not establish Linear authorization requirements or demonstrate a successful tool call, and the example was not executed.

Assessment & evidence

limitations

Model, system and skills settings cannot be changed through mid-session configuration updates. Different values require overrides when creating a session. The model's inference_geo setting is also fixed after creation. On supported models, a system.message event can append system-level guidance while the configured system field remains fixed.

Configuration updates return a 400 error while any workflow run remains open, including during idle status. Archive and delete requests with open runs have less predictable documented outcomes: they may return 400 or succeed. Successful archiving can end a run; successful deletion produces no workflow_run event reporting the runs' end.

Deletion permanently removes the session record, events, sandbox and session-generated files. Memory stores, vaults, skills, environments, agents and Files API uploads are independent and remain unaffected. A final output file can take several seconds after idle to appear in the session file list.

reasoning

The distinction between session status and workflow-run completion is central to using these operations correctly. Checking idle alone can lead an application to attempt a rejected configuration update or assume work has finished prematurely.

The replacement-array rule and irreversible budget removal also affect application design. An administration interface should make the complete intended tool configuration and the consequences of removing a budget clear before submitting a change.

alternatives

Within this API, archiving is the documented option for preventing new events while preserving history. Deleting is the option for permanently removing session resources. Session-local updates serve changes to tools and MCP servers; creation-time overrides serve different model, system or skills settings.

The API, CLI and language SDK examples offer different ways to perform the same operations. The page provides no comparison with other agent services, so comparative cost, reliability and suitability remain unknown.

evidence

The evidence is the complete Session operations documentation page at [https://platform.claude.com/docs/en/managed-agents/session-operations.md], including its metadata, operational explanations and request examples. It supports statements about documented behavior.

Linked pages were excluded, so their explanations of session creation, workflow completion, budgets, files and data residency are not established here. No commands or SDK examples were executed, and no independent performance or reliability results are available.

Access & freshness

costs

Prices and expected operating costs are unknown from this page. It does not define which charges count toward list cost, instead referring to separate budget documentation.

A session with an existing budget accepts a replacement max_list_cost or budget: null to remove the cap. A replacement can raise or lower the current cap, but must exceed the session's consumed list cost. Either change automatically resumes work paused at the cap, allowing further consumption.

Removing a budget is irreversible for that session. A budget cannot be added to a session created without one, or restored after removal.

rights

The metadata states that Managed Agents is not eligible for Zero Data Retention, except for self-hosted Managed Agents. Sessions are stateful, and transcripts persist until deletion. The page does not explain the self-hosted exception or provide complete data-processing terms.

No documentation or code-example license, redistribution permission, output ownership terms or complete service terms are supplied. Those rights remain unknown.

freshness

The documentation snapshot was captured on 12 November 2026 at 20:09:47.769 UTC. This is a capture timestamp; the page supplies no publication or last-updated date.

The feature is labeled beta. Examples use API version 2026-10-21 and beta header managed-agents-2026-04-01. SDK package versions, release history and compatibility beyond the documented examples are unknown.

actions

Before implementing these operations, establish API access and the client version you will use. Retrieve the session's current configuration, confirm its status and establish whether workflow runs remain open. Preserve existing array entries when changing tools or MCP servers.

If a session needs a budget, arrange it at creation because this page says it cannot be added later. Account for automatic resumption when changing or removing a cap, and treat removal as permanent.

Before archiving or deleting, have the agent stop its runs or wait for them to end, then confirm idle status. Before deletion, verify that expected output files appear in the session file list and download anything needed. Choose archiving when preserving session history is the intended outcome.

Evidence for this report

selected-page.txtselected · checked 2026-11-12