Memory Tool

Give Claude a persistent store for selected facts by implementing memory operations in your application.

Decide what belongs in memory

The memory tool lets Claude request storage operations and leaves execution to the client. A project can preserve an approved preference or milestone under a per-user namespace. Sensitive records and temporary conversation details need their own handling rules.

Verify isolation and cleanup

Map the documented memory prefix into an isolated location and validate access on every operation. Use two synthetic users to check that each sees only its own records, then test deletion and retrieval in a new conversation.

Source documentation

Official Claude documentation