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

dsh-plugin-memory-lite

提供本地SQLite驱动的跨会话记忆管理 适合注重隐私、需要本地化自动沉淀与按需注入跨会话记忆的用户。

套件
dsh-plugin-memory-lite
相容性
待驗證
Harness 依賴範圍
*
版本
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* 参数才生效 (空闲多久算闲 / 冷却 / 每天上限)。