mem-search (Past-Session Memory Lookup)
Retrieves work from previous sessions in claude-mem through a layered, token-efficient lookup flow.
What it does
Triggers on questions like "did we already solve this?" or "how did we do X last time?" and queries the claude-mem store using a strict layered workflow:
search(query)— an ID-bearing index onlytimeline(anchor=ID)— surrounding contextget_observations(ids=[...])— full detail for the filtered IDs onlyget_tool_uses(ids=[...])— originaltool_input/tool_response(last resort; thousands of tokens each)
The governing rule — narrow by ID first, reach for raw bodies only when summaries fall short — is what keeps context spend low. It also consumes the live ID index written to zz-claude-mem-inject.md and instructs stamping platformSource as cursor or grok-bot on writes.
Who it's for
- Anyone already running claude-mem and persisting session history
- Devs switching between hosts (Cursor, grok-bot) on the same project
- People who keep blowing their context window on long sessions
Examples
- "How did we fix that deploy error before?" → search for candidate IDs, expand only 2–3 observations
- "Pull up the context on last week's auth refactor" → timeline reconstructs the surrounding work
- Summaries insufficient → fetch raw tool responses for one specific call ID
Prerequisite: the claude-mem MCP server must be connected. If not, run
npx claude-mem install --ide <host>first.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/thedotmack/claude-mem/HEAD/claude-mem-grok-bot/skills/mem-search/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the claude-mem-grok-bot/skills/mem-search folder from the GitHub repo thedotmack/claude-mem into my ~/.claude/skills/thedotmack-mem-search-3/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/thedotmack/claude-mem.git && mkdir -p ~/.claude/skills && cp -r claude-mem/claude-mem-grok-bot/skills/mem-search ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/thedotmack/claude-mem.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r claude-mem/claude-mem-grok-bot/skills/mem-search ~/.claude/skills/ - If the claude-mem MCP isn't installed yet, run
npx claude-mem install --ide claude-code(substitute your host). - Restart Claude Code, then ask "how did we solve this last time?" to confirm the skill fires.
- To disable the automatic ID-index injection, set
CLAUDE_MEM_GROK_BOT_INJECT_ENABLED=false.