Summary
memory_search currently only searches MEMORY.md and memory/*.md (single depth). Files inside subdirectories like memory/2026-02/2026-02-15.md are not included in search results.
Use Case
As daily memory files (memory/YYYY-MM-DD.md) accumulate over months, users may want to organize them into monthly subdirectories (memory/2026-02/, memory/2026-03/, etc.) for better file management. However, doing so breaks memory recall since those files become invisible to memory_search.
Proposal
Change the search glob from memory/*.md to memory/**/*.md (recursive) so that markdown files in subdirectories are also indexed and searchable.
Impact
- The search is embedding-based, so adding more files from subdirectories should have minimal performance impact (same total file count, just different directory structure).
- This would be a non-breaking change — existing flat-structure setups would work identically.
Environment
- OpenClaw version: 2026.2.26
- Local embedding model: nomic-embed-text-v1.5
Summary
memory_searchcurrently only searchesMEMORY.mdandmemory/*.md(single depth). Files inside subdirectories likememory/2026-02/2026-02-15.mdare not included in search results.Use Case
As daily memory files (
memory/YYYY-MM-DD.md) accumulate over months, users may want to organize them into monthly subdirectories (memory/2026-02/,memory/2026-03/, etc.) for better file management. However, doing so breaks memory recall since those files become invisible tomemory_search.Proposal
Change the search glob from
memory/*.mdtomemory/**/*.md(recursive) so that markdown files in subdirectories are also indexed and searchable.Impact
Environment