@aiwayds/dsh-dcp
Deterministic context-pruning compaction backend for dsh (DeepSeek Harness) — zero-LLM summaries, /dcp command, works out of the box. Design references Opencode-DCP/opencode-dynamic-context-pruning.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fan56/dsh-dcp说明文档
阅读完整 README ↗配置
全部可选,默认即用:
| 键 | 默认 | 说明 |
|---|---|---|
thresholdRatio | 0.7 | 压力触发阈值;中文场景建议 0.7 |
roundInterval | 50 | 每 N 轮触发一次压缩(0 关闭)。默认 50:50、100、150……每次压缩后重数 |
notice | true | 压缩后在会话中追加一行通知 |
language | zh | 摘要语言;zh 额外识别中文报错和"待办:" |
tokenEstimate | cjk | CJK(中/日/韩/全角)按 ~2 字符/token 计价;ascii 与宿主一致 |
dedup | true | 标注重复工具调用 |
purgeErrors | true | 旧报错折叠成一条提示 |
maxItems / maxItemChars | 10 / 200 | 摘要密度 |
maxSummaryTokens | 2048 | 摘要 token 预算 |