跳到主要内容
Plugin

dsh-context-governor

mpinaev/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 包安装 · 需要额外配置密钥

README 解析
shell
dsh plugin --profile web add dsh-context-governor
shell
dsh plugin --profile web add github:mpinaev/dsh-context-governor
shell
DSH **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%
评分怎么算