Agent Memory
This page explains memory in the openboaAgent runtime.
Use this page when you want to answer:
- what counts as Agent memory
- what is only session-local state
- what gets auto-loaded versus searched
- how learning becomes durable memory
- why memory is not the same thing as the prompt
Why memory needs its own page
Long-running agents fail when all state is flattened into one bucket. In practice, openboa has multiple memory surfaces:- durable shared memory for the Agent
- current-session runtime state
- learned lessons
- prompt-local context for one wake
The memory model
The key distinction is:- some memory is loaded as durable steering
- some memory is searched and reread
- some state is only for the current session
Shared Agent memory
Shared Agent memory lives in the durable substrate. The main public surface is:MEMORY.md
- durable lessons worth reusing
- stable reminders that should survive across wakes
- guidance that is still Agent-specific rather than product-global
- temporary scratch state
- one-turn shell output
- per-session open loops
Learned lessons
The runtime also keeps structured learned lessons. These are captured from bounded runs as:- lessons
- corrections
- errors
- searched directly
- promoted into shared memory when they become durable enough
learning is not the same as MEMORY.md.
Learning is the capture loop.
MEMORY.md is one durable destination for promoted knowledge.
Session runtime memory
Some state belongs only to the current session. Examples:- checkpoint
- session state
- working buffer
- shell state
- current outcome posture
What is auto-loaded
The runtime auto-loads durable steering from the shared substrate. That includes:- bootstrap files
MEMORY.md
- retrieval candidates
- memory search
- session reread
What is searched instead of loaded
These surfaces are primarily searched and reread:- learn store entries
- workspace memory notes
- prior session runtime memory
- prior session summaries and traces
Promotion path
The promotion rule is simple:- capture first
- reuse and verify
- promote only when it becomes durable enough
Design rule
Do not solve every memory problem by making the prompt bigger. Prefer this order:- durable session truth
- runtime artifacts for current continuity
- retrieval and reread for prior truth
- explicit promotion into shared memory only when justified