WhoBuilt

From Context to Memory: Your Agents Need a Real Memory Layer

Oct 9, 2026· 18 min· 11K views·Watch on YouTube

Speaker

Anders Swanson, a developer advocate for Oracle AI Database, explains how to build a persistent, governed memory layer for agents at AI Engineer.

Context is not persistent memory

Swanson says agent memory combines retrieval, formation, and persistent storage. Context windows, scratch files, and tools like grep can help during a task, but they do not preserve useful experience in a managed form. Without persistence, a later agent repeats searches and queries, increasing effort and the chance of mistakes.

Build a managed memory loop

Swanson describes a cycle of forming, recalling, consolidating, and evaluating memories. Useful facts should be distilled from experience rather than saved as raw transcript dumps, then redacted, enriched, scoped, and stored. Later sessions can retrieve those facts, while feedback about their usefulness helps the memory layer adapt.

Choose memory types and storage

He distinguishes episodic memories of past events, semantic facts about workflows or preferences, procedural rules for repeated tasks, and working state that may only be valid temporarily. A memory record can include text, tags, embeddings, full-text indexes, graph links, temporal details, and audit events. Swanson says a multimodel database can keep these forms together and support different retrieval methods.

Use hybrid search and manage change

Hybrid recall can combine vector similarity, keyword search, relational entities, graph traversal, temporal data, and feedback signals. Results can be weighted, merged, thresholded, and reranked into a context card with scored evidence. As the system grows, teams also need to handle stale or conflicting facts, poor scope, poisoned memories, over-recall, and irrelevant matches.

Measure usefulness and govern access

Swanson recommends reducing and reviewing data before writing it, checking scope on both writes and reads, and applying lifecycle controls. Agents should report whether recalled memories were useful, stale, irrelevant, or harmful so those signals can guide ranking and retention. He points listeners to an Oracle Python SDK notebook and developer hub for hands-on examples.

Takeaways

  • Persist distilled facts and procedures so later agents can reuse prior work.
  • Redact sensitive information and set memory scope before storing or retrieving it.
  • Combine search methods because vector similarity alone may miss useful facts.
  • Track when memories were created, used, and expected to remain valid.
  • Use feedback from agent outcomes to adjust memory ranking and lifecycle.

Mentioned in this talk

Search inside this talk

What was claimed 4

  • works at
    Developer Advocate / Developer Evangelist, Oracle AI Database
    “I'm a developer advocate for Oracle AI Database”
    YouTube
    Verified2 sources· Talk, Web· archived
  • feature
    Oracle AI Database: Supports rows, columns, vector embeddings, full-text search, relational entities, graphs, episodes, and facts in one place
    “they let you work with rows, columns, vector embeddings, full-text search, relational entities, graphs, episodes, and facts all in one place”
    YouTube
    Unverified1 source· Talk
  • feature
    Oracle Python SDK for agent memory: Includes a Python notebook that walks through agent memory using database primitives
    “a GitHub link with a Python notebook that walks through how to do this using our SDK”
    YouTube
    Unverified1 source· Talk
  • feature
    Oracle Developer Hub: Provides samples and resources for AI development with a multimodel database
    “check out our samples, see what's possible”
    YouTube
    Unverified1 source· Talk

Related talks