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.

套件
dsh-compact-threshold
相容性
待驗證
Harness 依賴範圍
>=0.2.1-rc.2
版本
1.0.0
授權
MIT
最近更新
2026年10月28日

安裝

$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.tgz

使用

  1. 在输入框左下角找到「自动压缩 80%」。
  2. 点击胶囊打开面板。
  3. 拖动滑条或点击快捷档调整阈值。
  4. 查看「当前用量 / 上下文窗口 / 触发线」,确认触发线位置。
  5. 需要立刻释放上下文时点击「立即压缩」。

面板中的「触发线」是插件实际会使用的阈值:它取 min(窗口 × 比例, 窗口 - 输出预留 - headroom),因此输出预留较大的模型(例如 500K 窗口、184K 输出预留)会显示低于滑条比例的实际触发百分比。