JiuChenTian/dsh-handoff-memory ↗★ 0

dsh-handoff-memory

将对话上下文压缩提炼为Markdown记忆文档 适合长对话中需要自动整理历史记忆、防止上下文丢失的用户。

包名
dsh-handoff-memory
兼容性
待验证
版本
1.0.0
许可证
MIT
最近更新
2026年10月19日

安装

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

Configuration

Set in your profile's patch, or by overriding the bundle's own patch:

keydefaultmeaning
memoryDirName.dsh-memoryarchive directory inside the workspace
contextWindow262144the engine's token window, for pressure maths
pressureRatio0.5safety-net trigger fraction
overflowRatio0.85fraction above which reduction is segmented
maxResultChars3600hard cap on excerpt characters per memory_search reply
readWindowChars4000window size for memory_read
searchLimit5default memory_search limit
maxListedSessions12conversations /memory lists before truncating
chunkChars / chunkOverlap1200 / 150chunking of a handoff document
idleDebounceMs1500debounce before the safety net measures an idle session
maxStreak3consecutive safety-net compactions per session before backing off
captureSubagentsfalsealso archive compactions that happen inside subagents

配置

写在 profile 的 patch 里,或覆盖 bundle 自带的 patch:

键默认值含义
memoryDirName.dsh-memory工作区内的归档目录名
contextWindow262144引擎 token 窗口,用于压力计算
pressureRatio0.5安全网触发比例
overflowRatio0.85超过此比例改为分段压缩
maxResultChars3600单次 memory_search 回复的摘要字符硬上限
readWindowChars4000memory_read 的窗口大小
searchLimit5memory_search 默认条数
maxListedSessions12/memory 列出多少个对话后截断
chunkChars / chunkOverlap1200 / 150交接文档的分块大小与重叠
idleDebounceMs1500空闲会话进入安全网测量前的防抖
maxStreak3单会话连续安全网压缩次数上限
captureSubagentsfalse是否也归档子代理里发生的压缩