Light-EI/dsh-ebbing-context ↗★ 1
dsh-ebbing-context
DSH 原生分层上下文压缩:模型自己把旧对话折成三层摘要,只写宿主本来就认识的会话事件。名字取自「渐渐消退」——模拟记忆的自然衰退,越旧的内容分辨率越低,但不是删掉。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Light-EI/dsh-ebbing-context说明文档
阅读完整 README ↗配置
设置入口:侧栏「插件」→ 找到 Ebbing Context → 行详情页(系统「设置」里的插件清单是只读的)。
15 项,全部是普通配置项,保存在 profile 的 cordis.patch.yml 里:
| 分组 | 项 |
|---|---|
| 配额 | budget.l1 / budget.l2 / budget.l3(各层占可用输入的百分比) |
| 单块上限 | segment.l1 / segment.l2 / segment.l3 / title.maxTokens |
| 提醒 | notice.enabled / notice.growthTokens / triggerPct |
| 行为 | keepTurns / pruneFirst / foldCallRecord / requireSessionQuery / reservedTokens |
建议关掉宿主自带的自动压缩(compaction-basic 的 auto,默认在 80% 时触发)。它一旦触发,会把这里的多层摘要重新拍平成一段高层摘要,细节永久丢失——插件本身不受影响,但效果会打折。本插件不能替你改那一行(它在 profile 的 group 里),需要你自己在 cordis.patch.yml 里写 config: { auto: false }。