Session 5: Memory - systems that persist and compound

9 lessons · Back to full syllabus

What you keep

How to give an agent memory that lasts and improves, and how to run it persistently.

You ship

Your agent remembering across sessions and deployed to run for real, with a Streamlit UI that demos memory.

Recommended reading (async)

Session 5 recommended reading and video

Context vs memory, compaction, durable execution, and LLM wiki patterns. Skim after the live session.

Videos

The Four Types of Memory Every AI Agent Needs

IBM Technology - working, semantic, episodic, and procedural memory.

Architecting Agent Memory: Principles, Patterns, and Best Practices

Richmond Alake (MongoDB) at AI Engineer - production memory patterns.

Google's OKF - The New Way to Structure Your Knowledge for Agents

Open Knowledge Format walkthrough for agent knowledge wikis.

Live session resources

Lessons

Live

The memory spectrum

Working, semantic, episodic, and procedural memory. Match the store to the job.

Read lesson
Live

Graph plus vector hybrid memory (and gbrain)

Vector recalls by similarity; graph recalls by relationship. Hybrid earns its cost when both matter.

Read lesson
Live

Compaction, write gates, and durable execution

Context fills up. Compaction loses rules. Writes need gates. Checkpoints are not full durability.

Read lesson
Live

Persistent runtime deployment

From "I built an agent" to "I deployed an agent": stays up, holds memory, ready for Demo Day.

Read lesson
Live

Skills and the compounding loop

Procedural memory you can write down: capture a process once, and the agent gets better at it every time after.

Read lesson
Live

Course wrap and your capstone from here

Reasoning, RAG, agents, evals, memory - the full arc, what carries forward, and where the capstone goes after Demo Day.

Read lesson
Deep dive

Rolling your own memory store

A real, minimal memory store: Postgres + pgvector, a write gate, hybrid retrieval, and an actual forgetting policy.

Read lesson
Deep dive

Skills authoring patterns

A skill is only as good as its trigger. Structure, scope, and how to actually test one before you trust it.

Read lesson
Async

Session 5 assignment support: Give your capstone memory and deploy it

Path A: durable store, cross-session recall, public URL, UI proof. Path B: graph, consolidation, provenance, crash drill, LLM wiki.

Read lesson