跳到正文
Skillpedia
智能体58k · #3260

hindsight-memory

它能做什么

这个技能把 AI 智能体连接到 Hindsight,这是一款长期记忆引擎。适合希望智能体能接续之前会话进度的人。

适用场景

  • ✓当你提到早先的工作或过去的决定,并希望智能体知道的时候。
  • ✓当你陈述一个长期有效的偏好,例如你希望事情如何进行的时候。
  • ✓当你提出的问题可以用早先的项目背景来回答的时候。

技能链接

https://github.com/vectorize-io/hindsight/blob/main/hindsight-integrations/agent-plugin/skills/hindsight-memory/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/vectorize-io/hindsight/blob/main/hindsight-integrations/agent-plugin/skills/hindsight-memory/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请你记住,我们的预发布数据库是 Neon 上的 Postgres 16,并查一下我们之前对它做过什么决定。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体在回答前调用 recall 搜索已保存的记忆,并用 retain 存储持久事实。记忆保存在一个记忆库中,可以跨会话使用。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Hindsight long-term memory

This plugin connects the agent to Hindsight, a long-term memory engine. Memory persists across sessions in a bank (scoped by HINDSIGHT_BANK_ID), so what you retain now is available to recall in future conversations.

The hindsight MCP server exposes the tools below. Prefer these over guessing from scratch when the answer might live in past context.

When to recall (read memory)

Call recall at the start of a task, or whenever the user:

  • refers to earlier work, a past decision, or "the thing we set up",
  • states a preference or constraint that may already be recorded,
  • asks a question that accumulated project/user context could answer.
recall(query: "how do we deploy the API and which region")

recall runs semantic + keyword + graph + temporal retrieval and returns the most relevant memories. Ground your answer in what comes back, and say when nothing relevant was found rather than inventing continuity.

When to retain (write memory)

Call retain when you learn something durable and reusable — worth having in a future session, not just this one:

  • stable user preferences ("prefers pnpm; deploys from main only"),
  • project facts and decisions ("staging DB is Postgres 16 on Neon"),
  • outcomes and gotchas ("the flaky test was a timezone bug, fixed in #482").
retain(content: "The user deploys the API to us-east-1 via GitHub Actions on push to main.")

Do not retain transient chatter, secrets, or anything the user asked you to keep out of memory. Retain the fact, not the whole transcript.

When to reflect (reason over memory)

Call reflect when a single recall is too shallow and you need synthesized reasoning over everything remembered — the why behind a behavior, or a judgment that weighs many facts together:

reflect(query: "What has repeatedly caused our CI to flake, and what should we standardize?")

reflect is slower and disposition-aware; use it deliberately, not for lookups.

Bank scope

All tools operate on the bank selected by the connection (HINDSIGHT_BANK_ID, default default). One bank = one memory store — keep a project's or a user's memory in its own bank so context stays isolated and relevant. You never pass a bank id to a tool; it is implicit from the endpoint.

常见问题

它使用哪个记忆库?

该技能使用 HINDSIGHT_BANK_ID 设置中指定的记忆库,因此记忆会保存在该库中。

智能体应该存储什么?

该技能要求存储稳定的偏好、项目事实和决定,以及经验教训,而不是每一个细节。

如果找不到任何记忆怎么办?

智能体应该说明没有找到相关内容,而不是编造过去的背景。

详情

作者的原始描述

Long-term memory for the agent via Hindsight. Use to recall relevant past context before answering, retain durable facts as you learn them, and reflect over accumulated memory for the "why" behind a decision. Load whenever continuity across sessions matters — the user refers to earlier work, states a lasting preference, or asks a question that prior context could answer.

repo: vectorize-io/hindsight

热度

GitHub 星标
58k
排名
#3260
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能