miseryrua/dsh-wb-memory ↗★ 0

dsh-wb-memory

基于Markdown的本地工作区文件化记忆系统 适合需要跨会话长期记忆且不希望使用向量数据库的用户。

包名
dsh-wb-memory
兼容性
待验证
版本
9.0.0
许可证
MIT
最近更新
2026年9月26日

安装

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

配置项

  • 注入预算:profileMaxChars summaryMaxChars logMaxChars entryMaxChars relevantTopK pinnedMaxChars weekWindowDays weekMaxChars weekSummaryDailyChars
  • 流水与小结:autoDigest digestMaxPerDay digestUserChars digestAssistantChars sessionSummary summaryIdleMs summaryMinUserChars summaryMaxPerDay
  • 提炼与整理:autoDistill distillProvider distillModel compactProvider compactModel compactMaxTokens compactRetryFeedback distillMaxInputChars distillMaxTokens distillTimeoutMs distillIntervalMs distillStartDelayMs
  • 检索:memorySearchTool searchLogDays searchLogTopK
  • 治理:gcEnabled logRetentionDays memoryCharThreshold dupThreshold trashRetentionDays archiveRetentionDays
  • 其它:enabled activeProject dayBoundaryHour

缺字段自动用默认值补齐;坏 JSON 备份为 config.json.bak 后重建;带 BOM 的合法 JSON 正常加载。BOM 这一条是踩过坑的:PowerShell 5.1 的 Set-Content -Encoding UTF8 必写 BOM,而 Node 的 JSON.parse 不接受——历史事故是 distilled.json 被写进 BOM 让幂等标记全丢,全部历史日志被当作未提炼重跑,各工作区 MEMORY.md 追加了大量重复条目。