hindsight-local by vectorize-io/hindsight
npx skills add https://github.com/vectorize-io/hindsight --skill hindsight-local通过 hindsight-embed CLI,您拥有持久化记忆。主动存储学习内容并回忆上下文,以提供更好的协助。
在使用记忆命令前,请验证 Hindsight 是否已配置:
uvx hindsight-embed daemon status
如果此命令失败或显示“未配置”,请运行交互式设置:
uvx hindsight-embed configure
这将提示您选择 LLM 提供商并输入 API 密钥。设置完成后,以下命令即可使用。
当您调用 retain 时,Hindsight 不会直接存储字符串。服务器会运行一个内部流程,该流程:
这意味着您应该传递丰富的、完整上下文的内容——服务器比预先总结的字符串更擅长提取重要信息。您的工作是决定何时存储,而不是提取什么。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
使用 memory retain 来存储您学到的内容。传递完整的上下文——原始观察、会话笔记、对话摘录或详细描述:
uvx hindsight-embed memory retain default "User is working on a TypeScript project. They enabled strict mode and prefer explicit type annotations over inference."
uvx hindsight-embed memory retain default "Ran the test suite with NODE_ENV=test. Tests pass. Without NODE_ENV=test, the suite fails with a missing config error." --context procedures
uvx hindsight-embed memory retain default "Build failed on Node 18 with error 'ERR_UNSUPPORTED_ESM_URL_SCHEME'. Switched to Node 20 and build succeeded." --context learnings
您也可以传递带时间戳的原始对话记录:
uvx hindsight-embed memory retain default "[2026-03-16T10:12:03] User: The auth tests keep failing on CI but pass locally. Any idea?
[2026-03-16T10:12:45] Assistant: Let me check the CI logs. Looks like the tests are running without the TEST_DATABASE_URL env var set — they fall back to the production DB URL and hit a connection timeout.
[2026-03-16T10:13:20] User: Ah right, I never added that to the CI secrets. Adding it now.
[2026-03-16T10:15:02] User: That fixed it. All green now." --context learnings
在开始任务之前,使用 memory recall 来获取相关上下文:
uvx hindsight-embed memory recall default "user preferences for this project"
uvx hindsight-embed memory recall default "what issues have we encountered before"
使用 memory reflect 来综合上下文:
uvx hindsight-embed memory reflect default "How should I approach this task based on past experience?"
在您学到有价值的东西后,务必存储:
在以下情况之前,务必回忆:
--context 添加元数据:--context 标志用于标记记忆类型(例如 procedures、learnings、preferences),而不是替代完整内容每周安装量
97
代码仓库
GitHub 星标数
7.5K
首次出现
2026年1月23日
安全审计
安装于
gemini-cli94
opencode94
codex93
github-copilot92
cursor91
kimi-cli90
You have persistent memory via the hindsight-embed CLI. Proactively store learnings and recall context to provide better assistance.
Before using memory commands, verify Hindsight is configured:
uvx hindsight-embed daemon status
If this fails or shows "not configured" , run the interactive setup:
uvx hindsight-embed configure
This will prompt for an LLM provider and API key. After setup, the commands below will work.
When you call retain, Hindsight does not store the string as-is. The server runs an internal pipeline that:
This means you should pass rich, full-context content — the server is better at extracting what matters than a pre-summarized string. Your job is to decide when to store, not what to extract.
Use memory retain to store what you learn. Pass the full context — raw observations, session notes, conversation excerpts, or detailed descriptions:
uvx hindsight-embed memory retain default "User is working on a TypeScript project. They enabled strict mode and prefer explicit type annotations over inference."
uvx hindsight-embed memory retain default "Ran the test suite with NODE_ENV=test. Tests pass. Without NODE_ENV=test, the suite fails with a missing config error." --context procedures
uvx hindsight-embed memory retain default "Build failed on Node 18 with error 'ERR_UNSUPPORTED_ESM_URL_SCHEME'. Switched to Node 20 and build succeeded." --context learnings
You can also pass a raw conversation transcript with timestamps:
uvx hindsight-embed memory retain default "[2026-03-16T10:12:03] User: The auth tests keep failing on CI but pass locally. Any idea?
[2026-03-16T10:12:45] Assistant: Let me check the CI logs. Looks like the tests are running without the TEST_DATABASE_URL env var set — they fall back to the production DB URL and hit a connection timeout.
[2026-03-16T10:13:20] User: Ah right, I never added that to the CI secrets. Adding it now.
[2026-03-16T10:15:02] User: That fixed it. All green now." --context learnings
Use memory recall BEFORE starting tasks to get relevant context:
uvx hindsight-embed memory recall default "user preferences for this project"
uvx hindsight-embed memory recall default "what issues have we encountered before"
Use memory reflect to synthesize context:
uvx hindsight-embed memory reflect default "How should I approach this task based on past experience?"
Always store after you learn something valuable:
Always recall before:
--context for metadata: The --context flag labels the type of memory (e.g., procedures, learnings, preferences), not a replacement for full contentWeekly Installs
97
Repository
GitHub Stars
7.5K
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli94
opencode94
codex93
github-copilot92
cursor91
kimi-cli90
AI 代码实施计划编写技能 | 自动化开发任务分解与 TDD 流程规划工具
49,000 周安装
定价变更财务影响评估框架:ARPU、流失风险、CAC回收期分析指南
561 周安装
Mapbox Web集成模式:React/Vue/Angular/Svelte最佳实践与GL JS v3教程
573 周安装
Portless:用稳定.localhost域名替代端口号,解决开发端口冲突和记忆难题
636 周安装
史诗拆分顾问:产品经理必备的9种用户故事拆分模式与INVEST验证指南
567 周安装
SaaS经济效率指标:产品经理必备的单位经济效益与资本效率分析框架
573 周安装
Twill Cloud Coding Agent API 使用指南 - 自动化代码任务与工作流管理
590 周安装