mem0-search

Searches mem0 memories and displays compact one-liner results or direct ID lookups.

64.5k|7.6k|Updated Jun 20, 2023
One-click install
npx skills add https://github.com/mem0ai/mem0 --skill mem0-search
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mem0-search
Source: https://github.com/mem0ai/mem0/tree/main/integrations/mem0-plugin/.opencode-plugin/opencode-skills/mem0-search
Command: npx skills add https://github.com/mem0ai/mem0 --skill mem0-search

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finding a specific stored memory in a large mem0 memory store is slow when you must browse full category listings. This Skill runs quick memory searches with compact output, letting you check whether a decision was recorded, resolve [mem0:id] citations, or look up a memory by ID without loading full detail.

Core Features & Use Cases

  • Compact Search Results: Runs parallel broad and decision-targeted search_memories queries, deduplicates results, and displays one-line summaries with type, date, and short ID.
  • Direct Memory ID Lookup: Detects bare hex IDs, full UUIDs, and [mem0:<hex>] citation references and fetches the memory directly via get_memory.
  • Plain-Text Output: Formats results without markdown so they render correctly in the OpenCode TUI.
  • Use Case: While reviewing code, you encounter a [mem0:a3f8b2c1] citation in a comment. Run the search with that reference to instantly retrieve the original recorded decision about JWT authentication.

Quick Start

Ask the assistant to search mem0 memories for "auth middleware" to see compact matching results.

Frequently Asked Questions about mem0-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search mem0 memories from the command line?

Invoke the mem0-search skill with a query such as "/mem0-search auth middleware". It runs parallel broad and decision-targeted search_memories calls, deduplicates results, and shows compact one-line summaries with type, date, and short ID.

How do I look up a mem0 memory by its ID?

Pass the hex ID, full UUID, or a [mem0:<hex>] citation reference as the query. The skill detects the ID pattern and calls get_memory directly; if the lookup fails, it falls back to a text search using the ID as the query.

What is the difference between mem0-search and mem0-tour?

mem0-search is a lighter command that returns compact one-line results for quick lookups, while mem0-tour provides full category detail for browsing memories in depth.

Why does mem0-search output avoid markdown formatting?

The OpenCode TUI renders text verbatim, so markdown syntax like bold, headers, and tables would appear as raw characters. The skill uses plain text with indentation and dashes for structure instead.

What happens when a mem0 search returns no results?

The skill displays a plain message stating that no memories match the query for the current project ID, rather than showing an empty or malformed result list.