Loading lesson…
OpenClaw splits a Soul's memory into three stores that act differently. Knowing what goes where is the difference between an agent that remembers you and one that pretends to.
OpenClaw's memory model maps to a distinction cognitive scientists have been making for decades, and that Letta, MemGPT, and Open Souls all reach for in their own vocabulary. A Soul has three memory layers: episodic (what happened), semantic (what's true), and procedural (how it works). Each store has a different write policy, a different recall trigger, and a different retention curve. Conflating them is why so many agent demos look impressive on day one and feel amnesiac on day twenty.
| Layer | Holds | Write policy | Recall trigger | Retention |
|---|---|---|---|---|
| Episodic | Time-stamped events the Soul lived through | Append on every meaningful turn | Vector similarity + recency | Decays unless promoted |
| Semantic | Stable facts the Soul knows are true | Write on confirmation or correction | Symbolic / keyword lookup | Long-lived, edited not expired |
| Procedural | How the Soul does specific tasks | Write when a workflow stabilizes | Triggered by task class | Versioned, supersedes old |
Episodic memory is a stream of events: 'Tuesday 3pm: Maya asked Atlas to draft the postmortem for incident-204. Atlas drafted three sections, Maya rewrote the timeline, the doc shipped at 4:15.' Each entry is small, dated, and embedded in a vector store so the runtime can pull semantically related episodes back when relevant input shows up.
Semantic memory is the Soul's stable picture of the world: 'Maya is a senior SRE on the platform team. The Tendril production database is Postgres 16 on RDS. Postmortems ship within 48 hours.' These are facts, not events — they don't get a timestamp, they get edited when wrong.
Procedural memory is how the Soul does things — the saved workflow for 'draft a postmortem,' the 12-step deploy ritual, the macro for triaging a Sentry alert. Procedural memory is what makes a senior agent feel senior: not that it knows more, but that it has stable ways of working.
Most teams over-engineer the recall side and under-engineer the write side. They build elegant vector search, then write everything indiscriminately and choke the store with noise. Recall is mostly solved infrastructure. Write policy is where the Soul earns or loses its memory. Be picky about what goes in.
// A small write-policy helper for an OpenClaw Soul. // The runtime calls this after every turn; you decide what to keep. export function decideWrites(turn: Turn, soul: SoulCtx) { const writes: MemoryWrite[] = []; // Episodic — only if the turn changed state. if (turn.toolCalls.length > 0 || turn.factsConfirmed > 0) { writes.push({ store: 'episodic', payload: { ts: turn.endedAt, actor: turn.userId, summary: turn.summary, // 1-2 sentences max tags: turn.entities, }, }); } // Semantic — only on confirmed/corrected facts. for (const fact of turn.confirmedFacts) { writes.push({ store: 'semantic', key: fact.entity + ':' + fact.attribute, payload: { value: fact.value, source: turn.id }, }); } // Procedural — only when a workflow stabilizes. if (turn.workflowOutcome === 'stable-third-success') { writes.push({ store: 'procedural', payload: { taskClass: turn.taskClass, steps: turn.steps, version: soul.nextProceduralVersion(turn.taskClass), }, }); } return writes; }Write policy lives in code, not in the model. The model proposes what's worth remembering; this function decides what actually gets persisted.The big idea: episodic remembers what happened, semantic remembers what's true, procedural remembers how things are done. Three different stores, three different write policies, one Soul that actually feels like it remembers you.
8 questions · take it digitally for instant feedback at tendril.neural-forge.io/learn/quiz/end-openclaw-souls-memory-architecture-creators
What is the main idea of "Soul Memory Architecture: Episodic, Semantic, Procedural"?
Which concept is most central to "Soul Memory Architecture: Episodic, Semantic, Procedural"?
Which use of AI fits this topic best?
What should a careful learner remember about "Where to write what — the 5-second test"?
You want to use AI after this lesson. What is the safest next step?
How should AI output about episodic memory be treated?
Name one way to verify an AI answer about episodic memory.
Which action would help you apply "Soul Memory Architecture: Episodic, Semantic, Procedural" responsibly?