Searches memories and displays compact one-liner results, or looks up a specific memory by ID. Use for quick memory lookups, checking if something was recorded,
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-search-2b3004c9d120 ,按照其中的说明把「search」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Quick semantic search with compact output. Lighter than /mem0-tour.
The user provides a search query: /mem0-search favorite restaurants
If no query provided, ask: "What should I search for?"
Memory ID detection: If the query matches a UUID pattern (^[a-f0-9-]{20,}$), treat it as a direct memory lookup instead of a search.
Use mem0_memory tool with action="search", query=<user's query>.
Show compact results:
## mem0 search: "<query>" (<N> results)
1. [preferences] Prefers window seats on flights (2026-05-15) [mem0:a3f8b2c1]
2. [goals] Wants to visit Japan in 2027 (2026-05-10) [mem0:7e2d9f4a]
3. [identity] Lives in San Francisco (2026-05-08) [mem0:c4d5e6f7]
Format: <number>. [<category>] <content, 80 chars> (<date>) [mem0:<short_id>]
If no results:
No memories matching "<query>".