System intermediate Own-packaged

Give your agent reliable memory

An agent that forgets between sessions reruns the same dead ends and contradicts its own past decisions. The fix isn't a bigger context window — it's a written record the agent reads before it acts and updates when it's done. Three ways to hold that record, simplest first.

3
ways to hold it
~10 min
to the first working version
0
graph databases required to start

Ch. 01 What it is


An agent that forgets between sessions reruns the same dead ends and contradicts its own past decisions. The fix isn't a bigger context window — it's a written record the agent reads before it acts and updates when it's done. Three ways to hold that record, simplest first.

Ch. 02 The three ways to build it


Simplest path first. Every tier carries its real setup time and its honest trade-off — the cost is the part most write-ups leave out.

  1. Tier 1 · simplest path

    Plan-file + resumable checklist

    Setup~10 min

    • plain markdown

    One markdown file per task. At the top, the goal and the decisions you've already locked. Below it, a checklist the agent updates as it goes — `[x]` for done, a one-line note where it had to choose. The agent reads the file before it starts and writes back before it stops. That's the whole mechanism. When a session drops or you come back tomorrow, the agent reads the same file and picks up where the checklist left off, decisions intact.

  2. Tier 2

    File-memory vault + manual capture

    Setup~1 hr

    • Obsidian
    • markdown

    Promote the single plan-file into a small vault — one note per fact, decision, or recurring pattern, cross-linked. A short index note points at the rest. The agent searches the vault before acting and you (or it) write a new note whenever something is worth keeping. Because every note is plain markdown, you own it outright, you can read it without the agent, and nothing is locked inside a proprietary store.

  3. Tier 3

    Auto-capture + inject (or a graph)

    Setup~half day

    • claude-mem
    • a memory MCP

    Hand the capture step to a tool. An auto-memory layer (claude-mem, or a memory MCP server) watches the work, writes notes without being asked, and injects the relevant ones back into context at the start of each session. At the far end sits a knowledge graph — entities and the relationships between them — for memory you query instead of read. This earns its complexity only when the work is genuinely large and moving fast, and it's the one tier where the agent never waits on a human to remember.

Ch. 03 The detail


An agent that forgets between sessions reruns the same dead ends and contradicts its own past decisions. The fix isn't a bigger context window — it's a written record the agent reads before it acts and updates when it's done. Three ways to hold that record, simplest first.

Category
Agents & workflows
Format
System
Level
intermediate
Provenance
Own-packaged
agentsmemorycontextclaude-codeobsidian