pcysanji/dsh-context-ruler ↗★ 0
dsh-context-ruler
Context guard for DeepSeek Harness: live payload size on the answer action row, warn/danger colors, one-click handoff (draft only).
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:pcysanji/dsh-context-rulerREADME
Read the full README ↗配置
大部分项可以直接在面板里点 ⚙ 改,保存后立即生效;也可以编辑 $DSH_HOME/context-guard/config.json(Windows 默认 %USERPROFILE%\.dsh\context-guard\config.json)。
| 键 | 默认 | 说明 |
|---|---|---|
enabled | true | 总开关,关掉后插件完全不出现在界面上 |
showBadge | true | 只关显示,保留后台计算 |
showAlerts | true | 只关越线气泡,保留变色 |
autoLimit | true | 自动按当前模型的上下文窗口算判定线 |
contextWindow | 750000 | 手动窗口(autoLimit 关闭时生效) |
bytesPerToken | 7.5 | 每 token 的字节估算 |
warnRatio | 0.6 | 变黄阈值 |
dangerRatio | 0.85 | 变红阈值 |
refreshEveryTurns | 25 | 后台重算的最少回合间隔;悬停/点击总是立即重算 |
handoffDir | _交付 | 交接文档目录(相对工作目录) |
imageBytes | 350000 | 图片估不出字节时的兜底值 |