Speaker Notes

Why your Agent needs Memory, not just context

Agent memory and skills provide the structure, persistence, and continuous learning that raw context windows lack.

AI Native Dev · 43:50 · YouTube ↗

Podcast episode · 1 host and guest  Intermediate · concepts and strategy

Highlights

4 clips · 8 min of 44 min
    • Agent memory combines embeddings, databases, and LLM parametric memory.
    • Memory engineering optimizes retrieval pipelines and database search.
    • Memory serves as a human-friendly mental model compared to raw context.
    • Skills mirror standard operating procedures used to onboard humans.
    • They provide structured step-by-step processes for specific tasks.
    • In memory architecture, skills represent procedural knowledge.
    • Memory life cycles involve ingestion, cleaning, encoding, and storage.
    • Unlike standard data pipelines, memory systems must implement a mechanism to forget.
    • Weighted scores can help suppress obsolete or low-relevance memory units.
    • File systems allow rapid building by removing infrastructure setup friction.
    • They lack crucial enterprise features like security, concurrency, and transactions.
    • Rebuilding these features on file systems leads to recreating a database.

Questions this video answers

8 · every answer cites the moment it was said
01 What systems make up agent memory? 2 sources · 4:32

Agent memory is built on a combination of embedding models, databases, and large language models. The embedding models handle semantic search representation, databases store and retrieve information, and LLMs provide static parametric memory.

02 How does memory engineering differ from context engineering? 2 sources · 6:33

While context engineering focuses on curating information for limited context windows, memory engineering optimizes retrieval pipelines and latency. It combines disciplines like database engineering, search optimization, and AI engineering to manage agent recall.

03 What role do skills play in agent systems? 2 sources · 10:05

Skills act as standard operating procedures for agents, serving as procedural memory for tasks. They provide step-by-step instructions and tool locations to ensure consistent execution, similar to how human SOPs transfer knowledge.

04 What is entity memory in agent design? 2 sources · 23:26

Entity memory stores user-specific details like preferences, working styles, and tool stacks to build a persona. This memory helps make the agent's interactions more believable and tailored to the individual user.

05 What does the life cycle of agent memory involve? 2 sources · 28:12

The memory life cycle starts with data ingestion, cleaning, and encoding via embedding models into a database. Crucially, it also requires mechanisms like forgetting or suppressing outdated information to keep the system accurate.

06 How can omnipresent agents prevent loss of company knowledge? 2 sources · 34:18

Omnipresent agents operate across tools like Slack and Google Workspace to track successful workflows and processes. They automatically document these events into skills or workflow memory, capturing tribal knowledge before it is lost.

07 Why do developers choose file systems over databases for agents? 2 sources · 0:42

File systems allow developers to build quickly without worrying about infrastructure setup or tool selection because LLMs have a natural affinity for bash and shell commands. However, this speed comes at the cost of enterprise security, concurrency, and data privacy.

08 How will future agent systems achieve continuous learning? 2 sources · 41:05

Future systems will merge the agent loop with the model training loop by feeding collected traces back into training. This allows models to continuously improve their core latent memory rather than relying solely on retrieval context.

Section-by-section summary

9 parts

Agent memory combines embedding models, databases, and LLMs

Agent memory describes systems and techniques that allow agents to remember and adapt over time. It encompasses embedded models for encoding, databases for persistent storage, and parametric memory within LLMs. Memory engineering focuses on optimizing retrieval pipelines and latency.

Skills act as standard operating procedures for agents

Skills are comparable to standard operating procedures in human organizations, defining step-by-step processes for specific tasks. In agent memory architecture, skills represent procedural knowledge. They give agents structured workflows and tool locations to achieve desired outcomes.

Comprehensive data and memory drive agent success

Agents fail when they lack sufficient information, similar to onboarding a new human developer without context. Organizations sit on massive amounts of enterprise data that must be transformed into accessible memory. Equipping agents with this institutional knowledge enables reliable task execution.

Robust memory systems help agents traverse enterprise data

Agents can scan database schemas and underlying code to understand how data is structured and used. Equipping them to handle heterogeneous data storage ensures they can retrieve information securely. This iterative process builds reliable and capable agent behaviors.

Entity memory establishes user context and persona

Entity memory gives agents an understanding of a specific user's preferences, tech stack, and working style. This can be frontloaded or built through back-and-forth interaction over time. Entity memory significantly improves the believability of interacting with an intelligent agent.

The memory life cycle requires a mechanism for forgetting

The memory life cycle involves ingestion, cleaning, encoding, storage, and hybrid retrieval. Unlike traditional data pipelines, memory systems must also implement mechanisms to suppress or forget obsolete information. Data augmentation techniques can further enrich embedding representations.

Omnipresent agents capture workflows and prevent knowledge loss

Modern agents can operate across multiple tools like Slack and workspaces to observe successful workflows. When successful events occur, agents can document them automatically into new skills. This omnipresence prevents institutional knowledge loss across teams.

File systems offer fast builds but lack enterprise security

Using file systems for agent context enables rapid prototyping by eliminating infrastructure setup and tool selection. However, this speed comes at the cost of security, concurrency, and transactions found in databases. Reimplementing these features on file systems essentially rebuilds a database.

Future agent systems will merge agent loops with training loops

The future of memory engineering points toward continuous learning where agent execution loops merge with model training loops. Collecting traces from agent interactions allows teams to fine-tune models and embedding spaces automatically. This bridges custom context with core latent model improvements.

0:00 / 43:50
k play/pause · f fullscreen · m mute
n next · p previous clip · t highlights/full
< > slower/faster · / search what was said
  • Agent memory6× · first 4:04

    A term describing systems and techniques working together to allow agents to remember and adapt.

  • Context engineering4× · first 5:01

    Thinking systematically about the information curated to pass into a limited context window.

  • Memory engineering6× · first 4:59

    A cross-section of disciplines focusing on optimizing retrieval pipelines and latency within agentic systems.

  • Standard operating procedures3× · first 10:08

    Documentation defining how to do certain tasks to transfer knowledge, acting as agent skills.

  • Entity memory4× · first 23:26

    A form of memory storing a user persona, preferences, and ways of working.

  • Data augmentation2× · first 30:27

    A technique introducing diversity into data by modifying perspectives, applied to augment LLM outputs.

  • Continuous learning3× · first 41:07

    A norm where agent interaction loops are merged with model training loops to update core memory.