OpenProgram Docs

Memory settings UI

RouteShows
/memoryStandard 64px title bar with a Memory settings link. Topics, Timeline, Recent and Core above the Topic tree. No Topics yet: an empty state linking to settings.
/settings/memoryLifecycle summary, then the controls below, on the shared Settings header, gutter, section and row styles. The summary is the only Memory-specific structure.

Lifecycle summary: Capture, Write (writer model), Store (Local + Git, or Disabled), Recall (method, warning when it needs an embedding that is missing). At 720px the section list, tree and content stack and Memory navigation stays.

Controls

ControlKeyValues, default
Enable Memorymemory.backendon (local), off (none). Needs a restart.
StorageRead-only: Topic Markdown, derived views, Git history
Writer modelmemory.writer.modelAutomatic (default Agent's model, else last used) or an enabled model
Automatic writingmemory.writer.enabledon
Write frequencymemory.writer.trigger_tokens8K, 16K, 32K
Verify after writingmemory.writer.verifyoff
Recall methodmemory.retrieval.methodAgent, Keyword (BM25), Semantic, Hybrid
Embedding modelStatus, plus Install while missing: about 1 GB with the packages, about 90 MB without
Hybrid weightingmemory.retrieval.hybrid.weightingWeights: Memory settings. Default Automatic. Hybrid only.
Favour well-matched Topicsmemory.retrieval.hybrid.file_booston. Hybrid only.
Recall depthmemory.retrieval.top_k3, 5, 8, 10. Off in Agent mode.
Project memorymemory.layers.projecton
Write to project memorymemory.layers.project_writeson. Needs Project memory.
Core Memory in every chatmemory.core.injecton; independent of the recall method
Recent view sizememory.recent.limit25, 50, 100
WorkspaceRead-only path; Runtime-managed files stay read-only
  • One schema for Settings, CLI and TUI.
  • Each change posts to POST /api/settings at once; there is no Save button. A rejected write restores the old value and shows an inline error.
  • Enable Memory explains the restart in its description, with no "Next start" badge: the API has no pending-restart state.
  • No external API permission controls.

Agent mode

Agent · On demand runs no automatic BM25, embedding or hybrid query. The Agent reads with memory_get, and memory_search falls back to exact line matching.

Embedding install

  1. POST /api/memory/embedding/install refuses at once on Intel macOS, with a message naming BM25 or a supported platform.
  2. In a worker thread, install sentence-transformers and torch, then download the fixed encoder configuration, tokenizer and safetensors weights.
  3. Verify the packages resolve and every required file exists and is non-empty, without constructing the encoder.

A failure returns 502 with the error and leaves the recall method alone. Semantic and Hybrid stay disabled until packages and snapshot are present; saving either repeats the full availability check. See Recall.

Loading

Request on entryContract
GET /api/settings?scope=memoryThe memory.* rows. Its failure shows an error and leaves controls disabled.
GET /api/memory/status?settings=trueworkspace_path, embedding_available, embedding_packages. Skips store.ensure() and the workspace inspector; checks files and package specs without importing numerical code or loading weights.
/api/models/enabledWriter choices. Runs in FastAPI's worker thread, off the event loop.

The page appears once, whole, after all three settle. A failed status or model request does not block the settings rows. No agent runtime settings are requested.

Layout and neighbouring pages
  • Lifecycle cards keep their intrinsic height in the scrolling column and never flex-shrink behind overflow: hidden.
  • A long writer-model label shrinks inside the control cluster, not the left title or description.
  • Entering Settings prefetches only Token Usage and the schema settings and system access. Providers, Search and Channels request their data when opened.

Memory overview

Last updated · 2026-11-25