GooodWei/context-vista
为DeepSeek Harness提供右侧悬浮栏以及/context命令,通过环形图实时展示当前上下文token使用量与分配情况、compact指令效果,同时支持费用消耗估算,对标Claude Code的/context功能。
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH), that adds a /context slash command to DSH's web interface. It can be installed using the official DSH CLI, with the command npx @deepseek-ai/dsh plugin --profile web add github:GooodWei/context-vista, followed by running npx @deepseek-ai/dsh web to launch the DSH web client. The plugin requires pnpm to be installed on your system already, since the DSH plugin installer calls pnpm under the hood, and if you have DSH installed globally you can replace the npx prefix with just dsh.
When a user types /context and presses enter, the plugin displays a detailed card that includes a donut chart breaking down context usage into system, tools, messages, and remaining space, a progress bar for overall usage, and cumulative/estimated API costs for the current session. A persistent mini floating donut card sits on the right side of the conversation panel, updating in real time without needing any command input. Users can drag the card anywhere on the screen, DSH remembers the new position after restart, and the card can be collapsed or expanded via a button in the top right corner. It also includes a one-click button to trigger DSH's built-in /compact context compression command.
The plugin comes with default pricing for official DeepSeek models, but users can customize pricing by editing ~/.dsh/settings.yaml, and the configuration supports hot reloading so you do not need to restart DSH after changing settings. You can add custom pricing per API route and per model, with support for peak/off-peak pricing tiers, multiple timezones, and different currency display symbols. Pricing values are entered as cost per million tokens, any unrecognized model falls back to built-in defaults, the project is released under the open source MIT license, and all cost estimates are for reference only, not actual billing amounts.
这是一款为 DeepSeek Harness 开发的原生插件,提供 /context 斜杠命令,能够以环形图可视化方式展示当前对话上下文的 Token 用量分配。插件还在对话区右侧常驻一个可拖动、可收起的迷你悬浮卡,实时显示上下文占用率和会话 API 调用成本估算,安装可通过 DSH 官方 CLI 完成。
用户输入 /context 命令回车后,插件会弹出详情卡片,展示按系统、工具、消息、剩余分类的上下文组成环形图、占用进度条,以及当前会话累计费用和总估算费用。右侧悬浮卡无需触发命令即可实时更新数据,支持拖动位置且自动记忆,还自带一键触发上下文压缩的按钮。
插件内置 DeepSeek 官方定价,支持用户通过编辑 DSH 的 settings.yaml 配置文件自定义新增或覆盖不同 API 路由、不同模型的定价信息,支持峰谷定价,配置支持热加载无需重启 DSH。项目采用 MIT 许可开源,估算费用仅供参考,不代表实际账单金额。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:context-vista(GooodWei/context-vista)
仓库:https://github.com/GooodWei/context-vista
本站详情页:https://www.yhbd.top/plugins/gooodwei-context-vista/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 11 · 最近提交 2026-09-08 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 11 stars - an early-stage project星标 11,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
npx @deepseek-ai/dsh plugin --profile web add github:GooodWei/context-vista
把 GooodWei/context-vista 加入你的 DSH 配置(web profile)即可启用。
READMEREADME

English · 中文
context-vista
一眼看清你的上下文窗口 —— token 用量、压缩收益、成本估算,尽收眼底。
为 DeepSeek Harness 提供 /context 斜杠命令,用环形图实时展示当前上下文 token 用量与分配。对话区右侧还常驻一张迷你悬浮卡,实时显示占用率与估算费用,可拖动、可收起。
安装
npx @deepseek-ai/dsh plugin --profile web add github:GooodWei/context-vista
npx @deepseek-ai/dsh web
需先安装 pnpm(
dsh plugin add内部会调用它)。已全局安装 dsh 时,npx @deepseek-ai/dsh可简写为dsh。
使用
输入 /context 回车,展示一张卡片:上下文组成环形图(系统 / 工具 / 消息 / 剩余)、占用进度条、会话累计与估算费用。
右侧的迷你环形图悬浮卡实时更新、无需输入命令;按住标题栏可上下拖动(位置自动记忆),点右上角箭头可收起/展开。悬浮卡底部还有「压缩上下文」按钮,点击即触发 /compact(效果等同输入命令),压缩进行中会显示「压缩中…」并禁用。
自定义定价
内置 DeepSeek 官方定价(人民币 ¥,含峰谷)。要覆盖或新增,编辑 ~/.dsh/settings.yaml(热加载,无需重启)。货币单位与峰谷定义都跟随 API(路由),每个路由可各自指定。
最简示例
context-vista:
pricing:
"https://api.deepseek.com":
models:
deepseek-v4-pro:
peak: { hit: 0.3, miss: 9, output: 27 }
offpeak: { hit: 0.15, miss: 4.5, output: 13.5 }
完整示例(DeepSeek ¥ + OpenAI $,标注全部键值对)
context-vista:
pricing: # 定价表:外层键 = 路由名 或 baseURL
"https://api.deepseek.com": # 路由①:DeepSeek,人民币 + 北京时间峰谷
currency: "¥" # 本 API 的计价货币单位(省略默认 "¥")
timezone: 8 # 峰谷时段所在时区(UTC 偏移;省略默认 8)
peakWindows: # 高峰窗口,HH:MM,含起点不含终点;start > end 表示跨午夜
- start: "09:00" # 高峰起点
end: "12:00" # 高峰终点
- start: "14:00" # 第二段高峰起点
end: "18:00" # 第二段高峰终点
models: # 本 API 下的模型(必填)
deepseek-v4-pro: # 模型名
peak: # 写法一(峰谷分档)· 高峰价
hit: 0.3 # 输入 · 命中缓存,每百万 tokens
miss: 9 # 输入 · 未命中缓存,每百万 tokens
output: 27 # 输出,每百万 tokens
offpeak: # 空闲价
hit: 0.15 # 输入 · 命中缓存
miss: 4.5 # 输入 · 未命中缓存
output: 13.5 # 输出
"https://api.openai.com/v1": # 路由②:OpenAI(ChatGPT),美元 + 无峰谷
currency: "$" # 本 API 的计价货币单位
models: # 无 timezone/peakWindows → 直接走平坦价
"gpt-5.5": # 模型名
hit: 2.5 # 输入 · 命中缓存,每百万 tokens
miss: 10 # 输入 · 未命中缓存,每百万 tokens
output: 30 # 输出,每百万 tokens
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Han-1413141/dsh-cost-meter
wssfk12138/dsh-damage-pulse
songoao25/dsh-bottom-info-bar
Phant0Meow/dsh-meow-cachebilling
Rianico/dsh-better-edit
Ghost011118/dsh-balance-meter
ai-shushu/dsh-quota-meter
TwotwoPiggy/dsh-balance