

# 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](claude-managed-agents-bedrock-tools.md#claude-managed-agents-bedrock-tools-memory-across-sessions).

## Create a memory store
<a name="claude-managed-agents-bedrock-console-create-a-memory-store"></a>

**To create a memory store**

1. Open Claude Managed Agents. On the **Memory stores** tab, choose **Create memory store**. The **Create memory store** side panel opens.

1. 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.

1. (Optional) Under **Tags**, add up to 50 tags. For how tags work, see [Resource tags](claude-managed-agents-bedrock-security.md#claude-managed-agents-bedrock-security-resource-tags).

1. 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
<a name="claude-managed-agents-bedrock-console-view-a-memory-store"></a>

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
<a name="claude-managed-agents-bedrock-console-add-a-memory"></a>

**To add a memory**

1. Open the memory store's page, and then choose **Add memory**. The **Add memory** side panel opens.

1. 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.

1. For **Memory content**, enter the memory's text, up to 100 KB.

1. Choose **Add memory**.

Sessions that use the store can read the new memory.

## Edit a memory
<a name="claude-managed-agents-bedrock-console-edit-a-memory"></a>

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**

1. On the memory store's **Memories** tab, choose the memory's name.

1. Under **Details**, choose **Edit**.

1. Change the **Path** or the **Memory content**.

1. 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
<a name="claude-managed-agents-bedrock-console-delete-memories"></a>

Agents in future sessions can't read a deleted memory. Each deletion is recorded in the store's history.

**To delete memories**

1. 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**.

1. Confirm the deletion, and then choose **Delete**.

## Redact a memory version
<a name="claude-managed-agents-bedrock-console-redact-a-memory-version"></a>

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**

1. On the memory store's **History** tab, choose the version. A side panel opens with the version's details.

1. Choose **Redact memory content**.

1. In **Redact memory content?**, type **confirm**.

1. Choose **Redact**.

## Archive a memory store
<a name="claude-managed-agents-bedrock-console-archive-a-memory-store"></a>

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**

1. 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.

1. In **Archive memory store?**, type **confirm**.

1. Choose **Archive**.

## Delete a memory store
<a name="claude-managed-agents-bedrock-console-delete-a-memory-store"></a>

Deleting a memory store also deletes all of its memories and their versions. You can't undo this action.

**To delete a memory store**

1. 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.

1. In **Delete memory store**, type **confirm**.

1. Choose **Delete**.