Overview
Memory tools let the agent recall past conversations, decisions, and preferences stored in memory files. The memory system indexesMEMORY.md, all files under memory/*.md, and recent chat history. Searches use a hybrid approach combining vector similarity (semantic) and full-text search (BM25) for best results.
Tools
memory_search
Semantically search memory files and chat history.
Security level: safe | Tier: Standard
Minimum relevance score threshold (0.0-1.0). Lower values return more results but may include irrelevant matches.
memory_get
Read a specific section from a memory file by path and line range.
Security level: safe | Tier: Standard
Use this after memory_search returns a match - read the full context around the matched snippet.
memory_stats
Show memory system statistics.
Security level: safe | Tier: Standard
Returns: total indexed files, total chunks, last indexed timestamp, and available memory sources.
Memory File Locations
Writing to Memory
Memory tools only read - they do not write. To save information to memory, usewrite_file or edit_file to update MEMORY.md directly:
Memory Isolation
Each conversation operates within anIsolationContext that restricts which memory paths are accessible. In multi-user setups, different users see different memory namespaces. Shared project memory is accessible to all sessions that share a projectId.
Related Tools
File Operations
Read and write memory files directly.
Sessions
Share memory context across spawned sessions.