BOWLUNA/dsh-zcode-breaker ↗★ 0
dsh-zcode-breaker
自动压缩熔断器,防止无限循环压缩并定位超量源头。 适合频繁处理超大输入或工具输出、需要避免Token无限消耗的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:BOWLUNA/dsh-zcode-breaker說明文件
閱讀完整 README ↗Configuration
Every base-engine key survives, re-declared on the subclass so it is neither rejected by the base engine's strict validator nor lost:
| Key | Default | Meaning |
|---|---|---|
thresholdRatio | 0.8 | pressure ratio that triggers compaction |
retainRatio | 0.16 | retained tail ratio after compaction |
retainTokens | none | absolute token retention instead of the ratio |
summarizationProvider | empty | route used for summaries |
summarizationModel | empty | model used for summaries |
maxTokens | 8192 | summary output cap |
compactionRetries | 1 | retries after a failed summary |
maxOverflowRetries | 1 | overflow-recovery retries |
modelPolicies | none | per provider and model overrides of the keys above |
auto | true | automatic compaction master switch |
Added by this plugin:
| Key | Default | Meaning |
|---|---|---|
toolTurnThreshold | 2 | a gap under this many tool turns is rapid; exactly the threshold is not |
maxConsecutiveRapidRefills | 3 | refuse on the Nth consecutive rapid refill |
announceInPrompt | true | inject the advisory prompt section once tripped |
That is 13 config keys in total, and this file declares compatibility with dsh >=0.1.5-rc.2 <0.2.0-0.