In short.
This is Anthropic's documentation page on memory stores for Claude Managed Agents. It is written for developers who want agents to keep information across sessions. The main catches are that the feature is in beta and that stores attach with read-write access by default. Memory stores are not eligible for zero data retention except for self-hosted Managed Agents; they are not HIPAA eligible. A memory store is a workspace-scoped collection of text documents, and each document is addressed by a path. When a store is attached to a session, it appears as a directory under /mnt/memory/ that the agent reads and writes with its normal file tools. Every change creates an immutable memory version that can be audited. The page gives API, CLI and SDK examples for creating, seeding, attaching, listing, editing, versioning, redacting, archiving and deleting. It also states hard limits: 100 kB per memory, 10,000 memories per store and 8 stores per session. Nothing was run, and the feature descriptions reflect only what the page says.
Researched and written by an AI model and checked by a second AI model. How it works
The scope is the complete documentation page at [https://platform.claude.com/docs/en/managed-agents/memory.md], including its front matter, notes, warnings and code examples. Pages it links to were not read. These include agent setup, sessions, tools, events, self-hosted sandboxes, dreaming, the API references, data retention and beta headers. Details found only on those pages, such as self-hosted conflict handling, are not assessed. The evidence contains no licence file or pricing source, so the rights to reuse the text and the costs are unknown. Nothing was executed: no API calls, CLI commands or SDK code were run, and all behaviour is as described by the page.
The overview
What this resource is
The resource is a single documentation page titled Using agent memory, published at [https://platform.claude.com/docs/en/managed-agents/memory] and captured from its .md address. It belongs to the Managed Agents section of Anthropic's Claude Platform documentation. It describes memory stores, a feature that lets a Managed Agents agent carry information between sessions, such as user preferences, project conventions, prior mistakes and domain context.
The page's own metadata marks the feature as beta, with the beta header agent-memory-2026-07-22. The code examples use the API version header 2026-10-21. Beyond these identifiers, the page names no author or publication date.
Overall assessment
For a developer already building on Claude Managed Agents, this page looks like a complete and practical reference for the memory feature. It covers the full lifecycle: create, seed, attach, read and edit, audit, archive and delete. It states limits and failure modes openly, including the 400 error from mixing beta headers, what happens when a store is full, and the prompt-injection risk of read-write stores.
The main cautions are that the feature is in beta, so behaviour and headers may change, and that its data handling is restricted. Memory stores are not eligible for zero data retention except for self-hosted Managed Agents; they are not HIPAA eligible. The page documents the feature but gives no benchmarks or evidence of how well agents use memory in practice, and none of the examples were run for this report.
Who it is for
The audience is developers who build or operate agents with Claude Managed Agents and need state that outlives a single session. Examples on the page include per-user preference stores, shared read-only standards or domain knowledge, and per-project or per-team stores that share one agent configuration.
Beginners can follow the plain description of a store as a folder of small text files that the agent can read and write. The page assumes you already have an agent, an environment and a way to create sessions through the API, CLI or an SDK. It does not teach those basics and points to separate pages for them. The page does not say who should avoid the feature, but its data-handling table shows that teams needing HIPAA eligibility cannot use it. Teams needing zero data retention also cannot use it, except in the self-hosted Managed Agents case.
What it lets you do
According to the page, you can create a memory store with a name and description, optionally seed it with documents before any agent runs, and attach it to a session as read_write (the default) or read_only. You can add per-session instructions of up to 4,096 characters, which are shown to the agent together with the store's name and description.
Outside sessions, you can list memories and filter them with path_prefix and depth. path_prefix must end in a slash and matches whole path segments. For depth, omit it or pass 0 to list the whole subtree, or pass 1 to list only the immediate children. You can retrieve, create, update and delete memories, and an update can change the content, rename the path, or both. Updates can carry a content_sha256 precondition so that a concurrent write is not overwritten.
Every change creates an immutable memory version. You can list and retrieve versions, and you can redact a historical version to remove content such as leaked secrets or personal data while keeping the record of who did what and when. Stores can be listed, retrieved, updated, archived or permanently deleted. The page also mentions dreaming sessions, which consolidate fragmented content into a separate new output store. That feature is described on a linked page not covered here.
Using it
What you need
You need access to the Claude API, Claude Platform on AWS, or Claude Models on Google Cloud (Anthropic managed). You also need an API key sent in the x-api-key header and the beta header agent-memory-2026-07-22 on memory store calls. Session endpoints, including attaching a store, still use managed-agents-2026-04-01. Sending both beta values on a memory store request returns a 400 error.
The agent toolset must be enabled when the agent is created, because the agent uses file tools to work with the mounted directory. The page lists supported models, including models in the Fable, Mythos, Opus, Sonnet and Haiku families and claude-mythos-preview. It also says memory stores are in beta on every model, and it does not reconcile the two statements. On Claude Platform on AWS and on Claude Models on Google Cloud (Anthropic managed), sessions on self-hosted environments cannot attach memory stores. The page does not state which languages, SDK versions or CLI versions are needed beyond the examples shown. The examples use cURL, the ant CLI, Python, TypeScript, C#, Go, Java, PHP and Ruby.
How it works
A store is a workspace-scoped collection of text documents. Each memory has an ID and a path such as /preferences/formatting.md. When a store is attached to a session, it is mounted in the sandbox under /mnt/memory/. The directory name comes from the store name: it is lowercased and each run of non-alphanumeric characters becomes a single hyphen, so a store named Demo Memory mounts at /mnt/memory/demo-memory/. The page tells readers to take the exact path from the mount_path field on the session resource rather than building it themselves. A note describing each mount is added to the system prompt automatically. It lists the store's name, path, access mode, description and instructions.
The agent uses ordinary file tools, so its reads and writes show up as agent.tool_use and agent.tool_result events. Access mode is enforced at the filesystem level. A read_only mount rejects writes, and writes anywhere else under /mnt/memory/ fail because the parent directory is mounted read-only. Writes to a read_write mount produce memory versions attributed to the session.
On self-hosted sandboxes, the directory is a local copy, not a live mount. The environment worker downloads each attached store into the sandbox. It reconciles the copy with the store after tool calls, at most once per sync interval (15 seconds by default), and once more when the session ends. The agent's edits change only the local copy until the next sync, so another self-hosted session sees a change only after both workers have synced. Anything a shell command writes under /mnt/memory/ outside the store directories is never synced.
Setup steps
The page sets things up in this order. First, create a store with a name and description; the description is passed to the agent. Second, optionally seed the store with memories using the create-memory call. Third, create a session whose resources array contains an entry of type memory_store with the store ID, an access value and optional instructions. Memory stores can be attached only when the session is created; adding or removing one from a running session is not supported. Up to 8 stores can be attached to one session.
The page also shows declarative creation with ant apply and a YAML file that references a schema at [https://platform.claude.com/schemas/ant/beta/memory_store.json]. It gives no installation steps for the SDKs or CLI and no time estimate.
Worked example from the page
The page creates a store named User Preferences with the description Per-user preferences and project context. It then writes a memory at /preferences/formatting.md with the content Always use tabs, not spaces. A session is created with that store attached as read_write and the instruction User preferences and project context. Check before starting any task. Later, the memory is corrected to say Always use 2-space indentation. The correction uses a content_sha256 precondition, so it applies only if nobody changed the memory after it was read.
Another example renames a memory to /archive/2026_q1_formatting.md, and a seeding example loads /formatting_standards.md with reporting conventions. These appear only as documentation snippets. They were not executed for this report, so their results are unverified here.
Assessment & evidence
Limitations and risks
Stated limits: each memory is capped at 100 kB (about 25k tokens), a store holds at most 10,000 memories, a session can attach at most 8 stores, and per-session instructions are capped at 4,096 characters. When a store reaches 10,000 memories, writes that would create new memories fail, both through the API and through the agent's file writes to unmapped paths. Existing memories stay readable and editable.
Security risk: stores attach with read_write access by default. If the agent handles untrusted input, such as user prompts, fetched web content or third-party tool output, a successful prompt injection could write malicious content into a store. Later sessions would then read that content as trusted memory. The page recommends read_only for reference material, shared lookups and any store the agent does not need to modify.
Other constraints: stores can be attached only at session creation. Archiving is one-way, with no unarchive. There is no dedicated restore endpoint, so rolling back means reading an old version and writing its content back. A version that is the current head of a live memory cannot be redacted, and old versions may be deleted after 30 days. On self-hosted sandboxes, writes sync with a delay, and conflict handling is described on a separate page not covered here. Because the feature is in beta, its headers, behaviour and supported platforms can change.
Reasoning behind the assessment
The assessment rests on how specific the page is. It gives exact header names, endpoints, limits, error conditions and access rules, and it shows the same operations in many languages. The page is also candid about risks: it includes a prompt-injection warning and a beta label, and its data-handling table says memory stores are not eligible for zero data retention except for self-hosted Managed Agents and are not HIPAA eligible. That candour supports treating the page as an honest reference rather than promotional text.
The evidence cannot show whether the examples work as written, how agents behave with large or conflicting memories, how well a store scales near its limits, how self-hosted sync behaves under conflict, or what the feature costs. The page also says memory stores are in beta on every model while listing specific supported models, so the exact support boundary is not resolved by this evidence.
Alternatives and related options
The page contrasts memory stores with the default behaviour, where each Managed Agents session starts with a fresh context and loses its state when it ends. It also contrasts them with file resources: unlike memory stores, file resources are not limited to being attached when the session is created. It points to dreaming sessions for consolidating stores. The page does not compare memory stores with other approaches.
More generally, a team could keep its own database or document store and feed relevant content into prompts or tools. The page does not discuss that approach, and it was not assessed here, so no claim is made about how it compares on cost, control or effort.
Evidence base
The evidence is one captured file containing the full text of the selected page (about 54.7 kB). Its front matter lists the beta status, the beta header, ZDR eligibility, supported models and platform availability notes. The file was captured on 12 November 2026, and the capture is marked as covering the selected page completely. Feature descriptions are based on the selected documentation page; the external-database alternative is an unassessed suggestion. No code was executed, no API calls were made, and no independent source was consulted.
Access & freshness
Costs
The page states no prices, billing quotas or charges for memory storage, for versions, or for the tokens the agent spends reading memory. The cost of using memory stores is therefore unknown from this evidence. Related costs, such as model usage, Managed Agents session usage and any sandbox or self-hosted infrastructure, are also not described. Check Anthropic's pricing pages before relying on the feature.
Rights and data handling
The captured page contains no licence or reuse terms for the documentation text or the code samples, so the rights to copy or redistribute them are unknown from this evidence. The code samples are shown for use against the API, but that is not a stated licence.
On data handling, the page states that memory stores are not eligible for zero data retention, except for self-hosted Managed Agents. They are not eligible for HIPAA, and that HIPAA note applies to all Managed Agents sub-features. The page notes that sessions are stateful resources and that transcripts persist until you delete them. Memory versions are retained for 30 days after they are written, although the recent versions of a live memory are always kept. To keep history longer, the page advises exporting versions through the API. Deleting a store permanently removes its memories and versions.
Freshness
The page is labelled beta and uses identifiers dated 2026-07-22 (the memory beta header), 2026-04-01 (the Managed Agents beta header) and 2026-10-21 (the API version in the examples). The captured text has no last-updated date or changelog. It was captured on 12 November 2026, and nothing in it indicates deprecation. Beta details such as headers and platform support may change, so compare the live page with this summary before building on it.
Suggested actions
If you plan to use memory stores, read the live page together with the linked pages on agent setup, sessions, tools and self-hosted memory. First decide whether your data-handling needs rule out the feature. Memory stores are not eligible for zero data retention except for self-hosted Managed Agents; they are not HIPAA eligible.
If you go ahead, attach stores as read_only unless the agent needs to write. Keep stores small and focused on one purpose, and use separate stores for each user or project. Review memories the agent writes through the list and version endpoints, and plan to prune before a store reaches the 10,000-memory limit. If you need version history beyond 30 days, export it. Check Anthropic's pricing separately, because the page states no costs, and test the examples in a non-production workspace before relying on them.
