Perfirstvito/dsh-compaction-micro ↗★ 1
dsh-compaction-micro
Tiered micro-clear layer for DeepSeek Harness compaction: clears whitelisted re-runnable tool results to placeholders before the official summarization tier, freeing context with no model call.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Perfirstvito/dsh-compaction-micro说明文档
阅读完整 README ↗Configuration
| Field | Default | Meaning |
|---|---|---|
clearableTools | [] | Tool names whose results the micro tier may clear. Empty disables the tier. Only list read-only, re-runnable tools — the service does not verify that property. |
retainRecent | 3 | Newest clearable results always retained visible. |
microThresholdRatio | 0.85 | Clear at this fraction of the effective window. Must be in (0, 1]. |
reservedTokens | 0 | Tokens subtracted from the routed context window before scaling the threshold. |
auto | true | Install the automatic listeners; false exposes only ctx.microCompaction.clearSession(). |
The whitelist is operator-owned and is the safety gate: read/glob/grep and read-only web tools are the intended members; write, edit, shell, subprocess, and workflow tools must stay out.