Skip to content
Seestack

AI context & memory

Context is a file layout, not a prompt trick.

Every agent starts each session with nothing. What it remembers is only what the setup puts in front of it: which files load automatically, which ones wait on disk, and which ones nobody ever wrote down.

Free. Unsubscribe anytime.

  • 01

    Session rules

    CLAUDE.md

  • 02

    Memory index

    MEMORY.md

  • 03

    Material on demand

    skills/ · commands/

  • 04

    Long-term notes

    Journal/ · projects/

The definition

A memory system is four decisions.

Not a database, and not a longer prompt. A working memory system is the answer to four questions, and every one of them is answered by a file somewhere on disk.

What must the agent read before it is allowed to act? What is worth keeping in front of it at all times, and what is only worth keeping within reach? Where does a decision get written so the next session can find it? And how does the agent know where to look without being told twice?

Answer those in a folder structure and the behavior is repeatable. Leave them to the prompt and every session becomes a re-negotiation, with whatever the model happened to emphasize last time as the baseline.

The test is simple: start a fresh session, ask the agent what it knows about the project, and see which of those four answers survives.

In practice

Two sessions, one vault.

The session on the left saves what it learned. The session on the right starts with it already there. Nothing gets pasted into a prompt, because the vault is what the agent reads from.

vault · architecture
Diagram of a Claude Code session saving context into an Obsidian vault, and a later session reading it back
persistent context · one session to the next

Structure

Four layers, loaded at different times.

The layers are ordered by cost. Everything above a line is paid for on every single session, so it has to earn its place. Everything below the line is paid for only when a task reaches for it.

  1. 01

    Session rules

    CLAUDE.md

    Every session

    What the agent must do in this repo before it does anything else: which checks to run, which files are off limits, which conventions are not up for debate. It is small, stable, and loaded at the start of every session.

  2. 02

    Memory index

    MEMORY.md

    Every session

    One line per known fact, each pointing at a longer note. The index is loaded every session, so it is kept short on purpose. The index costs context; the notes behind it cost nothing until something opens one.

  3. 03

    Material on demand

    skills/ · commands/

    On demand

    Skills and slash commands live on disk until a task needs them. The index says what exists and when to reach for it. The instructions themselves are read only when they are relevant.

  4. 04

    Long-term notes

    Journal/ · projects/

    On demand

    Decisions, sessions, and daily logs, written as plain markdown with links between them. None of it is written for the agent's benefit. It is the same vault a person uses, which is the reason it stays accurate.

The split is the whole design. Rules and the index are small enough to load every time. Skills, notes, and history are large, so they stay on disk behind a name the agent can recognize.

Failure modes

What breaks when the structure is missing.

  • 01

    Knowledge that was never written down

    If a decision only exists in an old chat, the next session starts without it. The agent does not forget because it is forgetful. It forgets because nothing on disk carried the decision forward.

  • 02

    Everything loaded at once

    Filling the window with every file feels safe and is usually the opposite. The material that matters gets pushed out by material that does not, and the model spends its attention re-reading instead of working.

  • 03

    Notes that cannot be found

    A vault with no naming convention and no index is a write-only archive. Memory only counts when it can be located from a single line of context at the start of a session.

See it running

The same structure, built on camera.

The long-form walkthrough builds the vault end to end. The shorts cover one layer at a time.

Get the next system.

One message when a new breakdown is published, with the files from it.

Sign up