2718labs/dsh-compaction-continuum ↗★ 0
dsh-compaction-continuum
Structural Compression (结构性压缩) for DeepSeek Harness context: one cited-atom extraction call, a structural-mechanics solve, and a deterministic checkpoint with reconstruction certificates.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:2718labs/dsh-compaction-continuum说明文档
阅读完整 README ↗Configuration
The plugin row configures the compressor only. Compaction thresholds and retention are determined by the shipped engine that runs it.
| Key | Default | Description |
|---|---|---|
mode | extract | extract performs one model call; deterministic stays fully local; off returns control to the shipped summarizer |
extractorMaxTokens | 12000 | Output cap for the extraction call |
checkpointMaxTokens | 6000 | Structural-checkpoint budget |
verbatimTokens | 20000 | Verbatim-retention budget for user requests and recent units; 0 disables the near-lossless layer |
recallTool | true | Register context_recall and add the checkpoint's Recall hint |
maxRetainedImages | 4 | Maximum image blocks spliced into the checkpoint; 0 disables image retention |
selectionThreshold | 0.35 | Load-bearing cutoff relative to the maximum displacement |
minKeep | 8 | Minimum number of items retained |
statusCommands | true | Whether to register the commands and loopback diagnostics |
maxRecordedCompactions | 32 | Compaction-ledger entries retained per session |
logDecisions | true | Whether compile decisions are logged |
Keys shared with the shipped backend — thresholdRatio, retainTokens, maxTokens and similar — take effect only when this plugin is itself the compaction provider. On desktop, the preset engine's policy applies; /context_status reports the resolved values.