Memory & stateMulti-agent
Shared memory (plan and notes)
A notebook outside every context window, where the plan and findings are saved.
What it is
A store that agents write to and read from: the lead's plan, findings so far, who's doing what. When a context is truncated or compacted, what matters is still there to read back.
When to use it
- Long tasks that will outgrow a context window
- Several agents that need a common picture
When to skip it
- Dumping everything in and reading it all back each turn: that's just a bigger context
Why (the trade-off)
Context windows are temporary; memory isn't. Saving the plan is the cheapest insurance against forgetting the goal.
Where it sits
Memory layer, beside the agents; read and written through tools.
What it needs first
- Agent loopagents read and write it through tools
What can be added to it
- builds on itArtifact store (pass references)Artifact store (pass references) needs it: artifacts live in the shared store
- builds on itShared decision logShared decision log needs it: the log lives in the shared store
- builds on itMemory tiers (page in, page out)Memory tiers (page in, page out) needs it: it's the storage tier
Effect of adding it
- cost —
- latency —
- reliability ↑↑
- safety —
Risks it handles
- The plan falls out of context · full
- Two workers do the same job · partial
Learn first (AI Engineering)
depth 4+1 production note with numbers.