mem-search
GitHub用于搜索历史记忆、过往会话记录及问题解决经验的技能。通过分层工作流,依次执行索引查询、上下文时间线获取、详细观察记录提取及原始工具调用回溯,以精准定位并复用历史工作内容。
Trigger Scenarios
Install
npx skills add thedotmack/claude-mem --skill mem-search -g -y
SKILL.md
Frontmatter
{
"name": "mem-search",
"description": "Use this when the user asks to search memory, \"did we already solve this?\", \"how did we do X last time?\", or wants work from previous sessions."
}
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.
search(query)— index with IDstimeline(anchor=ID)— nearby contextget_observations(ids=[...])— full details for those IDs onlyget_tool_uses(ids=[...])— the ORIGINALtool_input/tool_responsefor specific tool calls. Last resort: these are unsummarized and can run to thousands of tokens each.
The worker also live-writes a growing ID INDEX to agents/<this-seat-uuid>/memory/log/zz-claude-mem-inject.md (host Memory mid-attach). Use those IDs with get_observations. Thin seat diaries are filled from newest house observations. Disable with CLAUDE_MEM_GROK_BOT_INJECT_ENABLED=false.
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>).
Version History
- 4520de9 Current 2026-09-23 05:11


