JohnathonYe/auto-compact ↗★ 2

dsh-auto-compact

会话级自动上下文压缩插件:回合中每步前 + 回合结束检测上下文用量,超过会话阈值自动 compact,摘要注入上下文后自然继续(DeepSeek Harness / DSH) 适合长对话任务、需要自动压缩上下文以节省Token的用户。

Package
dsh-auto-compact
Compatibility
Unverified
Harness peer range
^0.1.0-rc.6
Version
2.0.2
License
MIT
Last updated
Sep 23, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JohnathonYe/auto-compact

使用

  1. 点击输入区右侧的圆环,打开面板
  2. 面板显示当前会话的实时上下文用量(百分比)
  3. 拖动滑杆设置阈值(1%–90%,会话级独立;未拖动过的新会话默认 50%,仅当前会话生效,不影响其他会话)
  4. 之后每当用量超过阈值(回合中某一步之前,或回合结束时),插件自动执行 compact 并继续