跳到主要内容
知仓学习社ZHICANG

recall

>

不碰外部(只输出文字)无严重或高危命中davepoon/buildwithclaude

它会碰到什么

扫了多少1 个文本文件,4 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

/recall

Search Origin's memory by natural-language query. Returns matching memories

ranked by hybrid vector + FTS search, then re-ordered by the agent if it

helps.

Two phases

When a local model or API key is configured, the daemon can rerank and

expand server-side. In local memory mode it cannot. The skill always does

agent-side expansion and rerank itself — cheap, makes results good in

both modes.

Phase 1 — expand the query (agent-side)

Before calling recall, rewrite the user's query into a more

search-friendly form:

  • Replace pronouns with the referent ("it" → the actual thing).
  • Expand abbreviations the embedder is unlikely to know.
  • Add the obvious synonym when the original term is too narrow (e.g.

"auth" → "auth OR authentication").

Don't over-expand. If the query is already specific, leave it alone.

One recall call per /recall invocation — duplicate calls double

embedding load and the merge step is rarely worth it. The daemon's

own search_memory_expanded exists for the multi-query case; if it

matters, use that endpoint instead of issuing parallel calls here.

Phase 2 — call the MCP tool

recall(query="<expanded query>", space=<inferred>, memory_type=<inferred>)

Inferences (do not ask the user):

  • space: current working directory (e.g. ~/Repos/origin/..."origin"),

the topic being discussed, or whatever space was mentioned in recent turns.

Always pass when scope is known; if uncertain, run list_spaces later

(post-PR-C) or omit.

  • memory_type: only when the query itself names a type ("decision on X",

"lesson about Y", "preference for Z"). Otherwise omit and let hybrid

search rank.

  • limit: default 10. Use 3-5 for quick lookups, 10-20 for exploration.

Phase 3 — rerank (agent-side)

The daemon returns hits ranked by hybrid search. That ranking is good but

not perfect — it doesn't know the user's exact intent.

Re-read the returned memories against the original query. Promote the

ones that directly answer the question; demote ones that just share

keywords.

Show the user the top 3-5 reranked hits. Surface the rest only if asked.

Phase 4 — render revision context (per result)

Each memory may carry revision fields: version, pending_revision,

merged_from, last_delta_summary. Most memories are fresh (v1, none

set) — render nothing extra for those. Only add a tag line when

something meaningful is present.

Condition: emit the tag line when any of these holds:

  • version > 1
  • merged_from is non-empty
  • pending_revision == true

Format — one compact line above the memory body:

<id>  v<N> (merged <K> memories)         ← merged_from has K entries
<id>  v<N>, pending revision against <id> ← pending_revision true
<id>  v<N> — <last_delta_summary>         ← version > 1, delta populated
<id>  v<N>                                ← version > 1, no delta

Rules:

  • Merged takes precedence over pending_revision in the label.
  • Omit — <delta> when last_delta_summary is empty or null.
  • Skip the tag line entirely when version == 1 (or null) and no other

flag is set. Preserves current output for fresh memories.

When to use

  • "What did I say about X?"
  • "Do you remember the decision on Y?"
  • Need a specific fact before continuing.

When NOT to use

  • Broad session orientation → use /brief instead.
  • Storing a new memory → use /capture.

Hint: write specific queries

"Alice database preference" finds more than "database stuff". The semantic

matcher rewards specificity. If too many results return, add filters rather

than making the query longer.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 3,470
本站分层T1
该仓技能数381
原文件路径plugins/origin/skills/recall/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 381 个技能