recall

GitHub

通过混合搜索检索历史会话、观察和知识,用于回忆过往上下文。支持按项目或智能体筛选,强调基于工具结果展示,禁止臆造内容。

plugin/skills/recall/SKILL.md rohitg00/agentmemory

触发场景

用户询问过去的讨论或决策 需要回顾特定主题的历史记录 使用 recall, what did we do about 等短语

安装

npx skills add rohitg00/agentmemory --skill recall -g -y
更多选项

非标准路径

npx skills add https://github.com/rohitg00/agentmemory/tree/main/plugin/skills/recall -g -y

不安装直接使用

npx skills use rohitg00/agentmemory@recall

指定 Agent (Claude Code)

npx skills add rohitg00/agentmemory --skill recall -a claude-code -g -y

安装 repo 全部 skill

npx skills add rohitg00/agentmemory --all -g -y

预览 repo 内 skill

npx skills add rohitg00/agentmemory --list

SKILL.md

Frontmatter
{
    "name": "recall",
    "description": "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.",
    "argument-hint": "[search query]",
    "user-invocable": true
}

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

  1. Call memory_smart_search with the user's text as query and limit: 10. Pass project when the user scopes to a specific repo and agentId when they request one agent's history. Use targetLayer: "memory" for explicitly saved knowledge, or targetLayer: "observation" for captured activity. Omit it for mixed search.
  2. Search results are compact. Before quoting full content or describing provenance, call memory_smart_search with the selected IDs as a comma-separated expandIds string 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.
  3. Group expanded observations by session and show the returned type, title, and narrative. Include provenance only when the response supplies it.
  4. Lead with the high-signal observations (importance >= 7).
  5. With memory_recall, inspect matched_count, excluded_by_budget, and content_truncated before treating an empty or shortened response as absent knowledge. Recover full content with memory_smart_search using expandIds and the same project, agent, and layer filters. minimum_budget reports the estimated budget needed for a minimal preview when the budget is too small.
  6. 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.

版本历史

  • e01540e 当前 2026-10-19 02:22

    增强检索能力:支持指定 agentId 和 targetLayer;优化空结果处理,增加预算检查与内容恢复机制;细化冲突记录的处理逻辑。

  • 2d38daf 2026-08-19 18:52

    新增记录来源通道(user/agent/tool等)的处理逻辑及冲突偏好说明;增强空结果时的替代词建议指引。

  • a8e7d19 2026-07-24 11:39

同 Skill 集合

plugin/skills/agentmemory-agents/SKILL.md
plugin/skills/agentmemory-architecture/SKILL.md
plugin/skills/agentmemory-config/SKILL.md
plugin/skills/agentmemory-hooks/SKILL.md
plugin/skills/agentmemory-mcp-tools/SKILL.md
plugin/skills/agentmemory-rest-api/SKILL.md
plugin/skills/commit-context/SKILL.md
plugin/skills/commit-history/SKILL.md
plugin/skills/forget/SKILL.md
plugin/skills/handoff/SKILL.md
plugin/skills/lesson/SKILL.md
plugin/skills/memory-discipline/SKILL.md
plugin/skills/recap/SKILL.md
plugin/skills/remember/SKILL.md
plugin/skills/session-history/SKILL.md
plugin/skills/write-agentmemory-skill/SKILL.md

元信息

文件数
0
版本
e01540e
Hash
ba014b66
收录时间
2026-07-24 11:39

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 18:37
浙ICP备14020137号-1