In short.
This guide shows developers how to give Claude applications memory across conversations, but the application must store the data and enforce safe access. Claude requests operations under /memories, and application code executes them and returns results. The page covers command behavior, SDK helpers, security and integration with context management. Several demonstration backends use temporary storage and omit path validation. Prices, measured benefits and runtime reliability are not established.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete captured documentation at [https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool.md], including inline examples, command specifications, security guidance and availability and data-handling notices. The original capture is selected-page.txt, source revision sha256:0bc0ce5bc27632431ef4720e966752777d90c6e53d4ea81b36107eb6ee725ffa, captured at 2026-11-24T22:05:58.348Z. Linked documentation, engineering articles, SDK repositories, licences and service terms are excluded. Examples were not executed; runtime security, persistence, compatibility, performance and costs remain unverified.
The overview
Identity
Anthropic's Memory tool documentation is an implementation guide for application developers [https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool.md]. It describes an Anthropic-provided tool interface through which Claude requests file operations against storage controlled by your application. The resource is documentation for building an integration, rather than a hosted memory store.
Assessment
The guide is useful when an agent needs to retain project progress, preferences or accumulated knowledge between conversations. It provides enough interface detail to plan an implementation, including command inputs, expected results and error behavior. Its main adoption burden is operational: enabling the tool does not supply durable storage, secure file handling or a retention policy.
Users
The intended audience includes developers building customer-service agents, assistants that remember preferences and coding agents that resume work across sessions. Beginners need familiarity with API requests, application storage and tool calls. Experienced developers get command-level details and SDK integration options. Configuration for Claude's consumer chat interface is not covered.
Capabilities
The interface defines six commands. view lists directories or reads files, optionally by line range. create writes a file. str_replace changes matching text. insert adds text after a specified line. delete removes a file or directory tree. rename moves or renames a file or directory.
The guide also specifies directory listings, numbered text output, error results and protections against deleting or renaming the memory root. It notes that Claude may request image views and ranged reads of long text, which handlers need to anticipate.
Using it
Requirements
An implementation needs access to a supported Claude endpoint, a handler for memory commands and storage that remains available between conversations. The documented storage options include local files, databases, cloud storage and encrypted files. Later conversations must use the same memory tool configuration and reconnect to the same underlying store.
Every path must remain inside the designated memory boundary after canonical resolution. Sensitive-data filtering, file-size limits and expiration are application responsibilities. The page's statement that Claude usually refuses to store sensitive information is not a guarantee that such information cannot be written.
Mechanism
The /memories prefix is a logical location that your handler maps to actual storage, such as a per-user directory or database keys. Claude returns a tool_use block requesting an operation. Your application executes it, returns a matching tool_result block and sends the continued conversation back to Claude.
The page says enabling the tool automatically adds an instruction for Claude to inspect memory before starting work. Information then enters the active conversation when Claude reads it, rather than requiring every stored file to be loaded upfront. Stored memory remains in your application between sessions.
Setup
Add {"type":"memory_20250818","name":"memory"} to the request's tools array. The name must be memory, and no custom input schema is required. Implement the six commands and the tool-use loop, or use the documented SDK helpers. The memory tool itself does not require a beta header.
Python and TypeScript provide BetaLocalFilesystemMemoryTool for local storage. The page also describes helper interfaces for custom backends in Python, TypeScript, C# and Java. Go and Ruby demonstrate manual loops, while PHP wraps a handler in BetaRunnableTool. Helper and runner interfaces retain beta naming or namespaces despite the memory feature's stable status.
Example
In the customer-service walkthrough, Claude lists /memories, reads customer_service_guidelines.xml and uses that context when responding to a ticket request. A separate Python example configures storage beneath ./memory and asks Claude to remember that Acme Corp prefers email follow-ups. These are illustrative interactions; they do not establish successful persistence or improved response quality in a deployed application.
Assessment & evidence
Limitations
The Go, PHP and Ruby demonstrations use in-memory stores rather than durable backends, and the page explicitly says they omit production path validation. They should not be treated as complete production implementations. The guide also notes a contract difference: Claude's tool description permits create to overwrite, while the reference behavior returns an error for an existing file. For str_replace, the documented reference behavior rejects ambiguous repeated matches.
The page marks the feature eligible for zero data retention, excluding Covered Models, and eligible for HIPAA readiness. These notices do not establish the properties of a particular deployment; application memory still requires its own retention controls. Recall accuracy, security effectiveness, latency and persistence reliability were not assessed through execution.
Reasoning
The design suits teams that want a standard memory interface while retaining control over storage and deletion. That flexibility comes with responsibility for validating operations and maintaining useful records. Reading information only when needed may reduce upfront context loading, but the page provides no measurements of that benefit. An automatic directory check also does not establish that every relevant fact will be stored or recalled.
Alternatives
For managing a growing conversation, the page describes context editing as clearing selected tool results and compaction as summarizing older conversation context on the server. These address active context size and are presented as complementary to persistent memory. The guide suggests combining compaction with memory for long-running agents. It does not compare competing memory libraries or services, and the linked explanations were not assessed.
Evidence
The evidence is Anthropic's complete Memory tool documentation page, including request examples, SDK snippets, command contracts, security guidance and availability notices. It supports an explanation of the documented interface and implementation responsibilities. It supplies no execution logs, independent evaluations or benchmark results. No examples were executed.
Access & freshness
Costs
The page supplies no API prices, separate memory-tool fee, storage prices or cost measurements. Total cost is unknown. The documented loop sends memory results back to Claude, so the number of operations and volume of retrieved text are relevant budgeting variables, alongside storage and implementation work. The page does not quantify any token or cost savings.
Rights
The supplied page does not state a reuse licence for its documentation or sample code. Commercial-use and redistribution permissions are unknown from this evidence. Licences in linked SDK repositories and applicable service terms are outside the supplied material. Control over memory storage does not itself establish rights to reuse the documentation or examples.
Freshness
The documentation was captured on 24 November 2026. It labels the memory feature stable, uses tool type memory_20250818 and specifies anthropic-version 2026-10-21 in its HTTP example. SDK package versions and a publication or last-updated date are not supplied.
Compatibility wording differs within the page: the body says Claude 4 and later, while the availability footer says every model. Metadata lists supported models and several platforms, including Claude API, Amazon Bedrock, Google Cloud and Microsoft Foundry. Universal compatibility is therefore not established by consistent wording; support for the intended model and endpoint needs confirmation.
Actions
Start with a documented SDK helper or implement the six-command contract against a durable backend. Validate all paths, including both rename paths, after canonical resolution. Reject operations that escape the memory boundary and protect the root from deletion or renaming. Return operation failures through tool_result with is_error set to true.
Before adoption, verify persistence across process restarts and new conversations, isolation between users, duplicate-match handling and the chosen create behavior. Check empty-directory reads, ranged reads and any supported image views. Establish sensitive-data filtering, size limits and expiration, then obtain pricing and compatibility information for the intended deployment. These are recommended checks, not completed tests.
