DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Hindsight Memory — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
H

dsh-hindsight-memory

Hindsight Memory

Hindsight long-term memory for DeepSeek Harness: auto-recall context injection before each agent step (agent/pre-step) and auto-retain of each finished turn (session/event).

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:jackyytche/dsh-hindsight-memory#3b378935f37e61fefc6851adcc1447df16b1f213
READMECompatibilityVersions

Compatibility and provenance

Hindsight Memory is published as dsh-hindsight-memory and currently resolves to version 0.1.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
9/1/2026

Versions

0.1.1stable
9/1/2026

Related plugins

Loading related plugins…

Latest
0.1.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/2/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in memory-context.

Memory Plugin@openviking/dsh-memory-pluginOpenViking memory and context bundle for DeepSeek HarnessContextdsh-contextA DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.Weknora@wxg-prc-cpg/dsh-weknoraWeKnora knowledge retrieval tools for DeepSeek Harness (dsh): semantic search, document reading and RAG/agent answers over your own knowledge bases.Memsearch Dsh@zilliz/memsearch-dshMemSearch plugin for DeepSeek Harness: shared markdown memory across agents, with capture, pre-step context injection, memory-recall skill, and a skill-candidate review panel.

README

dsh-hindsight-memory

把 Hindsight 变成 DeepSeek Harness 的 管线级长期记忆:不暴露任何 agent 工具,模型调用前后自动完成记忆的注入与留存 (即 Hermes Agent 的 pre_llm_call / post_llm_call 钩子模式)。

工作原理

钩子DSH 事件行为
Auto-Recallagent/pre-step(waterfall)每轮一次(对齐 Hermes 的 prologue 语义):仅在 turn 的第一个 LLM 调用(step 1)前,取最新用户消息(≤800 字符)作 query 调 Hindsight recall,把相关记忆作为一条插件来源的 user 消息追加进步骤批次。后续 step 不再召回——turn 级 WeakMap 认领(防重放),工具循环内复用 step 1 已持久化的那一块。琐碎输入跳过(对齐 Hermes is_trivial_prompt):“好的/嗯/ok/谢谢/继续”等寒暄确认及 / 斜杠命令不发起召回。
Auto-Retainsession/event(observer)轮次结束(turn/end)后,从会话日志组装该轮 User/Assistant 文本,异步 retain 入库(fire-and-forget,绝不阻塞循环)。
  • 标题生成、会话摘要等内务 LLM 调用不经过 agent loop,天然不受记忆注入污染。
  • resume 会话通过 session.firstLiveSeq 跳过历史事件,不会重复留存旧轮次。
  • Hindsight 任何故障都被隔离:recall 失败 → 本步无注入;retain 失败 → 仅记日志,聊天永不中断。
  • 子 agent / fork 会话默认同样参与(includeSubagents 可关)。

设置界面

插件带浏览器半:重启后设置侧边栏会出现独立分节 设置 → Hindsight 记忆插件 (顶级条目,注册于 settings.section slot),可就地编辑并保存(写入 settings.yaml 的 hindsight-memory: 用户层,实时生效、无需重启):

控件字段说明
启用开关enabled关闭后立即停止注入与留存
API URLapiUrlHindsight API 地址
API KEYapiKeyBearer Token,留空不认证
BANK IDbankId记忆库名,可改成 hermes 的 bank 以共享记忆
Recall BudgetrecallBudgetlow / mid / high 三档

每字段支持「重置」(回退到组合层配置值);保存失败时保留草稿可修正重试。 配置分层遵循 DSH settings 语义:schema 默认值 ← bundle patch(base)← 用户层。

配置(全部可省略)

- insert:
    - id: hindsight-memory
      name: dsh-hindsight-memory
      config:
        apiUrl: http://127.0.0.1:28888       # Hindsight API
        apiKey: ""                            # 可选 Bearer token
        bankId: dsh                           # 记忆 bank
        autoRecall: true
        autoRetain: true
        recallBudget: low                     # low / mid / high
        recallTypes: [observation]            # 只注入蒸馏后的观察层
        maxQueryChars: 800
        recallTimeoutMs: 8000                 # 服务端冷启动首个 recall 可能偏慢
        maxMemories: 8
        maxBlockChars: 4000
        retainContext: conversation between the DSH agent and the user
        retainTags: [source:dsh]
        includeSubagents: true
        retainEveryNTurns: 1
        verbose: false

bundle 自带的 cordis.patch.yml 已写入 apiUrl / bankId 默认值;在 profile 的 cordis.patch.yml 里再插一条同 id 的 insert 即可覆盖任意键。

安装

dsh plugin --profile web add dsh-hindsight-memory   # 或本地路径

安装器会把包写进 profile 依赖与 dsh.profile.bundles,bundle patch 随之生效。 重启 dsh web 后,宿主日志应出现:

hindsight-memory: active (api=… bank=… recall=true retain=true)

卸载 / 回滚

dsh plugin --profile web remove dsh-hindsight-memory

验证

  1. 新会话告诉 agent 一个事实(如「我的服务器叫 atlas」),正常聊完一轮。
  2. 打开 Hindsight UI(部署机的 29999 端口)→ bank dsh,应看到刚留存的 User: … / Assistant: … 记忆。
  3. 再开一个全新会话直接问「我的服务器叫什么」——回答应直接带上答案, 全程没有调用任何工具。