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).

套件
dsh-context-ruler
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年11月16日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:pcysanji/dsh-context-ruler

配置

大部分项可以直接在面板里点 ⚙ 改,保存后立即生效;也可以编辑 $DSH_HOME/context-guard/config.json(Windows 默认 %USERPROFILE%\.dsh\context-guard\config.json)。

键默认说明
enabledtrue总开关,关掉后插件完全不出现在界面上
showBadgetrue只关显示,保留后台计算
showAlertstrue只关越线气泡,保留变色
autoLimittrue自动按当前模型的上下文窗口算判定线
contextWindow750000手动窗口(autoLimit 关闭时生效)
bytesPerToken7.5每 token 的字节估算
warnRatio0.6变黄阈值
dangerRatio0.85变红阈值
refreshEveryTurns25后台重算的最少回合间隔;悬停/点击总是立即重算
handoffDir_交付交接文档目录(相对工作目录)
imageBytes350000图片估不出字节时的兜底值