jackyytche/dsh-hindsight-memory0

dsh-hindsight-memory

适用于 DeepSeek Harness 的 Hindsight 长期记忆插件,支持自动召回上下文注入与会话自动保存。

AI 分析

核心用途是为 DSH 提供跨步骤的长期记忆能力,在 Agent 步骤前自动召回历史上下文。适合需要处理长文本、跨会话复杂任务的用户。需配置 Hindsight API。

套件
dsh-hindsight-memory
版本
0.1.1
授權
MIT
最近更新
2026年9月1日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:jackyytche/dsh-hindsight-memory

配置(全部可省略)

- 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 即可覆盖任意键。