Qinling-Melon-Farmers/dsh-memoir ↗★ 31
dsh-memoir
DeepSeek Harness (DSH) local-first cross-session project memory: bounded cache-friendly Hot Memory, BM25 recall/cache, provenance, lifecycle and bilingual Web GUI; no embeddings, external service or bundled runtime dependencies. 适合需要无嵌入、无外部依赖的轻量化项目记忆,并自动提炼关键事实的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Qinling-Melon-Farmers/dsh-memoir配置
以下字段都可写在 cordis.patch.yml 的 memoir config 中;除 enabled 外,也可从记忆面板或 Settings 设置卡即时修改并持久化。
| 字段 | 默认值 | 作用 |
|---|---|---|
enabled | true | 工具、路由和 prompt 注入总开关 |
language | zh | Agent 文案语言;0.8.2 为 zh / en,0.9.0 新增 de / ru;与 GUI 语言独立 |
announceToAgent | true | 向 Agent 公告记忆工具与规则 |
autoDistill | true | 启用顶层有效回合收尾提醒 |
autoDistillEvery | 1 | 每 N 个 worked turn 最多提醒一次 |
autoDistillCooldownMin | 0 | 两次成功提醒的最短分钟间隔 |
autoDistillMinTools | 1 | 触发回合所需的最少工具调用数 |
hotMemoryTokens | 900 | Hot Memory 常规目标预算 |
hotMemoryMaxTokens | 1200 | 任何会话都不能超过的硬上限 |
readDefaultLimit | 8 | memoir_read 默认结果数 |
readMaxLimit | 30 | 单次召回实时上限 |
sessionSnapshotMax | 128 | 内存快照 LRU 容量,不删除磁盘快照 |
queryCacheSize | 128 | BM25 查询 LRU 容量 |
缩小缓存容量会立即淘汰最旧项;已冻结会话不会因预算修改而重写,以维持 prompt 前缀稳定。“恢复启动配置”会删除 Web 覆盖并回到 profile 的启动值。