Skip to content

The memory

Copy page

The memory is a store that lets an agent carry a few durable things forward instead of starting blank every time. When you work with an agent, most of what it knows lasts only until the session ends; the next one begins from zero. A memory store keeps the small set of things worth surviving that reset — a correction you gave, a decision you made, the current state of a project. Each is saved once and recalled automatically whenever it’s relevant again, in any session, any project, on any of your machines.

The words in bold-linked text throughout these pages are defined in Shared language. Read that once and the rest reads plainly.

You need a memory store if any of these is a cost you’re tired of paying:

  • You re-explain the same context — your stack, your conventions, how you like things — at the start of every session.
  • You correct the agent on something, and a week later it makes the same mistake because the correction is gone.
  • You want work on one machine to be visible when you sit down at another.

That recurring cost has a name — friction — and ending it is the entire reason the store exists. If none of the above bothers you, you don’t need one. If they do, memory turns each of those repeated costs into a one-time learning: paid once, then carried forward on its own.

The store is a collection of records. A record is one small, durable thing — a piece of feedback, a decision, a fact, a project’s state — kept as a few words plus a fingerprint of their meaning and a few labels. The agent writes records in response to what happens and reads them back when they matter:

MomentWhat the store does
A session startsThe most relevant records for the current project are recalled automatically into the agent’s context
You correct the agentThe correction is saved immediately, as a record the agent operates under from then on
A decision or deliverable landsThe agent writes a record snapshotting what changed
The agent needs past context mid-taskIt recalls by meaning, not by keyword — the right record surfaces even if the words differ

Every record carries labels: whose it is, which projects it belongs to, who wrote it. Those labels are what let one shared store stay sorted by project while being reachable identically from every machine you work on.

Standing up a store comes down to a few choices. Each has a plain default.

ChoiceWhat it meansThe plain default
Self-host or hostedRun the store yourself, or point at a shared hosted onePoint at the hosted one — no server to run. Self-host when you want the data on infrastructure you control.
One machine or severalWhether the same memory should reach you across devicesThe store draws no machine boundary. Give every machine the same key and they all reach the same memory.
Where the shared key goesThe key is what routes a machine to your memorySet the same key on every machine. A missing or mismatched key means an error or a silently empty store.

The one choice the store can’t make for you is the last one: every machine must carry the same key. That’s the whole of your setup responsibility — the scope model does the rest.

Almost nothing is asked of you day to day. Once the store is wired in, the writing and recalling happen on their own. At the start of a session you’ll see a block of recalled memories — past decisions, prior feedback, current state. Your part is to recognize what’s there and to flag anything durable that should be saved. The agent writes; you notice.

The store keeps the durable things and overwrites them in place as they change — it is not a transcript of everything said. It’s tuned for one person with thousands of memories, which is what keeps it small and fast.

  • Why the memory is built this way — the reasons behind the shape: why it stays light, never bloats, and works across every machine.
  • The memory MCP — what accumulates in a running store, how project labels scope it, and how to keep it healthy.
  • Memory (component) — how the store is wired, how to run it, and how to verify it.
  • Shared language — the words these pages use, defined once.
  • The observer — whose recurring-pattern memos are written into this same memory.
  • What Tapestry is — the other mechanisms that turn recurring friction into structure.