Work with memory stores
A memory store holds memories: text files that agents read and write across sessions. Claude Managed Agents for Amazon Bedrock keeps the memories and saves each change as a version in the store's history. In the console, you can see what your agents remember and correct it.
A memory store can hold up to 2,000 memories and 250,000 versions. For how agents use memory, see Memory across sessions.
Create a memory store
To create a memory store
Open Claude Managed Agents. On the Memory stores tab, choose Create memory store. The Create memory store side panel opens.
Under Memory store details, enter a Name (up to 255 characters) and, optionally, a Description (up to 1,024 characters). Agents see the name and description when the store is attached to a session.
(Optional) Under Tags, add up to 50 tags. For how tags work, see Resource tags.
Choose Create.
To change a store's name or description later, select the store on the Memory stores tab and choose Actions, Edit. You can also choose Actions, Edit on the store's page. Make your changes, and then choose Save.
View a memory store
To open a memory store's page, choose its name on the Memory stores tab. The page shows the store's Details (name, description, ARN, and create date) and the following tabs:
Tab | What it shows |
|---|---|
Memories | The store's memories, in the folders that their paths make. Choose a memory's name to open it. |
History | The store's versions, newest first: each change's path, type (Create, Update, or Delete), who wrote it (Written by), the date, and whether it's redacted. Choose a version to view it in a side panel. |
Sessions | The sessions that attached the store. |
Add a memory
To add a memory
Open the memory store's page, and then choose Add memory. The Add memory side panel opens.
For Path, enter the memory's folder and file name, such as
/customers/acme.md. The path must start with/and can't end with/. It can be at most 19 folders deep, and no folder or file name can be.or... No two memories in a store can have the same path.For Memory content, enter the memory's text, up to 100 KB.
Choose Add memory.
Sessions that use the store can read the new memory.
Edit a memory
When you edit a memory, the store saves a new version. Sessions that use the store read the new version, and the previous version stays in the store's history.
To edit a memory
On the memory store's Memories tab, choose the memory's name.
Under Details, choose Edit.
Change the Path or the Memory content.
Choose Update.
If the memory changed after you started editing it, the console doesn't save your change. Choose Cancel to see the change, and then edit the memory again.
The memory's page also shows its Recent history.
Delete memories
Agents in future sessions can't read a deleted memory. Each deletion is recorded in the store's history.
To delete memories
Do one of the following:
On the memory store's Memories tab, select one or more memories or folders, and then choose Delete. Selecting a folder deletes the memories in it.
On a memory's page, choose Delete.
Confirm the deletion, and then choose Delete.
Redact a memory version
Redacting removes the version's content and path from everyone who can access the memory store. The record of the change stays in the history. You can't redact a memory's current version. To remove current text, change the memory first, and then redact the earlier version.
To redact a memory version
On the memory store's History tab, choose the version. A side panel opens with the version's details.
Choose Redact memory content.
In Redact memory content?, type confirm.
Choose Redact.
Archive a memory store
Archiving makes a memory store read-only. You can still view its memories, but you can't change them or attach the store to new sessions. You can't unarchive a memory store.
To archive a memory store
Select the memory store on the Memory stores tab, and then choose Actions, Archive. You can also choose Actions, Archive on the store's page.
In Archive memory store?, type confirm.
Choose Archive.
Delete a memory store
Deleting a memory store also deletes all of its memories and their versions. You can't undo this action.
To delete a memory store
Select the memory store on the Memory stores tab, and then choose Actions, Delete. You can also choose Actions, Delete on the store's page.
In Delete memory store, type confirm.
Choose Delete.