Memory
Fased memory is workspace-owned Markdown plus optional search indexes. The Markdown files are the durable source of truth; search backends only help the Agent retrieve relevant snippets.Layers
| Layer | Role |
|---|---|
| Agent workspace | Each Agent has its own workspace path. |
| Markdown files | Durable memory such as MEMORY.md and Markdown files under memory/. |
| Session archive hook | Optional hook that writes session artifacts on /new or /reset. |
| Memory plugin | Usually memory-core; exposes memory tools to the Agent. |
| Search backend | Builtin SQLite full-text/embedding index, or optional QMD sidecar. |
What gets recorded
Memory is recorded only when something writes it:- the user asks the Agent to remember something
- the Agent writes to
MEMORY.mdor a Markdown file undermemory/ - the
session-memoryhook archives a session on/newor/reset - a pre-compaction flush asks the model to store durable notes
- a human edits workspace Markdown files
/new or /reset has written an
archive.
Memory is not a secret store. Keep API keys, credentials, and private runtime
settings in configuration or the OS secret store, not in MEMORY.md.
How memory is read
Fased does not inject every memory file into every prompt.MEMORY.mdand other bootstrap files may be loaded at session start, within bootstrap limits.- Markdown files under
memory/are normally retrieved on demand. memory_searchreturns snippets with source paths and line ranges.memory_getreads a specific allowed memory file or range.
Task memory
Tasks use the owning Agent’s memory policy.| Scope | Behavior |
|---|---|
none | Prior transcript context is omitted; memory/session-history tools are hidden. |
session-summary | Compact session context only; memory/session-history tools are hidden. |
pinned | Direct or pinned memory only; broad memory search and session history are hidden. |
search | Memory search and direct memory reads can be available when policy allows. |
agent | Use the Agent’s normal memory policy. |
File layout
Default workspace layout:MEMORY.md: curated durable facts, preferences, and decisions.memory/*.md: archived session summaries, daily notes, and running context.
Memory Doctor
Use Memory Doctor to inspect readiness before changing files:Search backends
The default backend indexes Markdown files and can use vector search when an embedding provider is configured. Optional QMD mode uses a local sidecar:Vector search
Vector search lets natural-language queries find related notes even when wording differs. Supported provider modes include:autoopenaiwith optional OpenAI-compatibleremote.baseUrlgeminivoyagemistralollamalocal
node-llama-cpp and a local GGUF
model path or supported hf: model URI.
Session transcript search
Session transcript indexing is optional and experimental. When enabled, Fased can index sanitized session transcript snippets for the same Agent. Important boundaries:- off by default
- indexed asynchronously
- isolated per Agent
- snippets only;
memory_getremains limited to memory files - disk access remains the trust boundary
When to write memory
Write memory when information should survive the current context window:- durable preferences
- decisions
- stable project facts
- recurring workflow notes
- names, routes, and constraints the Agent should remember