context-vista
Manifest valid★ 12Provides a right-side floating bar and `/context` command for DeepSeek Harness, using a ring chart to display the current context token usage and allocation in real time, along with the `compact` command effect, while also supporting cost estimation—modeled after Claude Code's `/context`.
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
价格为每百万 tokens 的单价,按各 API 实际币种填写;
currency只控制显示符号、不换算汇率;无峰谷的 API 省略timezone/peakWindows即可。上表数字仅示意。
- 外层键可用 provider 路由名(如
deepseek-official)或 baseURL(含:需加引号)。 - 每个路由可带
currency/timezone/peakWindows(各自覆盖全局默认),models为必填。 - 模型价格条目二选一:平坦
{ hit, miss, output },或峰谷{ peak, offpeak }。 - 支持
*作为路由名或模型名的通配符。 - 未匹配到的模型按内置默认(模型名含
flash走 flash 档,否则 pro 档)。 - 金额仅为估算,非账单。
License
MIT
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
Comments
Loading…
Similar plugins
by chuxindd
Persistent task state and context-aware compaction for DeepSeek Harness coding sessions.
★ 0
MIT
TypeScript
Sep 20, 2026
dsh plugin --profile web add dsh-context-enhancementby lcohvne-tomorin
Sidebar context/billing dashboard for DeepSeek Harness: live context ring, per-session usage & spend, account balance and token-plan quota readouts across configured LLM channels.
★ 0
MIT
JavaScript
Sep 15, 2026
dsh plugin --profile web add dsh-context-dashboardby deepseekv41flash
给 DSH 模型每轮回填宿主实测的上下文占用,并阻止"上下文快用尽"的错判被压缩摘要继承。
★ 7
↓ 77/wk
MIT
JavaScript
Oct 12, 2026
dsh plugin --profile web add dsh-context-truthby GHJIVHIDD
DeepSeek Harness 的用量(Usage)部署级插件:会话视图环新增「用量」页签,实时跟踪输入/输出/缓存命中 tokens 与费用(DeepSeek 官方峰谷价 + OpenCode Go 套餐价),动态渐变蓝状态条、自定义价格表、CSV/JSON 导出。原生UI界面
★ 3
Apache-2.0
JavaScript
Aug 20, 2026
dsh plugin --profile web add @deepseek-ai/dsh-plugin-usageby cfanzx
DeepSeek Harness 输入框上下文状态指示与管理插件:实时显示容量占用,支持压缩前预览确认、九段式会话交接与关键消息锁定。 · Context indicator plugin for DSH: occupancy monitoring, preview-then-confirm compaction, 9-section handoff, and message pinning.
★ 4
MIT
JavaScript
Oct 29, 2026
dsh plugin --profile web add dsh-compact-relayby Andrew111888
A floating credit/quota widget for the DeepSeek Harness Web: shows DeepSeek / OpenCode Go balances and usage, and tracks DSH session token usage and estimated cost by day, month, and model.
★ 6
↓ 248/wk
BSD-3-Clause
JavaScript
Aug 26, 2026
dsh plugin --profile web add dsh-plugin-balance