Two-layer memory system with grep-based recall.
memory/MEMORY.md — Long-term facts (preferences, project context, relationships). Always loaded into your context.memory/HISTORY.md — Append-only event log. NOT loaded into context. Search it with grep-style tools or in-memory filters. Each entry starts with [YYYY-MM-DD HH:MM].Choose the search method based on file size:
memory/HISTORY.md: use read_file, then search in-memorymemory/HISTORY.md: use the exec tool for targeted searchExamples:
grep -i "keyword" memory/HISTORY.mdPrefer targeted command-line search for large history files.
Write important facts immediately using edit_file or write_file:
Old conversations are automatically summarized and appended to HISTORY.md when the session grows large. Long-term facts are extracted to MEMORY.md. You don't need to manage this.