xlcg10086/dsh-compact-threshold ↗★ 0
dsh-compact-threshold
Live context-compaction threshold control (20%–80%) for the DeepSeek Harness composer. Adjust it without restarting DSH; lowering it below current usage triggers compaction immediately when idle.
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add https://github.com/xlcg10086/dsh-compact-threshold/releases/download/v1.0.0/dsh-compact-threshold-1.0.0.tgzREADME
Read the full README ↗使用
- 在输入框左下角找到「自动压缩 80%」。
- 点击胶囊打开面板。
- 拖动滑条或点击快捷档调整阈值。
- 查看「当前用量 / 上下文窗口 / 触发线」,确认触发线位置。
- 需要立刻释放上下文时点击「立即压缩」。
面板中的「触发线」是插件实际会使用的阈值:它取 min(窗口 × 比例, 窗口 - 输出预留 - headroom),因此输出预留较大的模型(例如 500K 窗口、184K 输出预留)会显示低于滑条比例的实际触发百分比。