retrieval-reflex
它能做什么
这项技能告诉你的智能体,什么时候应该在回答之前打开知识库中的页面。适用于一个具名的人、公司或项目会影响回答的对话。
适用场景
- ✓当你提到的人、公司或项目可能在知识库中有笔记的时候。
- ✓当智能体准备陈述某人的细节,例如职位或状态时。
- ✓当一个名字出现,智能体不认识它,而且它似乎很重要的时候。
技能链接
https://github.com/garrytan/gbrain/blob/master/recipes/retrieval-reflex/skills/retrieval-reflex/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在你回答之前,请先查看我关于 Dana 的笔记,因为我想知道我们上次讨论到哪里了。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会判断某个具名实体是否对回答很重要,然后打开它的知识库页面。它只会按任务需要进行更深入的搜索,并在陈述细节之前进行核对。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Retrieval Reflex — retrieve on demand, when an entity is salient
A person doesn't bulk-load their whole address book into working memory. They retrieve on demand, when an entity becomes salient, use it, and drop it. Encode that reflex. The brain probably has the data — if a name is salient and you haven't opened its page, open it before you answer.
Trigger policy — WHEN to retrieve
Retrieve when ANY of these holds AND the page isn't already loaded in context:
- An entity (person / company / project / deal / place) is the subject of the message, or a decision/judgment about it is being made, or the exchange is substantive / relational / emotional about it.
- A brain-page pointer appeared in context this turn (the deterministic layer told you the page exists) — open it before relying on details.
- A name or term appears that you don't recognize and that looks notable → do a quick resolve (the human reflex).
- You're about to assert a non-trivial detail about an entity (attribution, status, history) → verify against the brain first. Say "let me check", not a guess.
Skip trivial passing mentions, logistics pings, and anything already loaded. Judgment first — retrieve when it changes the quality of the reply, not reflexively.
Retrieval spec — WHAT to pull, and when to stop
Escalate only as far as the task needs:
- Pointer / metadata. If a pointer is already in context (slug + one-line summary), and the task only needs identity, stop there.
- Full page. When the entity is the subject or details matter, open it:
get_page <slug>(MCP) — read the page before relying on specifics. - Linked neighbors. Only when relationship context is needed, pull
graph/backlinksfor the slug.
Resolve only the name(s) the current task needs, use them, drop them. No bulk-loading the inner circle.
The failure this prevents
If you've discussed a named person for more than a message without opening their page, open it now. The write side captures everything; the read side only helps if you actually look.
See also: skills/query/SKILL.md (search the brain), skills/brain-ops/SKILL.md.
常见问题
智能体会检查每一个名字吗?
不会。琐碎的提及和日常事务会被跳过,它只查找会改变回答内容的名字。
如果智能体对某个细节不确定怎么办?
它会说明将去知识库查证,而不是凭猜测作答。
它会搜索指定页面之外的内容吗?
只有在任务需要时才会。一旦获得足够的信息可以作答,它就会停止。
详情
作者的原始描述
When/what to retrieve — open the brain page for a salient entity before answering from memory.
repo: garrytan/gbrain
热度
- GitHub 星标
- 31k
- 排名
- #9322
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …