dsh-memnexus
统一长期记忆中枢:本地持久记忆 + L0~L3 分层蒸馏 + 上下文压缩结构化摘要 + Hindsight 桥接 + 可视化记忆管理面板。 · Unified long-term memory for DeepSeek Harness.
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SMPcosy/dsh-memnexus配置项(面板「设置」或 config.json)
| 键 | 默认 | 说明 |
|---|---|---|
autoCapture | true | 每轮结束写 L0 摘要 |
autoRecall | true | 每步前注入相关记忆 |
autoDistill | true | 自动跑 L0→L3 蒸馏 |
captureMinChars | 60 | 一轮内容太短不沉淀 |
distillEvery | 8 | 攒够多少条 L0 触发蒸馏 |
distillDepth | 2 | 蒸馏层数 1/2/3:1=只到 L1 事实,2=再加 L2 场景,3=再加 L3 画像 |
llmTimeoutMs | 120000 | 单次蒸馏调用的超时(本地 27B 上 L1 一次可能要 5 分钟) |
recallLimit / recallMaxChars | 8 / 1400 | 召回条数与字符预算 |
modelProvider / modelId | 空 | 指定蒸馏模型,空=跟随默认模型 |
hindsight.enabled | false | 启用 Hindsight 桥接 |
hindsight.apiUrl / apiToken / bank | 空 | Hindsight 服务地址 / token / bank(bank 留空自动识别) |
hindsight.pullOnStart | false | 启动时自动拉取 |