# Something to Remember It By: long-term memory

_Chapter 3 · Bildabrain_

> Long-term memory is files that persist between sessions — one fact per file, a one-line index the model reads to decide relevance, and the discipline to keep it honest.

Here is the lobe that most feels like a brain. Memory is the set of facts Claude carries from one session to the next: who you are, how you like to work, what is going on in the projects, and where the useful things live. Done well, you stop repeating yourself. Done badly, you build a hoard.

## The shape of a memory

The pattern that works is almost boringly simple: **one fact per file**, each with a little header so the system knows what it is, plus a single **index file** that lists every memory in one line each. The index is loaded into every session; the full files are opened only when a line looks relevant.

One memory, one file
```
---
name: deploys-need-a-branch
description: Never commit straight to main; branch first, open a PR.
type: feedback
---

I was burned once by a push straight to main on a Friday.
From now on: always branch, always PR, even for a one-line fix.
Why: a bad main costs the whole team an afternoon.

```

The `description` line is not decoration. It is the hook the model reads in the index to decide whether this memory is worth opening right now. Write it like a search result you are trying to click: concrete, specific, in the words you would actually use later.

## Four kinds of memory worth keeping

- **User** — who you are: role, preferences, the context that colours everything.
- **Feedback** — how you want the work done, including the *why* behind a correction, so it generalises instead of becoming a brittle rule.
- **Project** — ongoing work and decisions that are not obvious from the code or the commit history.
- **Reference** — pointers to the real thing: a URL, a dashboard, a ticket number. The memory is the signpost, not the cargo.

> **Scarecrow says:** A good memory isn't the one that keeps everything. It's the one that can find the one thing you need while the crows are still circling. Index first, hoard never.

## The discipline (this is the whole game)

Memory rots without rules. The ones that keep it useful:

1. **Update, don't duplicate.** Before writing, check whether a file already covers it. Edit that one.
2. **Delete what's wrong.** A confidently remembered falsehood is worse than a gap. When a fact turns out false, remove it.
3. **Don't store what the code already says.** Structure, past fixes, and history live in the repo. Memory is for what the repo can't tell you.
4. **One fact, one file.** Tangled files never get updated, because nobody can tell what they would be breaking.
5. **Mind what's sensitive.** A brain full of your life is a liability as much as an asset — see [principles](/principles/).

## Recall: how the brain finds the memory

When a session starts, the model sees the index — every memory as a single described line. As the conversation turns toward a topic, the relevant lines light up and the model opens those files. That is why the index line matters more than the file body: a perfect memory with a vague description is a book with no title on the spine. It exists, and no one will ever pull it off the shelf.

Treat recalled memories as what they are: notes from a past session, true as of when they were written. If one names a file or a flag, the model should verify it still exists before leaning on it. Straw settles; fields change.

**Straw-brain summary**

- One fact per file, with a header; one index file read every session.
- The one-line description is the hook that drives recall — write it like a search result.
- Four kinds: user, feedback, project, reference.
- Update don't duplicate, delete what's wrong, don't re-store what the code already knows.
