1148462398-hub/dsh-shared-memory ↗★ 0
dsh-shared-memory
全局共享记忆:所有会话共用一份可读可改的 MEMORY.md,双硬盘分区镜像 + 历史快照 + 跨进程写锁。人设可对话调整;要求/指正/教训/方法/请求/会话/方法库/文档九个分区;按命中频率与重复强调(铁律)在主文件与可检索归档间双向流动;关键词共现联想 + BM25 排序,质疑度驱动换方法与翻归档;上下文压缩后自动重读。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:1148462398-hub/dsh-shared-memoryREADME
Read the full README ↗配置
见 dsh/cordis.patch.yml:
primaryPath # 主文件(留空 = %DSH_HOME%\dsh-shared-memory\MEMORY.md)
mirrorPath # 镜像(留空 = 第一块非系统盘)
injectChars # 注入系统提示词的字符上限,默认 6000
entryCap # 每类保留条数,默认 200
recordUserTurns # 是否自动记录用户输入,默认 true
recordSubagents # 是否记录子代理会话,默认 false
userSummaryChars # 用户输入摘要长度,默认 220
minUserChars # 短于这个长度的用户输入不记录,默认 4
reconcileIntervalMs # 双盘自动对账间隔,默认 600000(10 分钟),小于等于 10 秒不生效
skepticism # 初始质疑度 0-10,默认 5(只在首次创建 methodbook 分区时用)
autoDecay # 是否自动降档,默认 true
decayAfter # 连续多少次没更优降一档,默认 3
运行时用 memory_file_maintain(relocate) 改过的路径会写进 %DSH_HOME%\dsh-shared-memory\state.json,优先于 patch 配置。