ACAgentic Craft

Intermediate~50 minHazelJS

Memory and State

Separate working context, @hazeljs/memory, RAG memory bridges, and durable AgentRun state.

Authors
editorial-team
Published
Last reviewed

Wire MemoryModule / enableMemory, understand session vs long-term stores, and keep durable run state distinct from prompt memory.

Learning outcomes

  • Enable and bound memory/RAG on execute
  • Explain AgentRun checkpoints vs conversational memory

Lessons

  1. 01Memory Layers in HazelJS
    Wire enableMemory / MemoryModule peers without collapsing every store into the prompt—with execute examples.
  2. 02Durable Run State vs Prompt Memory
    Distinguish AgentRun checkpoints/leases from conversational memory—with store wiring examples.

Related patterns