hindsight
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "hindsight" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-bf99593f5e0f746b94baead6423c18e3097e2949228b08ef35fef86348021419. Verify the upstream source and version against https://github.com/EfficientStreet/hindsight before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Hindsight: session review and long-term memory saving. Reviews all work completed in the current session, extracts enduring process-level lessons (not one-off content details), and saves those lessons as long-term memory—updating existing memories when applicable to avoid duplication. Does not re-run or reopen any actual tasks from the session and does not fabricate lessons for reporting. Example triggers: “review”, “run a review”, “what can we improve”, “review today’s work and record lessons”, “what did you learn today”, “save memorable items from this session.”
Introduction source: third_party · EfficientStreet · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Selective, explicit cross-session memory through the configured Hindsight CLI. Use when a non-trivial task may depend on a past preference, decision, confirmed workaround, or earlier failure; when the user asks what was previously decided; or when the user explicitly asks to remember something. Retain only durable, non-sensitive, future-useful knowledge. Never automatically store conversations, source files, logs, secrets, or routine progress.
- Testing
- Not tested
Browse files
Frontmatter
name: hindsight
description: Selective, explicit cross-session memory through the configured Hindsight CLI. Use when a non-trivial task may depend on a past preference, decision, confirmed workaround, or earlier failure; when the user asks what was previously decided; or when the user explicitly asks to remember something. Retain only durable, non-sensitive, future-useful knowledge. Never automatically store conversations, source files, logs, secrets, or routine progress.Hindsight Memory
Use the configured hindsight CLI for deliberate, agent-initiated memory calls. Do not install hooks, capture sessions automatically, or send every interaction to Hindsight.
Briefly tell the user before calling Hindsight and explain why. Do not include sensitive details in that notice.
Pass -o json to read commands so their output is clean and parseable.
Resolve the bank first
Every command takes a bank ID as its first positional argument. There is no implicit
default bank, and default is not a real one: a fresh install has no banks at all.
List them and use a real ID (shown below as <bank>):
hindsight -o json bank list
Both failure modes here are silent, so check rather than assume:
- Recalling from a bank that does not exist returns
{"results": []}and exit 0. That is indistinguishable from a bank with nothing relevant in it. - Retaining into a bank that does not exist creates it, so a typo silently produces a new empty bank instead of an error.
If the project or user fixes a bank ID and its configuration, use that one and do not invent another.
Recall selectively
Recall when a non-trivial task is likely to benefit from a past:
- user preference or working convention;
- project or architecture decision and its rationale;
- confirmed workaround, bug cause, or fix;
- failure or lesson that could prevent repeated work;
- fact the user explicitly asks you to remember or retrieve.
Use a focused query:
hindsight -o json memory recall <bank> "user preferences relevant to this task"
hindsight -o json memory recall <bank> "previous decisions and confirmed problems in this area"
Use reflection only when synthesis across several memories would materially help:
hindsight -o json memory reflect <bank> "What past decisions or lessons should guide this task?"
Do not recall for trivial questions, or when the current repository, documentation, or live system is the authoritative source. Treat recalled information as fallible and potentially stale; verify it before relying on it.
Fetch exact source text when needed
Recall and reflection return extracted facts and can omit exact values. When a result points to a stored document and an exact literal is necessary, fetch that document:
hindsight -o json document get <bank> <document_id>
Only document get populates original_text; document list returns it empty, so
use it to find a document ID, not to read one:
hindsight -o json document list <bank>
Read original_text, but expose or use only the part needed for the task. It is
populated only when the bank stores document text, so treat an empty value as
"not available" rather than "no such text".
Retain deliberately
Retain only when the user explicitly asks, or when you learn something durable, confirmed, non-sensitive, and likely to save future work:
- a stable user preference;
- a confirmed technical decision and its rationale;
- a proven procedure or workaround;
- a verified bug cause and fix;
- a non-obvious constraint that will matter again.
Write a concise, self-contained memory containing the useful fact, why it matters, and the confirmed outcome. Include exact values only when they are necessary and safe to persist.
hindsight memory retain <bank> "The user prefers explicit Hindsight recall and retention calls; do not enable automatic transcript or Git ingestion." --context preferences
hindsight memory retain <bank> "The build requires Node 20 because Node 18 fails with the confirmed ESM loader incompatibility." --context learnings
hindsight memory retain <bank> "Run the integration suite with NODE_ENV=test; this selects the isolated test configuration." --context procedures
Retain is the slowest operation by a wide margin: extraction runs an LLM over the
content, and a single call can take minutes. Queue it with --async when you do not
need the result in-turn, and do not treat a long wait as a hang.
Never retain:
- complete conversations, transcripts, or session dumps;
- raw source files, patches, logs, command output, or tool results;
- routine progress or facts that are easy to recover from an authoritative source;
- speculation, unverified hypotheses, or transient state;
- passwords, API keys, tokens, credentials, private keys, or
.envcontents; - personal or customer data unless the user explicitly approves that specific retention.
If sensitivity or future value is ambiguous, ask before retaining. Never send a broad payload merely because Hindsight can extract facts from it.
If Hindsight is unavailable
Do not start Hindsight, Docker, or another service solely for an optional memory call. Continue without memory and briefly report that Hindsight was unavailable. If memory is essential because the user explicitly requested it, explain the blocker.
Do not trust the CLI's error text on its own. It reports a client-side timeout as
"Cannot connect to Hindsight API / the server is not running", and it reports an
upstream provider error as "API endpoint not found (404)". Confirm with hindsight health before telling the user Hindsight is down, and read the server logs for the
real cause when a call fails against a healthy server.
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- Provides valuable cross-session memory functionality that helps users avoid repeating mistakes
- Enables retention of durable knowledge like preferences, decisions, and workarounds
- Addresses a genuine productivity need for long-term session context
Highlights
- Multiple well-chosen trigger phrases in Chinese that accurately reflect intended usage
- Clear boundary between what should and shouldn't be retained
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档缺少明确的'何时使用'指导章节,用户可能不清楚具体使用场景
Recommendation: 添加一个'When to Use'或'使用场景'章节,明确说明何时应该调用此Skill
-
缺少端到端完整示例 Reported severity: Minor
虽然有多个命令示例,但缺少一个完整的会话复盘流程示例
Recommendation: 添加一个从触发到完成记忆保存的完整工作流示例
Highlights
- 文档结构清晰,分模块介绍不同功能
- 提供了丰富的代码示例和使用模式
Areas to improve
-
依赖外部CLI工具 Reported severity: Minor
完全依赖外部hindsight CLI工具,缺乏内置fallback机制
Recommendation: 考虑添加基本的本地缓存机制作为fallback,或在工具不可用时提供更详细的配置指导
Highlights
- 详细说明了错误处理机制和边界情况
- 对性能特点(如retention操作较慢)有明确说明和应对建议
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 106
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.