mem0-search

mem0-search is a skill for Claude Code, Codex from mem0ai/mem0. It costs 54 tokens per session (566 once invoked), scanned A, original, Apache-2.0.

A quick memory lookup tool that searches saved mem0 memories or opens one by its ID. An ID is the short code used to identify a specific memory.

In plain words
What is it for?
Use it to search for project information, find recorded decisions, or resolve a memory citation.
Why use it?
It makes it easier to check whether a decision was recorded without browsing every stored memory.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit Use it to search for project information, find recorded decisions, or resolve a memory citation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mem0ai/mem0/mem0-search
About the project

mem0 is memory infrastructure that lets AI agents and applications store and retrieve information across interactions. It supports agents and developers who need persistent context for AI systems.

mem0ai/mem0 · 67,242 stars · on GitHub · mem0.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mem0ai/mem0 --skill mem0-search
Clone the repo
git clone --depth 1 https://github.com/mem0ai/mem0

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mem0-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/mem0ai/mem0/mem0-search/github.svg)](https://agentmods.dev/skills/mem0ai/mem0/mem0-search)
Your own site
<a href="https://agentmods.dev/skills/mem0ai/mem0/mem0-search"><img src="https://agentmods.dev/badge/skills/mem0ai/mem0/mem0-search/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mem0-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/mem0ai/mem0/mem0-search"><img src="https://agentmods.dev/badge/skills/mem0ai/mem0/mem0-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 566 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00566
Opus 5.5 $0.00022 $0.00226
Sonnet 5.5 $0.00011 $0.00113
Haiku 4.5 $0.00005 $0.00057

Measured 22d ago against content hash 35d8cd15b4f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mem0-search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

integrations/opencode-plugin/opencode-skills/mem0-search/SKILL.md · 54 lines

What it actually says

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:

  1. Call get_memory(<id>) directly (if short ID, try as prefix of full UUID)
  2. If found, skip to Step 3 and display the single result
  3. 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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 22d ago Changed · -3 lines 35d8cd15b4f3
  2. 1mo ago First seen · 57 lines · 54 tokens per session scan A 44b879077e7d

Subscribe to this mod's changes

mem0-search is a skill published in the GitHub repository mem0ai/mem0 (67,242 stars, last pushed yesterday), licensed Apache-2.0. It adds 54 tokens to every session and 566 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pinecone-research

Agent RAG and long-term memory with Pinecone.

NousResearch/hermes-agent · 16 tokens

browserwing-executor

Control browser automation through HTTP API. Supports page navigation, element interaction (click, type, select), data extraction, accessibility snapshot analysis, screenshot, JavaScript execution, and batch operations.

MemTensor/MemOS · 42 tokens

dev-browser

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website"…

MemTensor/MemOS · 84 tokens

ask-user-question

Ask users questions via the UI. Use when you need clarification, user preferences, or confirmation before proceeding. The user CANNOT see CLI output - this tool is the ONLY way to communicate with them.

MemTensor/MemOS · 44 tokens

memos-memory-guide

Use the MemOS Local memory system to search and use the user's past conversations. Use this skill whenever the user refers to past chats, their own preferences or history, or when you need to answer from prior context. When auto-recall returns nothing (long or unclear user query), generate your own short search query…

MemTensor/MemOS · 131 tokens

browserwing-admin

Manage and operate BrowserWing — an intelligent browser automation platform. Install dependencies, configure LLM, create/manage/execute automation scripts, use AI-driven exploration to generate scripts, browse the script marketplace, and troubleshoot issues.

MemTensor/MemOS · 47 tokens