{"versions":{"0.1.0":{"name":"dsh-hindsight","version":"0.1.0","description":"Official-grade DeepSeek Harness memory plugin backed by Hindsight (vectorize-io). Add /hindsight commands and model tools that recall, remember, inspect and forget through a Hindsight memory bank.","keywords":["deepseek-harness","deepseek-harness-plugin","dsh-plugin","cordis","agent-memory","llm-memory","long-term-memory","persistent-memory","vector-memory","knowledge-graph","hindsight","vectorize","memory-bank","cross-session-memory"],"repository":{"type":"git","url":"git+https://github.com/Ryu6Zero/DSHHindsight.git"},"homepage":"https://github.com/Ryu6Zero/DSHHindsight#readme","bugs":{"url":"https://github.com/Ryu6Zero/DSHHindsight/issues"},"license":"MIT","publishConfig":{"access":"public"},"engines":{"node":">=20"},"type":"module","main":"lib/index.js","types":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"scripts":{"build":"tsdown","prepublishOnly":"tsdown","typecheck":"tsc -p tsconfig.json --noEmit","test":"node scripts/test-client.mjs","verify":"tsdown && node scripts/verify-package.mjs"},"peerDependencies":{"@deepseek-ai/dsh":">=0.1.1-rc.2"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.0"},"devDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh":"0.1.1-rc.2","@deepseek-ai/dsh-tools":"0.1.1-rc.2","@deepseek-ai/dsh-commands":"0.1.1-rc.2","@deepseek-ai/dsh-settings":"0.1.1-rc.2","@types/node":"^22.0.0","tsdown":"^0.22.0","typescript":"^5.9.0"},"_id":"dsh-hindsight@0.1.0","gitHead":"2df6bf4a9840361dc80827b3f5903116bcad47a6","_nodeVersion":"22.23.2","_npmVersion":"10.9.8","dist":{"integrity":"sha512-u2c3Yoi6ukX4fQIqxXXInYnq6lKKxQSlG27B2ExwFtChtDXCMnS3L+ICFVZnfQWTLC8L9Zb4jMfvS+kVgI9fTg==","shasum":"fee1d8d416bf10eb52732b7eb8fa0a30b5e03a96","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-hindsight/-/dsh-hindsight-0.1.0.tgz","fileCount":8,"unpackedSize":73382,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDjDsXUvFjPaA1/JGzPoKkA4vHuAsdZdmPNp/xnSoV2wgIgF3/ePRBP+vYDNu/NF2KmSl7aXTpH5gVyUQlmec+NpKM="}],"size":20095},"_npmUser":{"name":"anonymous","email":"2687199039@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"2687199039@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-hindsight_0.1.0_1787696145275_0.12766755318141043"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-25T22:15:45.428Z","publish_time":1787696145428,"_source_registry_name":"default","contributors":[]},"0.2.0":{"name":"dsh-hindsight","version":"0.2.0","description":"Official-grade DeepSeek Harness memory plugin backed by Hindsight (vectorize-io). Add /hindsight commands and model tools that recall, remember, inspect and forget through a Hindsight memory bank.","keywords":["deepseek-harness","deepseek-harness-plugin","dsh-plugin","cordis","agent-memory","llm-memory","long-term-memory","persistent-memory","vector-memory","knowledge-graph","hindsight","vectorize","memory-bank","cross-session-memory"],"repository":{"type":"git","url":"git+https://github.com/Ryu6Zero/dsh-hindsight.git"},"homepage":"https://github.com/Ryu6Zero/dsh-hindsight#readme","bugs":{"url":"https://github.com/Ryu6Zero/dsh-hindsight/issues"},"license":"MIT","publishConfig":{"access":"public"},"engines":{"node":">=20"},"type":"module","main":"lib/index.js","types":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"scripts":{"build":"tsdown","prepublishOnly":"tsdown","typecheck":"tsc -p tsconfig.json --noEmit","test":"node scripts/test-client.mjs","verify":"tsdown && node scripts/verify-package.mjs"},"peerDependencies":{"@deepseek-ai/dsh":">=0.1.1-rc.2"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.0"},"devDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh":"0.1.1-rc.2","@deepseek-ai/dsh-tools":"0.1.1-rc.2","@deepseek-ai/dsh-commands":"0.1.1-rc.2","@deepseek-ai/dsh-settings":"0.1.1-rc.2","@types/node":"^22.0.0","tsdown":"^0.22.0","typescript":"^5.9.0"},"_id":"dsh-hindsight@0.2.0","gitHead":"ebf9d8f37c730db028234c3550b0d5d7df8ade66","_nodeVersion":"22.23.2","_npmVersion":"10.9.8","dist":{"integrity":"sha512-S6ZZkXr7fs/W6tmUIVJh6MWxEmeWN5Ke3F1jxeiKIeSsm5ApUt7TxF1rznbLTBqiM6YUbFnscLlmOU7xXNmYIA==","shasum":"f1edd7385427e78f1364a9c4adbe57ab6b632639","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-hindsight/-/dsh-hindsight-0.2.0.tgz","fileCount":8,"unpackedSize":99208,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGic9ndYVuE88ZAjvSyxrvJvQ/RKF1nALmn6dVYaIKFvAiAXyVbclDd6UHGoYKiLG13ePOZAERpXZDGNiGRhp2OKiQ=="}],"size":29277},"_npmUser":{"name":"anonymous","email":"2687199039@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"2687199039@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-hindsight_0.2.0_1787788858737_0.4193344540607691"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-27T00:00:58.888Z","publish_time":1787788858888,"_source_registry_name":"default","contributors":[]},"0.3.0":{"name":"dsh-hindsight","version":"0.3.0","description":"Official-grade DeepSeek Harness memory plugin backed by Hindsight (vectorize-io). Add /hindsight commands and model tools that recall, remember, inspect and forget through a Hindsight memory bank.","keywords":["deepseek-harness","deepseek-harness-plugin","dsh-plugin","cordis","agent-memory","llm-memory","long-term-memory","persistent-memory","vector-memory","knowledge-graph","hindsight","vectorize","memory-bank","cross-session-memory"],"repository":{"type":"git","url":"git+https://github.com/Ryu6Zero/dsh-hindsight.git"},"homepage":"https://github.com/Ryu6Zero/dsh-hindsight#readme","bugs":{"url":"https://github.com/Ryu6Zero/dsh-hindsight/issues"},"license":"MIT","publishConfig":{"access":"public"},"engines":{"node":">=20"},"type":"module","main":"lib/index.js","types":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"scripts":{"build":"tsdown","prepublishOnly":"tsdown","typecheck":"tsc -p tsconfig.json --noEmit","test":"node scripts/test-client.mjs","verify":"tsdown && node scripts/verify-package.mjs"},"peerDependencies":{"@deepseek-ai/dsh":">=0.1.1-rc.2"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.0"},"devDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh":"0.1.1-rc.2","@deepseek-ai/dsh-commands":"0.1.1-rc.2","@deepseek-ai/dsh-settings":"0.1.1-rc.2","@deepseek-ai/dsh-system-prompt":"0.0.1-rc.1","@deepseek-ai/dsh-tools":"0.1.1-rc.2","@types/node":"^22.0.0","tsdown":"^0.22.0","typescript":"^5.9.0"},"_id":"dsh-hindsight@0.3.0","gitHead":"74c1c6fdbf02d6b3153eb1e575ee0d017555eacf","_nodeVersion":"22.23.2","_npmVersion":"10.9.8","dist":{"integrity":"sha512-2pr7PGeiX4xQPq9HcIdhtQwIPduGVEnw++vg+5bw6sekq4+7tVXQj63NjrSqnIn7cti4JEivZB1Za6tVyJetKg==","shasum":"2ae63c0a80067a0d55513dba36d19382ba96a3b5","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-hindsight/-/dsh-hindsight-0.3.0.tgz","fileCount":8,"unpackedSize":125336,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCAaZOxTfbwNTZLqMjaDIBnWbfDThPumACgGWP1shOzzAIgLbIZ2MWRoyIE8QNxVHll07DCwdM2gm/NJuebiKd7YLA="}],"size":36808},"_npmUser":{"name":"anonymous","email":"2687199039@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"2687199039@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-hindsight_0.3.0_1787908277924_0.5570788995813856"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-28T09:11:18.055Z","publish_time":1787908278055,"_source_registry_name":"default","contributors":[]},"0.4.0":{"name":"dsh-hindsight","version":"0.4.0","description":"Official-grade DeepSeek Harness memory plugin backed by Hindsight (vectorize-io). Add /hindsight commands and model tools that recall, remember, inspect and forget through a Hindsight memory bank.","keywords":["deepseek-harness","deepseek-harness-plugin","dsh-plugin","cordis","agent-memory","llm-memory","long-term-memory","persistent-memory","vector-memory","knowledge-graph","hindsight","vectorize","memory-bank","cross-session-memory"],"repository":{"type":"git","url":"git+https://github.com/Ryu6Zero/dsh-hindsight.git"},"homepage":"https://github.com/Ryu6Zero/dsh-hindsight#readme","bugs":{"url":"https://github.com/Ryu6Zero/dsh-hindsight/issues"},"license":"MIT","publishConfig":{"access":"public"},"engines":{"node":">=20"},"type":"module","main":"lib/index.js","types":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"scripts":{"build":"tsdown","prepublishOnly":"tsdown","typecheck":"tsc -p tsconfig.json --noEmit","test":"node scripts/test-client.mjs","verify":"tsdown && node scripts/verify-package.mjs"},"peerDependencies":{"@deepseek-ai/dsh":">=0.1.1-rc.2"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.0"},"devDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh":"0.1.1-rc.2","@deepseek-ai/dsh-commands":"0.1.1-rc.2","@deepseek-ai/dsh-settings":"0.1.1-rc.2","@deepseek-ai/dsh-system-prompt":"0.0.1-rc.1","@deepseek-ai/dsh-tools":"0.1.1-rc.2","@types/node":"^22.0.0","tsdown":"^0.22.0","typescript":"^5.9.0"},"_id":"dsh-hindsight@0.4.0","gitHead":"f28201a701554acd2ada5ea52d33fabaa5c52251","_nodeVersion":"22.23.2","_npmVersion":"10.9.8","dist":{"integrity":"sha512-Sr+a99mzjyReZ1Mmn+YFeTKHVE72Sp9MzFeKEDyBAUHhi//iEhi6Hww34FCsC12ExzpvNVuH5fEsJPU4W5GFrA==","shasum":"dfeab8d35be6ab5c01eb971972b22b22ad986f45","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-hindsight/-/dsh-hindsight-0.4.0.tgz","fileCount":8,"unpackedSize":142622,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDM5UmwtOE7lpls225dOfY7IoEIuU/4l/bYEZ8kpJvWtAiEA1iTiBdVfvnnBzd95YfDEklkNHNSr5f/K157fSLajTm8="}],"size":41501},"_npmUser":{"name":"anonymous","email":"2687199039@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"2687199039@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-hindsight_0.4.0_1787914830735_0.40550309139543006"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-28T11:00:30.870Z","publish_time":1787914830870,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.4.0"},"name":"dsh-hindsight","time":{"created":"2026-08-25T22:15:57.908Z","modified":"2026-08-28T11:00:43.643Z","0.1.0":"2026-08-25T22:15:45.428Z","0.2.0":"2026-08-27T00:00:58.888Z","0.3.0":"2026-08-28T09:11:18.055Z","0.4.0":"2026-08-28T11:00:30.870Z"},"readme":"# dsh-hindsight\n\n[English](./README.en.md) | **简体中文**\n\n**官方级 DeepSeek Harness 记忆插件，后端对接 [Hindsight](https://github.com/vectorize-io/hindsight)。**\n\n给 DSH Agent 真正的跨会话记忆:召回过去的决策、记住新事实、查看记忆健康状况——通过一个自包含的 Cordis 插件完成。没有 dsh-mnemon、没有编排层、没有捆绑存储引擎。就是一层对接 Hindsight REST API 的轻薄 HTTP client。\n\n## 为什么\n\nDSH Agent 默认无状态——每次会话都从零开始。已有的记忆方案(如 dsh-mnemon)是重型的\"三层编排全家桶\"。如果你本就部署了 [Hindsight](https://hindsight.vectorize.io)(高质量向量记忆引擎,带实体解析 + 知识图谱 + 多策略检索),这个插件把 DSH 直接接上去,一个可安装的包就够。\n\n**已实测端到端跑通**:一个真实 DSH Agent 调用 `hindsight_recall`,在 headless profile 里从 Hindsight bank 召回真实记忆。\n\n## 特性\n\n- **`/hindsight` 斜杠命令** — `status` / `recall <查询>` / `related <ID> [depth]` / `list [查询]` / `remember <内容>` / `forget <ID>`\n- **6 个模型工具** — `hindsight_status` `hindsight_recall` `hindsight_related` `hindsight_list` `hindsight_remember` `hindsight_forget`(Agent 下一步可直接调用)\n- **知识图谱遍历** — `hindsight_related`:从一条记忆出发,BFS 遍历 Hindsight 实体关系图谱的邻居(1-5 跳),追踪关联决策/实体\n- **主动记忆引导** — `autoRemember` 开启时,`hindsight_remember` 引导模型主动识别并保存可持久复用的事实(偏好/决策/约束),\"不确定先问\"防脏数据\n- **记忆引导注入 system prompt** — `systemPromptSection` 开启时,模型从第一轮就知道自己有长期记忆、何时该召回/保存(官方 section provider 形态)\n- **异步操作可观测** — `hindsight_operations` / `/hindsight operations`:查看记忆提取队列状态,\"刚存的记住了吗\"不再靠猜\n- **批量去重写入** — `hindsight_condense`:一次提交 2-10 条事实,自动跳过与近期记忆重复的内容(文本归一化保守查重)\n- **召回缓存** — 相同查询 60s 内秒回(`recallCacheTtlMs` 可调,0 关闭),写操作即时失效\n- **多库只读探索** — 只读工具支持 `bank` 参数 / 命令支持 `@库名` 前缀,可跨项目库检索;写入始终走默认库防误写\n- **热配置** — `endpoint` / `token` / `bankId` / 超时 / `autoRemember`,改完即时生效,无需重启\n- **部署诊断** — `hindsight_status` 连不上时返回具体诊断 + Docker 一键启动引导\n- **独立 client** — `HindsightClient` 是零依赖 HTTP 层(`health` `recall` `list` `listBanks` `stats` `graph` `related` `operations` `remember` `forget`),插件之外也能复用\n\n## 安装\n\n要求 Node ≥ 20,DeepSeek Harness ≥ 0.1.1-rc.2。\n\n装到 Web profile(完整 UI)和 Headless profile(命令行任务)——两者挂载同一套工具:\n\n```sh\n# npm registry(发布后)\ndsh plugin --profile web add dsh-hindsight\ndsh plugin --profile headless add dsh-hindsight\n\n# 或本地开发目录\ndsh plugin --profile web add \"link:/绝对/路径/dsh-hindsight\"\ndsh plugin --profile headless add \"link:/绝对/路径/dsh-hindsight\"\n```\n\n然后启动/重启 profile:\n\n```sh\ndsh --profile web\n```\n\n## 配置\n\n默认指向 `http://localhost:8888`、bank `hermes`。在 DSH 设置界面的 `hindsight` 命名空间里覆盖(别改 bundle patch):\n\n| 字段 | 默认 | 含义 |\n|---|---|---|\n| `endpoint` | `http://localhost:8888` | Hindsight 服务地址 |\n| `token` | `''` | 远程服务的 Bearer token;本地开放服务留空 |\n| `bankId` | `hermes` | 记忆 bank id |\n| `defaultRecallLimit` | `10` | 每次召回上限 |\n| `requestTimeoutMs` | `15000` | 数据面请求超时 |\n| `healthTimeoutMs` | `5000` | 健康探测超时 |\n| `autoRemember` | `true` | 会话中引导模型主动保存可持久事实(写前会先问) |\n| `systemPromptSection` | `true` | 向 system prompt 注入记忆引导段(模型开局即知有记忆) |\n| `recallCacheTtlMs` | `60000` | 召回缓存 TTL 毫秒(0 = 关闭缓存) |\n\n环境变量/用户设置优先于 bundle 默认值。token 不写进提交的配置。\n\n## 还没有 Hindsight?零基础起步\n\n本插件把 DSH 桥接到一个已有的 Hindsight 服务。**你还没有?** 用官方 Docker 镜像 ~1 分钟拉起(需要一个 `OPENAI_API_KEY`):\n\n```sh\ndocker run -it --pull always --name hindsight --restart unless-stopped \\\n  -p 8888:8888 -p 9999:9999 -e HINDSIGHT_API_LLM_API_KEY=$OPENAI_API_KEY \\\n  -v hindsight-data:/home/hindsight/.pg0 ghcr.io/vectorize-io/hindsight:latest\n```\n\n- API 监听 `http://localhost:8888`(本插件默认读取的地址)。\n- 从控制面板 `http://localhost:9999` 创建名为 `hermes` 的 memory bank,或在设置里把 `bankId` 改成你自己的。\n- `hindsight_status` 在服务不可达 / bank 缺失时会返回具体诊断和上面的启动命令,首次运行失败也会直接告诉你该怎么做。\n\n官方文档:https://hindsight.vectorize.io/developer/installation\n\n## 用法\n\n```text\n/hindsight status               # bank 统计、记忆/连接/文档数\n/hindsight recall 记忆架构决策   # 语义召回,显示文本 + ID\n/hindsight related <ID> [depth] # 遍历知识图谱邻居(1-5 跳)\n/hindsight list                 # 最近记忆\n/hindsight operations [数量]     # 最近异步操作状态(提取队列)\n/hindsight remember 记住X        # 入队异步结构化提取\n/hindsight forget <ID>          # 软删除(作废)一条记忆\n```\n\n在对话里直接让 Agent 做这些也行——它通过模型工具「查一下记忆」「记住这个」即可自己完成。\n\n## 构建与测试\n\n```sh\npnpm install\npnpm build        # tsdown:lib/index.js + index.d.ts + sourcemap\nnode scripts/test-client.mjs   # 对运行中的 Hindsight 做真实集成测试\n```\n\n`scripts/test-client.mjs` 命中真实 Hindsight 端点(health/stats/listBanks/recall/list/graph/related/remember/forget/diagnose),15 项契约全绿。**remember→recall 可见性有个要说明的坑**:Hindsight 通过自己的 LLM/consolidation 队列异步提取,刚 `remember` 的事实可能要超过测试窗口才出现在召回里——这是 Hindsight 自身的环境性依赖,不是插件问题。\n\n## 范围\n\n这是**轻量独立插件**,特意不是 dsh-mnemon 的替代:\n\n- ✅ 范围內:Hindsight REST client + 斜杠命令 + 模型工具 + 热配置。\n- ❌ 范围外:WebUI 工作台、多 provider 编排、捆绑存储、client/浏览器 bundle、提取/蒸馏子 Agent。\n\n## License\n\nMIT。见 [LICENSE](./LICENSE)。","users":{}}