WhoBuilt

Giving AI Agents Memory That Learns

Oct 8, 2026· 17 min· 13K views·Watch on YouTube

Speaker

Jake Broekhuizen, who leads the Labs team at LangChain, explains how teams can turn agent experience into durable memory that helps future runs improve, using a financial services advice agent as an example.

Why agents need to learn

Teams building coding, support, and research agents often want them to improve from one run to the next. A financial services company found that its budgeting and advice agent sometimes shifted from helpful guidance to directive language, contrary to its tone requirements. Fixing those slips meant manually reviewing traces, changing the agent’s context, and checking for regressions.

What counts as agent memory

Broekhuizen defines memory as durable context an agent can reference in future runs. A trace or transcript records what happened; it becomes memory only when a lesson is turned into reusable context. He groups memory into semantic memory, such as facts and preferences; episodic memory, such as past interactions and patterns; and procedural memory, such as instructions, skills, and rules.

The read and write cycle

Working memory supports the current run with items such as scratch pads and tool results, while long-term memory holds context for future runs. At the start of a run, relevant long-term context is loaded into working memory; the run then produces a trace. A filter selects useful signal from that trace to update durable memory, while most evidence remains history.

A memory loop with Context Hub

Broekhuizen describes the process in three steps: capture what happened, analyze what matters, and update context for future runs. In LangSmith, observability captures trajectories and tool calls, while LangChain’s Context Hub analyzes traces and promotes useful signal to a memory store. For the financial assistant, the system used traces of tone slips to identify static skill files to change, so later runs could follow the intended tone.

Design updates with care

Most trace data should remain referenceable history; some can support offline evaluations, and only a small subset should change memory. Teams also need to understand caching and runtime state so updates are available to later runs. Changes to procedural memory, including policies and tone guidelines, should have human review before they reach the agent’s live path.

Takeaways

  • Treat traces as evidence; convert only selected lessons into durable context for future runs.
  • Separate current-run working memory from long-term context that guides later runs.
  • Use semantic, episodic, and procedural memory to clarify what an agent knows, has experienced, and should do.
  • Check caching and runtime behavior when memory updates do not affect later runs.
  • Put human review in the path for self-updates that change policies, instructions, or tone.

Mentioned in this talk

Search inside this talk

What was claimed 4

  • works at
    Deployed Engineer (one of the first)
    “I lead our Labs team here at LangChain.”
    YouTube
    Verified2 sources· Talk, Web· archived
  • feature
    LangSmith: Provides observability for capturing agent trajectories, tool calls, sub-agent calls, and retrieved context.
    “The capture step ... is where our observability comes in.”
    YouTube
    Unverified1 source· Talk
  • feature
    Context Hub: Analyzes traces to extract signals and promote them to a memory store for future agent runs.
    “extract signal from traces ... and then promoting that signal to the memory store”
    YouTube
    Unverified1 source· Talk
  • built
    “That is what LangChain's Context Hub does.”
    YouTube
    Unverified1 source· Talk

Related talks