Agent skill · mem0ai
search
Search memories from earlier Codex sessions in this repository. Use it when earlier work may already explain the code, error, decision, or command you need, so you can avoid repeating file reads, searches, or experiments.
What it needs
About 1k tokens when loaded.
What this skill does
Search memories Call searchmemories with the user's question. Treat --top-k, --category, --scope, and --run-id as tool arguments instead of including them in the query. Omit topk to use Mem0's configured default. Omit category to search every category; a category is a best-effort label Mem0 assigned when it saved the memory, so if a category search misses, repeat it without the 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 runid with any scope to retrieve memories saved in a specific coding-agent session. Omit runid 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.
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills mem0ai/search--eadb5b