AllShadowAnan/dsh-context-compressor ↗★ 0

dsh-context-compressor

User-set absolute context ceiling for DeepSeek Harness: when a session's estimated context reaches the configured token limit, the harness automatically compacts the conversation. Ships a dedicated settings page (host half + browser half). 适合需要严格控制Token消耗、防止长对话超出模型窗口限制的用户。

패키지
dsh-context-compressor
호환성
미검증
버전
1.0.1
라이선스
MIT
최근 업데이트
2026. 10. 6.

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

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:AllShadowAnan/dsh-context-compressor

配置

同样这四个字段也可以从组合层预置——插件的 cordis.patch.yml,或 profile 的补丁:

- insert:
    - id: context-compressor
      name: dsh-context-compressor
      config:
        enabled: true
        contextLimit: 120000
        retainTokens: 20000
        maxRounds: 3

id 是设置页所编辑的设置命名空间,不是包名。如果你要改名,请保持三处一致(lib/index.js 的 SETTINGS_NS、lib/client.js 的 SETTINGS_NS、以及补丁行的 id)。