Memory Config Reference
Normal users should start with Agent > Memory. This page is the operator reference for the config fields behind that UI. Fased memory has four layers:- Workspace Markdown files:
MEMORY.mdandmemory/*.md. - Session archive hook: writes lightweight artifacts during
/newand/resetwhen enabled. - Memory tools:
memory_searchandmemory_get, normally provided by thememory-coreplugin. - Search backend: builtin SQLite/vector index by default, or optional QMD.
MEMORY.md and memory/*.md, then writes a compiled read-only Markdown view
under the Fased state directory. Rebuild it from Agent > Memory > Rebuild
wiki or the doctor.memory.wiki.rebuild RPC.
Default Layout
| Path | Purpose |
|---|---|
<workspace>/MEMORY.md | Canonical curated memory file. Fased creates it during workspace setup. |
<workspace>/memory/ | Daily/session/topic memory Markdown files. |
<workspace>/memory.md | Compatibility root only. Missing is not an error when MEMORY.md exists. |
~/.fased/memory/<agentId>.sqlite | Builtin memory search index by default. |
~/.fased/memory-wiki/<agentId>/ | Deterministic read-only Memory Wiki export. |
~/.fased/agents/<agentId>/qmd/ | QMD home when memory.backend = "qmd". |
Agent Memory Search
Configure memory search underagents.defaults.memorySearch and optionally
override per Agent with agents.list[].memorySearch.
| Field | Purpose |
|---|---|
enabled | Enables memory tools for Agents that can use them. |
sources | "memory" indexes Markdown memory files. "sessions" is gated by experimental session-memory indexing. |
extraPaths | Extra Markdown files or directories to index. Keep paths reviewed. |
provider | Embedding provider: openai, gemini, voyage, mistral, or local. |
remote.baseUrl / remote.apiKey / remote.headers | Custom remote embedding endpoint settings. |
remote.batch.* | Batch embedding indexing for supported remote providers. |
local.modelPath | GGUF path or supported local model reference for local embeddings. |
fallback | Fallback provider when the primary provider fails. Use "none" for strict local-only behavior. |
store.path | SQLite store path. Supports {agentId}. |
query.hybrid.* | BM25 + vector search merge settings. |
cache.* | In-process memory search cache settings. |
sync.* | File watcher/session sync controls. |
memorySearch.remote.apiKey.
Builtin Backend
The builtin backend indexes Markdown memory files and servesmemory_search
snippets with path and line metadata.
Use builtin memory when:
- you want the default setup
- you want fewer moving parts
- you do not need a QMD sidecar
- you want Agent > Memory diagnostics without installing extra tools
MEMORY.mdmemory/**/*.md- reviewed
extraPaths - optional session sources when configured
QMD Backend
QMD is optional and experimental. Enable it only when you want a local sidecar for BM25/vector/rerank style memory retrieval.qmdbinary on the GatewayPATH, or setmemory.qmd.command.- Bun and SQLite support expected by QMD.
- macOS or Linux. Windows is best through WSL2.
| Field | Purpose |
|---|---|
memory.backend | "builtin" or "qmd". |
memory.citations | auto, on, or off snippet citation behavior. |
memory.qmd.command | QMD executable path. |
memory.qmd.searchMode | search, vsearch, or query. |
memory.qmd.includeDefaultMemory | Index workspace MEMORY.md and memory/**/*.md. |
memory.qmd.paths[] | Additional QMD collections. |
memory.qmd.sessions.enabled | Export sanitized session transcripts to a QMD collection. |
memory.qmd.update.* | Refresh and embedding cadence/timeouts. |
memory.qmd.limits.* | Result, snippet, injected char, and timeout caps. |
memory.qmd.scope | Session/channel policy for where QMD recall is allowed. |
Session Archive Hook
Thesession-memory hook writes session artifacts when a session is reset or a
new session starts. Agent > Memory is the normal control surface.
Seeing memory/ - directory, 0 markdown files usually means the archive path is
ready but no qualifying /new or /reset event has written content yet.
Memory Wiki Export
Memory Wiki is an operator export, not automatic recall. It compiles reviewed memory Markdown into~/.fased/memory-wiki/<agentId>/index.md and source pages.
Properties:
- source files stay in the Agent workspace
- output files stay under the Fased state directory
- filenames are capped and sanitized
- reads and writes use root-confined filesystem helpers
- rebuild is explicit and audited as an admin RPC
Task Memory Scope
Tasks use the owning Agent’s memory policy. A task may still block memory tools depending on its memory scope:| Scope Behavior | Effect |
|---|---|
| No memory | Prior transcript context is cleared and memory tools are hidden. |
| Restricted memory | Only the configured memory/session tools are shown. |
| Agent/search memory | memory_search and memory_get can be available if the memory plugin and tool policy allow them. |
Diagnostics
Use these surfaces:- Agent > Memory: selected Agent archive state, roots, backend, QMD, plugin, and validation.
- Memory page: cross-Agent diagnostics and memory overview.
- Advanced > Debug: Memory Doctor repair preview and gated repair.
fased memory status --agent <id>fased memory doctor --agent <id>