Search memories from earlier Coding Agent sessions in this repository. Use it when earlier work may already explain the code, error, decision, or command you ne
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-search-1419d43ac57a ,按照其中的说明把「search」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Call search_memories with the user's question. Treat --top-k, --category,
--scope, and --run-id as tool arguments instead of including them in the
query.
Omit top_k to use Mem0's configured default. Omit category to search every
category. Omit scope to use the configured default, normally repo: this
repository's shared memory, which everyone who works in it contributes to,
plus your own preferences.
Pass scope when the question needs something else: dir to narrow the
shared memory to the directory you are working in (a package inside a
monorepo), mine for your own preferences alone.
Pass run_id with any scope to retrieve memories saved in a specific coding-agent
session. Omit run_id to search across sessions. It filters the memories returned;
it does not identify the session making the search request. Use a known session ID,
never invent one. Return the tool's result directly.