SunlitCrack/dsh-compaction-threshold ↗★ 0

dsh-compaction-threshold

DSH 会话压缩阈值设置:在「插件」页本插件的配置卡里调自动压缩触发点与保留比例,保存即时写进 agent preset 隔离的压缩引擎 适合需要精细控制每个Agent隔离压缩引擎的触发阈值和保留比例的用户。

패키지
dsh-compaction-threshold
호환성
미검증
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 10. 16.

같은 패키지 이름의 다른 저장소

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SunlitCrack/dsh-compaction-threshold

为什么不能只改 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 行不落到会话实际用的那个引擎。