jackyytche/dsh-hindsight-memory ↗★ 2

dsh-hindsight-memory

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

Package
dsh-hindsight-memory
Compatibility
Unverified
Harness peer range
^0.2.0-rc.1
Cordis peer range
>=4.0.1 <5.0.0
Version
0.2.0
License
MIT
Last updated
Sep 30, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add 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 即可覆盖任意键。