Built-in memory tool: file-backed persistent memory #716

Closed
opened 2026-10-27 13:37:27 +00:00 by sam · 0 comments
Owner

Implement the built-in file-backed memory tool that persists to MEMORY.md and USER.md files. This replaces the current ephemeral memoryNotes system with durable on-disk storage that survives restarts and sessions.

Acceptance Criteria

Built-in provider lives in internal/memory/builtin package
MEMORY.md stores persistent agent memory (facts, preferences, state across sessions)
USER.md stores user-provided context (background, instructions, preferences)
Both files are bounded (configurable max size, default 100KB per file)
Files are read at provider initialization and written on every mutation
File format is plain markdown with sections
Thread-safe reads and writes (sync.RWMutex)
Files live under the profile's memory directory (e.g., ~/.config/archie/profiles/{profile}/memory/)


Imported from beads archie-core-1786637494804-191-0907551f · GitHub #212 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08

Implement the built-in file-backed memory tool that persists to MEMORY.md and USER.md files. This replaces the current ephemeral memoryNotes system with durable on-disk storage that survives restarts and sessions. ### Acceptance Criteria Built-in provider lives in internal/memory/builtin package MEMORY.md stores persistent agent memory (facts, preferences, state across sessions) USER.md stores user-provided context (background, instructions, preferences) Both files are bounded (configurable max size, default 100KB per file) Files are read at provider initialization and written on every mutation File format is plain markdown with sections Thread-safe reads and writes (sync.RWMutex) Files live under the profile's memory directory (e.g., ~/.config/archie/profiles/{profile}/memory/) --- _Imported from beads `archie-core-1786637494804-191-0907551f` · GitHub #212 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam added the mediumtask labels 2026-10-27 13:37:27 +00:00
sam self-assigned this 2026-10-27 13:37:27 +00:00
sam closed this issue 2026-10-27 13:37:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#716