Agent Skillsvectorize-io/hindsight › hindsight-memory

hindsight-memory

GitHub

通过Hindsight引擎实现Agent的长期记忆,支持跨会话上下文回顾、持久化关键事实及反思决策依据。当涉及历史引用、偏好存储或复杂推理时触发,确保回答基于真实过往数据而非臆测。

hindsight-integrations/agent-plugin/skills/hindsight-memory/SKILL.md vectorize-io/hindsight

Trigger Scenarios

用户提及早期工作或过往决定 需要保留持久化的项目事实或用户偏好 需综合多项记忆进行深度推理

Install

npx skills add vectorize-io/hindsight --skill hindsight-memory -g -y
More Options

Non-standard path

npx skills add https://github.com/vectorize-io/hindsight/tree/main/hindsight-integrations/agent-plugin/skills/hindsight-memory -g -y

Use without installing

npx skills use vectorize-io/hindsight@hindsight-memory

指定 Agent (Claude Code)

npx skills add vectorize-io/hindsight --skill hindsight-memory -a claude-code -g -y

安装 repo 全部 skill

npx skills add vectorize-io/hindsight --all -g -y

预览 repo 内 skill

npx skills add vectorize-io/hindsight --list

SKILL.md

Frontmatter
{
    "name": "hindsight-memory",
    "description": "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."
}

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.

Version History

  • ba97f85 Current 2026-08-19 21:38

Same Skill Collection

.claude/skills/code-review/SKILL.md
.claude/skills/hs-release/SKILL.md
hindsight-integrations/claude-code/skills/create-agent/SKILL.md
hindsight-integrations/coding-agents/skill/SKILL.md
hindsight-integrations/cursor/skills/hindsight-recall/SKILL.md
skills/hindsight-architect/SKILL.md
skills/hindsight-cloud/SKILL.md
skills/hindsight-docs/SKILL.md
skills/hindsight-local/SKILL.md
skills/hindsight-self-hosted/SKILL.md

Metadata

Files
0
Version
7ba5fb2
Hash
736dec06
Indexed
2026-08-19 21:38

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 02:28
浙ICP备14020137号-1 $お客様$