Flows category icon
Memory & Context
Intermediate

Episodic, Semantic, and Procedural Stores

Organize agent memory by kind - what happened, what is true, and how to do things - instead of one undifferentiated pile.

4 steps12 verify checks60-90 minutesWorks with: emergent · chatgpt · claude · cursor
Start Guided Walkthrough

The Route

0/4 verified

Context Pack

Paste this first. It briefs the AI on requirements, constraints, and the Definition of Done before your first build prompt.

Context Pack
PROJECT CONTEXT:
All my agent's memories live in one pile, so session stories, project facts, and how-to knowledge interfere with each other. Memory surveys and taxonomies consistently separate episodic, semantic, and procedural stores with different schemas and lifecycles.

GOAL:
Split memory into three typed stores - episodic (events), semantic (facts), procedural (skills) - with type-appropriate schemas, recall, and lifecycles.

REQUIREMENTS:
- Three stores with distinct schemas: episodes, facts, and procedures
- A classification step routing new memories to the right store
- Type-appropriate recall: episodes by time/task, facts by topic, procedures by goal
- Distinct lifecycles: episodes decay fastest, facts need confirmation, procedures update on failure
- Cross-links: facts and procedures cite the episodes that produced them

CONSTRAINTS:
- One entry, one store - content that spans types is split, not duplicated
- Procedures must be actionable as written: steps, preconditions, verification

DEFINITION OF DONE:
- New memories route to the correct store in a 12-case classification test
- Recall for 'how do I deploy?' returns a procedure, not a war story
- An episode where a procedure failed triggers a procedure update
- Every fact and procedure traces back to at least one source episode

COMMON FAILURES TO AVOID:
- Facts phrased as stories, so recall returns anecdotes when the agent needs truth
- Procedures without verification steps - recipes that cannot be trusted
- Episodes hoarded forever at full fidelity, bloating the store
- No links between layers, so a failed episode never corrects the stale procedure

Paste this into your AI builder first. It teaches the AI what you want before you give it the build prompt.

Related routes

More Memory & Context flows that share ground with this one.

Flows category icon
Memory & Context

Add File-Based Persistent Memory

Give your agent durable memory with plain files - the radical-minimalism approach production practitioners keep converging on.

01Design the memory file structure
02Load memory at session start
03Build the guarded memory_update tool

+1 more steps to Done

Best foryour first pass at this - no prior setup assumed

4 steps45-75 minutesBeginner
Flows category icon
Memory & Context

Cross-Session Project State

Keep long-horizon work coherent across many sessions: externalized project state that any session can load, advance, and hand off.

01Design the project-state document
02Implement the session-start protocol
03Implement the session-end advance

+1 more steps to Done

Best forproduction-grade builds with strict verification

4 steps90-120 minutesAdvanced
Flows category icon
Memory & Context

Design a Memory Index Loaded Every Session

Build the pattern behind minimalist memory systems: a compact index file the agent always loads, pointing to detail files it loads on demand.

01Structure the index and details
02Wire loading: index always, details on demand
03Maintain the index as memory evolves

Best forbuilders who have shipped a basic app before

3 steps60-90 minutesIntermediate

Made with Emergent