SunlitCrack/dsh-compaction-threshold ↗★ 0
dsh-compaction-threshold
DSH 会话压缩阈值设置:在「插件」页本插件的配置卡里调自动压缩触发点与保留比例,保存即时写进 agent preset 隔离的压缩引擎 适合需要精细控制每个Agent隔离压缩引擎的触发阈值和保留比例的用户。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SunlitCrack/dsh-compaction-thresholdREADME
Read the full README ↗为什么不能只改 profile 配置
DSH 内核本来就带压缩(@deepseek-ai/dsh-compaction-basic,默认 thresholdRatio = 0.8 /
retainRatio = 0.16),但在 web / desktop 装配下改不到:
- 组合里进程级那一行
compaction-basic是被禁用的; - 每个 agent preset 在自己的隔离 realm 里各挂一个
BasicCompactionEngine(presets/cordis/agent.cordis.yml的compaction组,isolate: { compaction: true }); - 往
~/.dsh/profiles//cordis.patch.yml写同 id 行不落到会话实际用的那个引擎。