/claude-mem:mem-searchfrom claude-mem
Search claude-mem's persistent cross-session memory database. Use when user asks "did we already solve this?", "how did we do X last time?", or needs work from previous sessions.
Ships in claude-mem. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Search past work across all sessions. Simple workflow: search → get IDs → fetch details by ID.
Use when users ask about PREVIOUS sessions (not current conversation):
ALWAYS follow this exact flow:
curl "http://localhost:37777/api/search?query=authentication&format=index&limit=5"
Required parameters:
query - Search termformat=index - ALWAYS start with index (lightweight)limit=5 - Start small (3-5 results)Returns:
1. [feature] Added JWT authentication
Date: 11/17/2025, 3:48:45 PM
ID: 11131
2. [bugfix] Fixed auth token expiration
Date: 11/16/2025, 2:15:22 PM
ID: 10942
When you need to understand "what was happening" around a result:
# Get timeline around an observation ID
curl "http://localhost:37777/api/timeline?anchor=11131&depth_before=3&depth_after=3"
# Or use query to find + get timeline in one step
curl "http://localhost:37777/api/timeline?query=authentication&depth_before=3&depth_after=3"
Returns exactly depth_before + 1 + depth_after items - observations, sessions, and prompts interleaved chronologically around the anchor.
When to use:
Review the index results (and timeline if used). Identify which IDs are actually relevant. Discard the rest.
For each relevant ID, fetch full details:
# Fetch observation
curl "http://localhost:37777/api/observation/11131"
# Fetch session
curl "http://localhost:37777/api/session/2005"
# Fetch prompt
curl "http://localhost:37777/api/prompt/5421"
ID formats:
Basic:
query - What to search for (required)format - "index" or "full" (always use "index" first)limit - How many results (default 5, max 100)Filters (optional):
type - Filter to "observations", "sessions", or "prompts"project - Filter by project namedateStart - Start date (YYYY-MM-DD or epoch timestamp)dateEnd - End date (YYYY-MM-DD or epoch timestamp)obs_type - Filter observations by type (comma-separated): bugfix, feature, decision, discovery, changeFind recent bug fixes:
curl "http://localhost:37777/api/search?query=bug&type=observations&obs_type=bugfix&format=index&limit=5"
Find what happened last week:
curl "http://localhost:37777/api/search?query=&type=observations&dateStart=2025-11-11&format=index&limit=10"
Search everything:
curl "http://localhost:37777/api/search?query=database+migration&format=index&limit=5"
Token efficiency:
Clarity:
If search fails, tell the user the worker isn't available and suggest:
pm2 list # Check if worker is running
Remember: ALWAYS search with format=index first. ALWAYS fetch by ID for details. The IDs are there for a reason - USE THEM.
operations/by-concept.md (opens in a new tab)operations/by-file.md (opens in a new tab)operations/by-type.md (opens in a new tab)operations/common-workflows.md (opens in a new tab)operations/formatting.md (opens in a new tab)operations/help.md (opens in a new tab)operations/observations.md (opens in a new tab)operations/prompts.md (opens in a new tab)operations/recent-context.md (opens in a new tab)operations/sessions.md (opens in a new tab)operations/timeline-by-query.md (opens in a new tab)operations/timeline.md (opens in a new tab)principles/anti-patterns.md (opens in a new tab)principles/progressive-disclosure.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub fabio29t/claude-memory --plugin claude-mem2 plugins ship this exact skill · first indexed Jul 17, 2026