mem-search
它能做什么
这个工具可以帮助 AI 记住过去的对话和工作内容。它可以搜索自己的记忆,找出之前做过什么,或某个问题是如何解决的。
适用场景
- ✓当你想确认某个问题是否已经解决过时。
- ✓当你需要回忆之前某次会话中是如何做某件事的时候。
- ✓当你想接着在另一段对话中停下的工作继续做时。
技能链接
https://github.com/thedotmack/claude-mem/blob/main/claude-mem-cursor/skills/mem-search/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在我的记忆中搜索上周我们是如何解决路线优化问题的。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会先在记忆中查找相关信息。如有需要,它还可以调取更深入的细节,甚至是之前发生过的具体交互内容。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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.
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>).
常见问题
什么是“ID”?
ID 就像唯一的标签,AI 用它来识别和整理记忆中的不同信息。
为什么 AI 不会一次性显示全部内容?
AI 会逐步显示信息,这样更高效,也不会用不必要的细节打扰你。只有当你提出要求,或初始信息不够时,它才会显示更多细节。
“tool_input”和“tool_response”是什么?
它们是 AI 与其他工具或系统交互时使用的具体指令,以及收到的回应。这些是非常技术性的细节,通常不需要关注。
详情
作者的原始描述
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.
repo: thedotmack/claude-mem
热度
- GitHub 星标
- 101k
- 排名
- #1262
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
Agent Cost Report
101k让你的智能体生成其活动的详细成本报告。显示在 token 和服务上花费了多少。
claude-mem-install
101k帮助你的智能体在不同环境中设置 Claude-Mem。你可以选择使用本地或远程工作进程,并配置观察功能。
host-observer
101k帮助你的智能体响应 Claude-Mem 观察者任务。它只能回复“skip_summary”或完整的 XML 观察记录。
mem-setup
101k让你的智能体与用户一起设置 Claude-Mem。它会连接用户的账户,并配置云同步。