360 Secure SkillHub
360 安全技能中心

mem-search

通过 MCP 提供的 search、timeline、get_observations、get_tool_uses 四层检索历史会话记忆:先按 ID 过滤得到索引,再补充时间线上下文,随后按需展开观察详情,最后才取原始工具调用内容;写入时标记平台来源,读取时不丢弃其他宿主记录;缺少 MCP 时先执行安装命令。

分类:知识
thedotmack
热度 63.93
最近更新 2026-10-18 22:45:40

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add thedotmack/claude-mem/mem-search
兼容性
通用兼容
联网要求
联网要求未确认
数据出网
数据出网未确认
Metadata
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.

  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>).