Skip to main content

Why Memory?

Without memory, every session starts fresh. Your agents forget everything. With memory:
  • Continuity — Pick up where you left off
  • Learning — Build on previous work
  • Coordination — Share context between agents

Memory Structure

See Memory for how these layers cascade into an agent’s context, in priority order, on every run.

Querying Memory

Memory in Action

When an agent runs:

Writing Good Memory

Memory files are markdown. Keep them structured:

Memory Types

Agent Memory

Private to each agent:
  • Task history
  • Learned preferences
  • Work in progress

Squad Memory

Shared across agents in a squad:
  • Domain knowledge
  • Coordination state
  • Team decisions

Best Practices

Run squads memory write <squad> "<learning>" after significant work.
Stale memory is worse than no memory. Prune outdated info.
Use the same sections across agents for predictability.
Memory isn’t a log file. Store insights, not events.

Next Steps

CLI Reference

All memory commands

Core Concepts

Deep dive on memory