Skip to main content

Module scanner

Module scanner 

Source
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§

MemoryHeader
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.