dsh-live-stats
by proton1917
DSH Web 外部插件:接管编辑器的统计格,实时渲染完整会话状态行——输入、输出与未截断的 token 总数
External plugin for DSH Web. It owns the composer's stats slot cell, renders the complete session status row with live input, output, and unabridged total token counts, and…
安装
dsh plugin --profile web add github:proton1917/dsh-live-statsGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
External plugin for DSH Web. It owns the composer's stats slot cell, renders the complete session status row with live input, output, and unabridged total token counts, and adds a second row for generation throughput:
Input ~7.9K tok · Output ~12 tok · Total ~7,912 tok
TPS 31.4 tok/s
~ marks a value that still includes the current request's input estimate. Streamed DeepSeek output is counted with the official tokenizer; provider usage replaces all provisional values when it arrives. Exact cache accounting continues to come from DSH's durable token-usage projection. A retry replaces the prior estimate for that step, and an aborted turn removes its unsettled estimate.
TPS is the number of tokens added after the first output sample divided by the elapsed time between the first and latest token-bearing stream events. Final usage, block-end, and assistant-message events correct counts but do not extend that interval. A one-sample response therefore has no TPS value instead of an artificial terminal-event rate.
The plugin replaces the built-in conversation.composer.dock entry through the slot registry's documented same-id priority mechanism. It reads public sessionStats and tokenUsage projections, owns liveTokenUsage, and leaves the Harness checkout untouched. A Harness update therefore no longer needs to replay a StatsLine source patch.
The package is a profile bundle and mounts itself without a separate home-level patch:
- insert:
- id: live-stats
name: '@proton1917/dsh-live-stats'
The bundled tokenizer comes from DeepSeek's official tokenizer download. See THIRD_PARTY_NOTICES.md for its source, checksums, and license references.
Requirements
- DeepSeek Harness
0.1.0-rc.7or later. - A local checkout when developing through
link:, or a GitHub/npm package spec for a managed installation. - Node.js and pnpm versions accepted by the harness repository.
Build and test
pnpm install
pnpm run typecheck
pnpm test
pnpm run build
Load in DSH Web
Build the plugin and add its bundle to the Web profile once:
dsh plugin --profile web add @proton1917/dsh-live-stats@link:$HOME/Projects/dsh-live-stats
dsh web
The profile records the bundle in dsh.profile.bundles; normal Harness installations and upgrades keep the profile and its plugin dependency outside the Harness source checkout.
For client and server hot updates, run the Web app in development mode and keep the plugin watcher in a second terminal:
dsh web --dev
cd ~/Projects/dsh-live-stats
pnpm run dev
The plugin watcher rebuilds lib/index.js and lib/client.js; DSH Web reloads the client contribution through HMR without replacing the page.
Compatibility updates
The repository builds against published DSH release packages rather than relative links into one Harness checkout. Dependabot groups new @deepseek-ai/* releases into one compatibility pull request, and GitHub Actions runs typecheck, unit tests, and both client and host builds on every update. A new Harness release therefore produces a concrete compatibility result without relying on a manual reminder.
For a locally linked checkout, merge the generated compatibility pull request, fast-forward this checkout, and rebuild it. The Web profile keeps the same link and bundle registration.
License
BSD-3-Clause. See LICENSE.
原始 README: https://github.com/Proton1917/dsh-live-stats/blob/main/README.md ↗
同类插件
查看全部 →
k8e
k8e.sh — 开源 Agentic AI 沙箱矩阵

hol-guard
开源AI代理防病毒:运行时拦截风险工具、秘密访问、提示注入、恶意软件包、MCP服务器、插件和技能。

anolisa
ANOLISA(Agentic Nexus Operating Layer & Interface System Architecture):具备运行时、安全性、可观测性和 Tokenless 响应压缩能力的 Agentic OS,可降低 Token 使用量与成本。

mobius
首个自我演进的开源 Agent OS:连接你的团队、AI agent、设备与算力

deepseek-harness-desktop
DeepSeek Harness Tauri 桌面版 | Only 5mb installer, zero environment setup. Windows / macOS / Linux.

open-managed-agents
开源Claude管理代理API实现和自托管Claude标签式代理运行时。即插即用;在Cloudflare Workers/Durable Objects或Node.js上运行。Apache 2.0。