Purpose
mem_search is the first tool you should use when looking for relevant context from past coding sessions. It searches across all projects and returns a compact index of matching observations. Use this to find relevant IDs, then call mem_get to retrieve full details.
This tool provides a lightweight way to discover what’s in memory without loading full observation details.
Parameters
Search query — keywords or natural language
Filter by project name (optional — omit to search across all projects)
Max results to return (max: 20)
Response Format
Returns a text summary with:- Total number of matches
- Project scope (specific project or all projects)
- List of observations with:
[ID:n]- Observation ID for use withmem_getormem_timeline- Date of observation
- Tool name used
- Related files (if any)
- Summary text
Usage Example
Search across all projects:Tips
- Start here first: Always use
mem_searchbeforemem_getto avoid loading unnecessary data - Use natural language: The query understands both keywords and natural language
- Filter by project: Use the
projectparameter when you know the context is project-specific - IDs are reusable: Save IDs from search results to use with
mem_getormem_timeline - Default limit is conservative: Default is 5 results to save tokens. Increase if you need broader coverage