hashdiana/dsh-token-usage 预览 preview

hashdiana/dsh-token-usage

Plugin插件 Native原生 ⭐ 2 MIT Usage & Cost用量与计费

Project Overview项目介绍

dsh-token-usage is a browser-side DSH plugin for DeepSeek Harness that replaces the cramped single-line token display under the composer with a glanceable color bar and a click-to-open details panel. The bar turns green, amber, and red as the context window fills, separating billed input into cache-read, cache-write, and uncached, with hit rate, decode throughput, and TTFT surfaced inline. The panel adds context composition plus session, turn, model, and tool counts. Use it when default stats feel hard to read; theme styling is scoped, and a profile restart is required after install.

dsh-token-usage 是 DeepSeek Harness 浏览器端的 DSH 插件,将输入框下拥挤的单行 token 用量替换为可一眼读取的彩条与详情面板,按上下文占用变绿、橙、红,并分离计费输入、缓存读写命中率,以及 tok/s 与 TTFT。点击条形可查看上下文组成、会话轮次、模型与工具耗时。仅依赖 --dsw-* 主题令牌,自动跟随明暗,附中英文。安装后需重启 dsh web 才会生效;Git 来源包含构建后的 lib/,无需运行构建。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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命令行安装

dsh plugin --profile web add github:hashdiana/dsh-token-usage

把 hashdiana/dsh-token-usage 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-token-usage

A clearer, prettier token-usage bar for the DeepSeek Harness web UI.

GitHub stars License: MIT DSH Plugin

🌐 中文 · English

The shipped DeepSeek Harness web UI squeezes token usage into one cramped line of text under the composer. dsh-token-usage replaces it with a glanceable chip bar plus a details panel with the full breakdown — and it follows your theme, light or dark.

🎯 Token usage shouldn't have to be decoded — it should be readable at a glance.

Screenshots

dsh-token-usage bar under the composer

The token-usage bar under the composer.

dsh-token-usage details panel

The details panel — click the bar to open it.

Contents

Highlights

  • Context at a glance — a thin occupancy bar that turns green → amber → red as you fill the context window.
  • Input, output, and cache, separated — billed input splits into cache-read / cache-write / uncached, with the cache-hit rate shown up front.
  • Speed where you need it — decode throughput (tok/s) and average first-token latency (TTFT) right on the bar.
  • A details panel on click — context composition (system / tools / messages), a stacked input split, and session turn / step / model / tool time.
  • Natural edge fades — the panel's top and bottom edges fade and blur while there's more to scroll, and vanish at the ends.
  • Theme-adaptive and bilingual — styled only with --dsw-* tokens (light/dark), shipped in Chinese and English.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-plugin-herdr 下一个 Next dsh-token-attention →