Skip to content

Memory & context management

Explores memory patterns for long-running agents, including context editing strategies and best practices for security.

  • Upstream notebook: tool_use/memory_cookbook.ipynb

What to focus on

  • What should be persisted vs summarized vs discarded
  • Safe “memory” boundaries (avoid storing secrets/PII)
  • Keeping long workflows stable without ballooning context

Run locally

make test-notebooks NOTEBOOK=tool_use/memory_cookbook.ipynb