JiuChenTian/dsh-handoff-memory ↗★ 0
dsh-handoff-memory
将对话上下文压缩提炼为Markdown记忆文档 适合长对话中需要自动整理历史记忆、防止上下文丢失的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JiuChenTian/dsh-handoff-memory說明文件
閱讀完整 README ↗Configuration
Set in your profile's patch, or by overriding the bundle's own patch:
| key | default | meaning |
|---|---|---|
memoryDirName | .dsh-memory | archive directory inside the workspace |
contextWindow | 262144 | the engine's token window, for pressure maths |
pressureRatio | 0.5 | safety-net trigger fraction |
overflowRatio | 0.85 | fraction above which reduction is segmented |
maxResultChars | 3600 | hard cap on excerpt characters per memory_search reply |
readWindowChars | 4000 | window size for memory_read |
searchLimit | 5 | default memory_search limit |
maxListedSessions | 12 | conversations /memory lists before truncating |
chunkChars / chunkOverlap | 1200 / 150 | chunking of a handoff document |
idleDebounceMs | 1500 | debounce before the safety net measures an idle session |
maxStreak | 3 | consecutive safety-net compactions per session before backing off |
captureSubagents | false | also archive compactions that happen inside subagents |
配置
写在 profile 的 patch 里,或覆盖 bundle 自带的 patch:
| 键 | 默认值 | 含义 |
|---|---|---|
memoryDirName | .dsh-memory | 工作区内的归档目录名 |
contextWindow | 262144 | 引擎 token 窗口,用于压力计算 |
pressureRatio | 0.5 | 安全网触发比例 |
overflowRatio | 0.85 | 超过此比例改为分段压缩 |
maxResultChars | 3600 | 单次 memory_search 回复的摘要字符硬上限 |
readWindowChars | 4000 | memory_read 的窗口大小 |
searchLimit | 5 | memory_search 默认条数 |
maxListedSessions | 12 | /memory 列出多少个对话后截断 |
chunkChars / chunkOverlap | 1200 / 150 | 交接文档的分块大小与重叠 |
idleDebounceMs | 1500 | 空闲会话进入安全网测量前的防抖 |
maxStreak | 3 | 单会话连续安全网压缩次数上限 |
captureSubagents | false | 是否也归档子代理里发生的压缩 |