deepseekv41flash/dsh-context-truth ↗★ 1
dsh-context-truth
DeepSeek Harness plugin: tells the model its real, host-measured context occupancy every turn — and keeps compaction summaries from carrying false "context is nearly exhausted" claims. 适合需要精准控制上下文、避免模型因压缩误判额度耗尽的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:deepseekv41flash/dsh-context-truthドキュメント
README 全文を読む ↗配置(全部可选)
| 键 | 默认 | 说明 |
|---|---|---|
enabled | true | 总开关(只关第 1 个能力) |
language | en | en / zh 文案语言 |
order | 100 | 在 runtime-context 里的排序(沙箱 110、审批 115,所以在最前) |
quantumPercent | 5 | 显示台阶(窗口百分比),决定重发频率 |
thresholdRatio | 0.8 | 与 dsh-compaction-basic 对齐 |
headroomTokens | 65536 | 同上 |
reservedCompletionTokens | null | 默认读路由请求自身的 maxTokens |
moderateAt / tightAt | 0.5 / 0.85 | 分档边界(相对自动压缩点) |
hysteresis | 0.05 | 降档迟滞 |
authoritative | true | 是否附加"本行是唯一权威"那句 |
staleClaimClause | true | 是否在 calm 档声明旧说法作废 |
logBandChanges | true | 分档变化时写一条 ctx.logger.info |
patchCompactionPrompt | true | 是否给压缩指令补规则 |
compactionRules | 见上 | 规则数组;[] 关闭本能力 |