The memory loop
Stormbuffer holds reviewed long-term memory for agents. The agent host retains the current conversation and temporary task state. Stormbuffer keeps the smaller set of sourced knowledge that should affect work in a later session.
Choose where knowledge belongs
| Layer | What it owns | Examples |
|---|---|---|
| Agent host | The current conversation and temporary working state | Recent messages, tool output, a short-lived plan |
| Project store | Durable knowledge tied to one repository | Architecture decisions, local commands, constraints, resumable checkpoints |
| Global store | Durable knowledge that follows one person across projects | Stable preferences, cross-project procedures, recurring environment constraints |
Repository documentation remains the authority for facts it already explains. A memory can point an agent to that material or explain how to apply it. Copying the documentation into Stormbuffer creates another version to maintain.
Use memory during work
- Search once for the exact topic when prior context may affect the work.
- Use applicable active records and cite the IDs that affect the answer or implementation.
- Continue the task without recording the conversation or sweeping it for memories.
- A correction, accepted decision, confirmed surprising cause, undocumented constraint, stale record, or necessary handoff can trigger one memory evaluation.
- Propose one sourced candidate if the knowledge will change future work. A person approves, edits, or rejects it.
- Supersede a stale record with its replacement so both the correction and its history remain visible.
A trigger permits evaluation; it does not require a new record. Routine success, temporary progress, generic knowledge, duplicated documentation, speculation, and secrets do not belong in the store. Most sessions should produce no candidate.
Review the store
Each active record should:
- make sense without the original conversation;
- cover one fact, decision, procedure, or checkpoint;
- name an attributable source;
- live in the narrowest useful scope;
- change a likely future decision or action; and
- be easy to correct, supersede, archive, or delete.
Judge the store by later retrieval. An agent should find the relevant evidence within the context budget, cite it, and use it. Record count says little if agents cannot find or apply the contents.
See How storage works for the canonical storage boundary and Data model for record kinds and lifecycle.