hindsight-memory
Skill này làm gì
Skill này kết nối agent AI với Hindsight, một động cơ bộ nhớ dài hạn. Skill dành cho người muốn agent tiếp tục từ chỗ các phiên trước đã dừng lại.
Khi nào nên dùng
- ✓Khi bạn nhắc đến công việc hoặc quyết định trước đây và mong agent biết về nó.
- ✓Khi bạn nêu một sở thích lâu dài, chẳng hạn cách bạn muốn mọi việc được làm.
- ✓Khi bạn đặt một câu hỏi mà bối cảnh dự án trước đó có thể trả lời.
Liên kết skill
https://github.com/vectorize-io/hindsight/blob/main/hindsight-integrations/agent-plugin/skills/hindsight-memory/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn bạn ghi nhớ rằng database staging của chúng tôi là Postgres 16 trên Neon, và kiểm tra xem trước đây chúng ta đã quyết định gì về nó.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent gọi recall để tìm trong bộ nhớ đã lưu trước khi trả lời, và retain để lưu các sự thật bền vững. Bộ nhớ được giữ trong một bank luôn sẵn sàng qua các phiên làm việc.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
mainonly"), - 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.
Câu hỏi thường gặp
Nó dùng memory bank nào?
Skill dùng bank được đặt trong cài đặt HINDSIGHT_BANK_ID, nên bộ nhớ luôn nằm trong bank đó.
Agent nên lưu những gì?
Skill cho biết nên lưu các sở thích ổn định, sự thật và quyết định của dự án, cùng các bài học rút ra, chứ không phải mọi chi tiết.
Điều gì xảy ra nếu không tìm thấy bộ nhớ?
Agent nên nói rằng không tìm thấy gì liên quan, thay vì bịa ra bối cảnh cũ.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 58k
- Vị trí xếp hạng
- #3260
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
figure
58kGiúp agent của bạn vẽ một sơ đồ động thành một file SVG duy nhất cho README GitHub, pull request hoặc bài blog, thể hiện luồng của một quy trình.
Hindsight Memory
58kDạy agent của bạn lưu và tra cứu bộ nhớ dài hạn trong ứng dụng Hindsight, thay vì dùng các công cụ bộ nhớ tích hợp sẵn.
hindsight-coding-agent
58kGiải thích plugin bộ nhớ Hindsight cho các phiên lập trình, gồm bank bộ nhớ riêng cho từng repo, ngữ cảnh phiên tự động và cách đổi cài đặt.
hindsight-recall
58kGiúp agent của bạn tìm trong bộ nhớ dài hạn các quyết định, bối cảnh dự án và sở thích trước đây khi bạn hỏi về công việc đã làm.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.