Mem0 Search mem0-search
Searches memories and displays compact one-liner results, or looks up a specific memory by ID.
Use it when quick memory lookups, checking if a decision was recorded, resolving [mem0:id] citations, or browsing memories without full category detail.
- Our test
- 7/10✓ Verified
- tested Dec 6, 2026
- GitHub stars
- 70k
- mem0ai/mem0
- Added by
- 0
- members
- Updated
- Dec 6
- commit cae3d8c
- Content
- 1 file
- no scripts · 2 KB
- License
- Apache 2.0
- free to use
What our test found
The skill gives a clear, efficient procedure for scoped memory searches and compact results, though its output-format directions conflict.
Limits spotted
- The example output uses Markdown headers and numbering despite the instruction to avoid Markdown.
- Tool availability and the source of user_id and app_id are assumed rather than specified.
- The full UUID pattern accepts malformed IDs.
name: mem0-search description: Searches memories and displays compact one-liner results, or looks up a specific memory by ID. Use for quick memory lookups, checking if a decision was recorded, resolving [mem0:id] citations, or browsing memories without full category detail.
Mem0 Search
Quick search with compact output. Lighter than /mem0-tour.
Execution
Step 1: Parse query
The user provides a search query: /mem0-search auth middleware
If no query provided, ask: "What should I search for?"
Memory ID detection: If the query matches any of these patterns, treat it as a direct memory ID lookup instead of a search:
- Bare hex:
^[a-f0-9]{8}$(short ID) or^[a-f0-9]{8}-[a-f0-9-]+$(full UUID) - Citation ref:
[mem0:<hex>]— extract the hex portion
When an ID is detected:
- Call
get_memory(<id>)directly (if short ID, try as prefix of full UUID) - If found, skip to Step 3 and display the single result
- If not found, fall through to search using the ID as query text
Step 2: Search
Call search_memories once with the user's question: query=<user's query>, filters={"AND": [{"user_id": "<id>"}, {"app_id": "<pid>"}]}, top_k=10.
Step 3: Display
Show compact results:
## mem0 search: "<query>" (<N> results)
1. [decision] Auth module uses JWT with RS256 keys (2025-05-15) [mem0:a3f8b2c1]
2. [anti_pattern] Don't use symmetric HS256 — leaked in env (2025-05-10) [mem0:7e2d9f4a]
3. [convention] All middleware in src/middleware/ (2025-05-08) [mem0:c4d5e6f7]Format: <number>. [<type>] <content, 80 chars> (<date>) [mem0:<short_id>]
If no results:
No memories matching "<query>" for project <project_id>.Output formatting
IMPORTANT: Do NOT use markdown in your output. OpenCode TUI renders text verbatim — markdown like bold, ## headers, and | table | syntax appears as raw characters. Use plain text with indentation for structure. Use dashes for lists. Use spaces to align columns instead of markdown tables.