Expand description
Memory file scanner and relevance-based selection.
Scans the memory directory for .md files, reads frontmatter headers, and selects relevant memories based on description matching. Caps at 200 files, returns newest-first.
Structs§
- Memory
Header - A scanned memory file header (metadata only, not full content).
Functions§
- scan_
memory_ files - Scan the memory directory for all .md files (excluding MEMORY.md). Returns headers sorted by modification time (newest first), capped at 200.
- select_
relevant - Select the most relevant memories for a given conversation context.