markdown (agent memory folders)¶
Reads CLAUDE.md-style files, a Claude memory-tool directory (/memories), and Claude Code auto-memory folders (MEMORY.md plus linked files with YAML frontmatter). Verified on real temporary directories.
- One record per file; with
--split auto(default) a file over--max-section-words(800) is split per ATX heading section (--split headingsalways,nonenever). Fenced code never starts a section. - id = path relative to
--root, with#slugfor sections (#preamblefor text before the first heading,-2for repeated headings). Section records carryheading_pathandtitle. - YAML frontmatter keys become metadata (flat); a frontmatter-only file keeps its fields as text.
pathandfilenameare always set. created_atis the file's birth time (modification time where the filesystem has none),updated_atthe modification time.--include/--excludeglobs,--namespace. Symlinks are never followed out of--root; such files, and files that are not UTF-8, are rejected visibly, not skipped.- Text only: needs a server with
local-modelsor--embedder.