dsh-context-governor
上下文占用档位、按模型窗口推算的每会话压缩阈值、按缓存读取/写入费率计算的单步费用、缓存命中率、DeepSeek 余额与高峰/低谷费率,以及一键交接。它从不调用模型,也不消耗 token。
- 形态
- Plugin 插件
- 安装
- npm 包安装
- 需要密钥
- 是
- 近月下载
- 1,993
- 最近推送
- 11 天前更新
项目说明
From README
dsh-context-governor English Русский 中文 A DeepSeek Harness plugin: a session context indicator — prompt size, step cost, cache-hit, bands and the compaction threshold, DeepSeek balance and the peak/off-peak tariff, plus a handoff button and a compact button that runs the built-in /compact .
On its own it never calls a model and spends no tokens — the one exception is the compact button, which asks the harness to run /compact when you click it.What it looks like The chip in the session header opens the panel below.
The same panel is available in English, Chinese and Russian: English 中文 Русский --- --- --- The handoff button sits next to the model selector; the compact button sits beside it: No tokens and no model calls on its own Everything the plugin shows is measurement and arithmetic .
It reads tokens and the window from harness projections, computes the cost with the configured rates
Original description
Context chip for DeepSeek Harness: cost per step, cache-hit, bands, compaction threshold, balance, tariff. Never calls a model. | Индикатор контекста для DeepSeek Harness: цена шага, кэш-хит, полосы, порог компакции, баланс, тариф. Модель не вызывает и токены не тратит.
安装方式
npm 包安装 · 需要额外配置密钥
dsh plugin --profile web add dsh-context-governordsh plugin --profile web add github:mpinaev/dsh-context-governorDSH **disables** the plugin when its declared range does not cover the running安全能力
静态扫描源码得到的权限画像 —— 回答的是「它要动什么」,而不是「它好不好」
- 执行命令
- 写入文件
- 读取文件
- 访问网络
- 读取凭据
- 读取环境变量
- 访问宿主运行时
未发现已知红线(明文传输、安装期执行代码、凭据外传等)。
能力与红线来自 awesome-dsh-plugin 的静态扫描结果(CC0 公有领域),本站未逐行复核源码; 它只覆盖能被静态识别的模式,不等于安全审计结论。
为什么是这个分数
近 12 天内有提交;README 给出了可直接复制的安装命令;运行前需要准备 API Key 或环境变量;近月 npm 下载 1993 次,star 不多但真在被使用。
- 维护活跃
- 86
- 实用度
- 92
- 生态热度
- 66
- 上手便捷
- 74
- 信号质量
- 100
- 数据置信度
- 100%
相关插件
dsh-cache-billing
better-er/dsh-cache-billing
在上下文圆环弹层里实时算账:当前步、当前轮、会话累计三块明细,缓存命中/未命中/输出各带 token 与金额,官方峰谷价与模型分价自动判定,第三方中转照常记账。
dsh-compact-relay
cfanzx/dsh-compact-relay
DeepSeek Harness 输入框上下文指示器:分段显示会话占用、压缩判断点与 DSH 原生自动压缩线(越线红闪)。支持预览后确认压缩(/bc)、无痕交接(旧会话归档为「历史 N」、新会话继承原名,输入框上方接力条可回看完整交接链并双向跳转)、锁定消息防压缩与失效标注。设置里可配阈值、配色与交接后自动归档开关。
dsh-session-handoff
snow-The/dsh-session-handoff
会话交接与上下文管理:导出/恢复结构化交接文档,让新会话无缝续接;并集成了主动上下文裁剪(acp_* 工具,基于官方 compaction API 与模型自写摘要)。