dmz2922990/dsh-thinkmeter

dmz2922990★ 0JavaScript最后同步: 2026-08-21

在 GitHub 打开

DeepSeek Harness(DSH)客户端插件:将聊天视图中流式的 Think 思考预览替换为 实时 Token 数量显示。

README 摘要

dsh-thinkmeter (ThinkMeter) A DeepSeek Harness (DSH) client plugin that replaces the streaming Think reasoning preview in the chat view with a live token-count display . What it does While the model is thinking, the shipped UI streams the latest line of the reasoning text in the "Think" disclosure row. This plugin replaces that summary with a token counter: State Display Running Thinking ≈ 1,234 tokens (with sweep animation) Settled Think · 1,234 tokens - Settled counts use the exact usage.reasoningTokens reported by the model when available; otherwise a heuristic estimate (CJK chars × 0.6 + other chars ÷ 4). - Click the row to expand/collapse the full reasoning text. - Keyboard accessible ( Enter / Space toggles). How it works The package is a proper DSH profile bundle: - cordis.patch.yml — bundle patch inserting the thinkmeter plugin row ( dsh.bundle.patch in package.json), so dsh plugin add reconciles it into the profile's layer list automatically. - index.js — empty host half (pure UI plugin). - client.js — browser bundle in the window. ModuleLoader .load format ( exports["./client"] , declared via dsh.client.platform: web ). The Think row itself is embedded inside the shipped …

在 GitHub 查看完整 README →
工具/开发dshdsh-plugindsh-plugins

分类