Skip to content
Book a demo

Give an agent memory

Give an agent persistent memory by creating a memory store and attaching it to a project. Memory stores survive across sessions. The agent can write facts, preferences, and context that carry over from one run to the next.

Small stores are loaded into the agent’s context at session start; larger ones are exposed as a retrieval tool the agent queries on demand.

In the UI

In the UI

  1. Navigate to your project’s Settings tab.

  2. Under Memory stores, click Add memory store.

  3. Choose an existing store or create a new one by entering a name.

  4. The store is now attached. The next session on this project will have access to it.

Programmatically

Create a memory store, then attach it to a project. Each project can have multiple memory stores, and each store can be shared across projects.

  1. Create a memory store:

    Terminal window
    ren memory-stores create --name "project-context"

    The response includes the store id (e.g. mst_abc123).

  2. Attach it to a project:

    Terminal window
    ren projects memory-stores add prj_def456 \
    --memory-store-id mst_abc123
  3. Upload a file to the store (optional: the agent can also write to it at runtime):

    Terminal window
    ren memory-stores files upload mst_abc123 \
    --path "context.md" \
    --file ./context.md

List stores and their files:

Terminal window
ren memory-stores list
ren memory-stores files list mst_abc123

Detach a store from a project:

Terminal window
ren projects memory-stores remove prj_def456 mst_abc123

Memory stores are scoped to an owner (org or user). One store per owner can be marked isDefault. It’s automatically attached to new projects in that scope.