eighteentang/dsh-plugin-memory-lite ↗★ 0

dsh-plugin-memory-lite

给 DSH 的本地优先跨会话记忆:每轮自动沉淀 + 空闲自动整理 + 按需注入。重点是注入纪律(压缩后补回、不重复注入、敏感内容不注入、删改走审批)。数据全部存在本地 SQLite,不联网、不上传。 适合注重隐私、需要本地化自动沉淀与按需注入跨会话记忆的用户。

패키지
dsh-plugin-memory-lite
호환성
미검증
Harness peer 범위
*
버전
1.8.0
라이선스
MIT
최근 업데이트
2026. 10. 13.

설치

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

配置

在 profile 的 cordis.patch.yml 里给插件加 config:

- id: memory-lite
  name: dsh-plugin-memory-lite
  config:
    autoCapture: true             # 每轮自动落日志(不花额度)
    autoRecall: true              # 每轮按关键词注入(不花额度)
    autoDistill: false            # 空闲自动整理 —— 默认关(会花模型额度)
    distillIdleMinutes: 30        # 开启 autoDistill 时:多久没说话才算"空闲"
    distillMinIntervalMinutes: 30 # 开启 autoDistill 时:两次整理之间的最小间隔
    distillMaxPerDay: 4           # 开启 autoDistill 时:每天最多整理几次(成本硬上限)
    injectMaxItems: 3             # 单次最多注入几条
    injectMaxChars: 2000          # 单次注入的字符上限
    crossWorkspaceSearch: true    # 允许跨工作区检索
    distillProvider: ''           # 留空 = 用会话默认模型
    distillModel: ''

关于花额度:默认 autoDistill: false —— 日志照记,但只有你点「立即整理」时才会调用模型。 想让它自己长出来就把 autoDistill 设成 true,那时上面三个 distill* 参数才生效 (空闲多久算闲 / 冷却 / 每天上限)。