---
id: sm-mem-search
name: "mem-search"
url: https://skills.yangsir.net/skill/sm-mem-search
author: thedotmack
domain: ai-agent-memory-knowledge
tags: ["memory-search", "knowledge-retrieval", "semantic-search", "information-management", "ai-search"]
install_count: 9600
rating: 4.50 (70 reviews)
github: https://github.com/thedotmack/claude-mem
---

# mem-search

> 搜索所有会话中的历史工作记录，提供搜索、过滤和获取的简单工作流，用于回顾过往信息，提升工作效率。

**Stats**: 9,600 installs · 4.5/5 (70 reviews)

## Before / After 对比

### 高效回顾历史工作记录与信息

## Readme

# mem-search

Layered workflow. Do not dump full observations until IDs are filtered, and do not reach for raw tool bodies until the summaries came up short.

1. `search(query)` — index with IDs
2. `timeline(anchor=ID)` — nearby context
3. `get_observations(ids=[...])` — full details for those IDs only
4. `get_tool_uses(ids=[...])` — the ORIGINAL `tool_input` / `tool_response` for specific tool calls. Last resort: these are unsummarized and can run to thousands of tokens each.

Stamp `platformSource` as `cursor` or `grok-bot` on writes for this host. When reading, do not drop the other host unless asked.

If MCP is missing, run the install skill first (`npx claude-mem install --ide <host>`).


---
*Source: https://skills.yangsir.net/skill/sm-mem-search*
*Markdown mirror: https://skills.yangsir.net/api/skill/sm-mem-search/markdown*