recall
它能做什么
这项技能在智能体的记忆中搜索某个主题在之前会话中做过或决定过的事情。适合希望快速接上之前工作线索的人。
适用场景
- ✓当你问“我们之前对某个主题做过什么”或“我们是否处理过某件事”的时候。
- ✓当你想在开始新工作之前,调回先前会话的背景时。
- ✓当你想检查某个问题是否曾经出现过时。
技能链接
https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/recall/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们是否决定过如何轮换登录令牌?请找出我们为此保存过的内容。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会对已保存的记忆进行关键词与语义相结合的搜索,并返回匹配结果。它只显示搜索实际找到的内容,并在可用时附上会话和重要性信息。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
The user wants to recall past context about: $ARGUMENTS
Quick start
memory_smart_search { "query": "jwt refresh token rotation", "limit": 10 }
Expected output:
2 results across 2 sessions.
[importance 8] decision · "Rotate refresh tokens on every use" (session 7f3a9c21)
[importance 5] code · "limit.ts counts per-IP" (session b21d004e)
Why
Only surface what the tool returned. Never fabricate an observation, a session id, or an importance score. If nothing comes back, say so.
Workflow
- Call
memory_smart_searchwith the user's text asqueryandlimit: 10. Passprojectwhen the user scopes to a specific repo andagentIdwhen they request one agent's history. UsetargetLayer: "memory"for explicitly saved knowledge, ortargetLayer: "observation"for captured activity. Omit it for mixed search. - Search results are compact. Before quoting full content or describing
provenance, call
memory_smart_searchwith the selected IDs as a comma-separatedexpandIdsstring and the same project, agent, and layer filters. If expansion fails or the record is no longer available, report that limitation; a title alone is not the full fact. - Group expanded observations by session and show the returned type, title, and narrative. Include provenance only when the response supplies it.
- Lead with the high-signal observations (importance >= 7).
- With
memory_recall, inspectmatched_count,excluded_by_budget, andcontent_truncatedbefore treating an empty or shortened response as absent knowledge. Recover full content withmemory_smart_searchusingexpandIdsand the same project, agent, and layer filters.minimum_budgetreports the estimated budget needed for a minimal preview when the budget is too small. - If there are no matches, suggest 2-3 alternative search terms and stop. Do not guess.
Anti-patterns
WRONG: results are empty, so you write "We probably discussed token expiry last week" from assumption.
RIGHT: "No memories matched that query. Try refresh token, session expiry,
or auth rotation."
Checklist
- Every observation shown came from the tool response.
- Results grouped by session, high-importance first.
- Empty results trigger alternative-term suggestions, not invention.
- No session id or score was paraphrased or rounded.
See also
remember: the write side; recall retrieves what it stores.recap,handoff,session-history: session-scoped views of the same data.memory-discipline: when to run this search unprompted.
Troubleshooting
See TROUBLESHOOTING.md if memory_smart_search is not available.
常见问题
如果什么都没找到,它会编造旧笔记吗?
不会。如果没有匹配内容,智能体会直接说明,而不会虚构过去的工作。
我能把搜索限定在一个项目或一个智能体吗?
能。你可以把搜索范围限定在某个代码仓库,或某个智能体的历史中。
它会显示每条记忆的完整细节吗?
它先显示简要结果,然后只展开你选中的那些。
详情
作者的原始描述
Search agentmemory for past observations, sessions, and learnings about a topic using hybrid BM25 plus vector plus graph search. Use when the user says "recall", "what did we do about", "did we ever", "have we seen", or needs context from past sessions.
repo: rohitg00/agentmemory
热度
- GitHub 星标
- 30k
- 排名
- #9351
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agentmemory-agents
30k帮你的智能体把 agentmemory 记忆服务器连接到 Claude Code、Cursor 和 Codex 等编程工具。
agentmemory-architecture
30k解释 agentmemory 如何为编程智能体存储、搜索和管理记忆,从记录到回忆的整个过程。
agentmemory-config
30k帮你的智能体设置并检查 agentmemory 记忆服务器,包括端口、配置和功能开关。
agentmemory-hooks
30k帮你的智能体自动从编程会话中记录有用的笔记,而不需要你逐条手动保存。