Long-term memory
What the agent remembers about you: people, projects, preferences.
What it is
Durable facts and preferences stored outside the model ("Priya leads design", "no meetings before 10"), retrieved into context when relevant.
When to use it
- The agent should behave like it knows you, across weeks
When to skip it
- Letting anything write to it: every write is a chance to plant a false belief
Why (the trade-off)
Personal agents are only personal if they remember. That memory is also an attack surface and goes stale.
Where it sits
Memory layer, read before decisions and written after them.
What it needs first
- Agent loopthe loop reads and writes it
What can be added to it
- builds on itMemory write reviewMemory write review needs it: it guards the writes
- builds on itMemory expiry and re-checksMemory expiry and re-checks needs it: it ages the stored facts
- builds on itPreference learningPreference learning needs it: preferences are stored per person
Effect of adding it
- cost —
- latency —
- reliability ↑
- safety ↓
New risks it brings
- Memory poisoning
- Stale facts that the agent acts on confidently
Learn first (AI Engineering)
depth 4+1 production note with numbers.