Charles516z/dsh-autocompress ↗★ 0
dsh-autocompress
Scheduled context compaction for DeepSeek Harness: compress every idle session at a fixed time each morning, catch up on the next launch, or run /compact-all on demand.
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Charles516z/dsh-autocompress配置
在 profile 的 cordis.patch.yml 里覆盖,全部可选:
- id: autocompress
config:
time: '08:30' # 本地墙钟时间 HH:MM
catchUp: true # 当天错过时,启动后补跑一次
target: all # all = 所有存活会话;roots = 只压顶层会话
retries: 2 # busy 会话的延后重试次数(仅定时触发)
retryMinutes: 10 # 每次重试间隔(分钟)
timeoutMinutes: 30 # 单个会话压缩超时,超时即中断
settleSeconds: 20 # 启动补压前等待宿主就绪的秒数
gapMs: 250 # 两个会话之间的间隔