hardes11/dsh-squeeze-command0

dsh-squeeze-command

DeepSeek Harness 的手动预算导向上下文压缩插件:由对话模型选择范围,通过廉价模型写入摘要检查点

AI 分析

核心用途是通过智能压缩历史对话来降低长文本的 Token 成本。适合长对话、重度上下文消耗场景,希望通过摘要技术节省 API 费用的用户。

套件
dsh-squeeze-command
版本
0.1.1
授權
MIT
最近更新
2026年9月2日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

Configuration

FieldDefaultMeaning
contextBudgetTokens— (required for bare /squeeze)target for bare invocation
summarizerProvider— (required)provider key for the summary route
summarizerModel— (required)model id for the summary route
summarizerReasoningEffortnulleffort pin for summarizer calls; pin e.g. low only if the route's effort map declares it
summarizerConcurrency5max parallel summarizer calls
maxSpanInputTokens30000per-span summarizer input cap
maxSummaryTokens2048per-summary output cap
minSpanTokens200span floor worth a checkpoint
maxSnapSteps5balanced-edge snap budget

Invalid values (zero, negative, non-integer) fail at plugin load with a named-field error, not at squeeze time.

The summarizer route should be a cheap, fast model — a flash-tier model is the sweet spot: dense summarization is not reasoning-heavy work, and spans run in parallel. The plugin is provider-neutral; any route registered in your DSH settings works.