Yansera/dsh-living-memoir ↗★ 2

@yansera/dsh-living-memoir

Long-term memory for DeepSeek Harness: a short, categorized Markdown living document that gets rewritten instead of appended to, with a dedicated Web GUI page. 适合需要自动提炼、改写并持久化保存长期记忆的对话任务。

패키지
@yansera/dsh-living-memoir
호환성
미검증
Harness peer 범위
>=0.2.0-rc.2 <0.3.0
Cordis peer 범위
^4.0.1
버전
1.0.0
라이선스
MIT
최근 업데이트
2026. 10. 9.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Yansera/dsh-living-memoir

🔧 配置

部署级配置走 cordis.patch.yml:

- id: memoir
  name: '@yansera/dsh-living-memoir'
  config:
    memoryDir: ''              # 留空 = $DSH_HOME/memoir
    injectIndex: true          # 是否把记忆目录注入系统提示词
    maxInjectEntries: 12       # 最多注入几条
    autoDistill: true          # 每轮结束自动改写
    distillDebounceMs: 20000   # 改写前的安静等待(毫秒)
    distillMinChars: 400       # 少于这么多字符就跳过
    distillMaxItems: 60        # 整本条目上限
    distillMaxTokens: 8000     # 输出预算下限,会按记忆规模自动往上抬
    distillReasoningEffort: off # 改写不需要推理
    memoryLanguage: ''         # 记忆内容语言;留空 = 不限制
    pageEntryLimit: 12         # 单类超过这么多条触发强制整理
    bookEntryLimit: 40         # 整本超过这么多条触发强制整理

改完要重启,跟代码改动一样。