zcode-usage-stats — token usage stats panel(Token 用量统计面板) #6533
Amer-CN
started this conversation in
Show Your Plugins!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi all 👋 — sharing zcode-usage-stats, a plugin that adds a token usage statistics panel to DSH (Settings → Usage Stats).
It scans your full local session history and renders:
Light & dark themes follow the harness:
Install
(Or from GitHub:
dsh plugin --profile web add github:Amer-CN/zcode-usage-stats)Implementation notes
bash tests/acceptance.sh): geometry assertions, WCAG contrast and palette conformance, with a deterministic synthetic-data fallback so it runs on any machine.sessionPersistenceservice; nothing leaves your machine.MIT licensed. Feedback and PRs welcome!
大家好 👋 — 分享 zcode-usage-stats:给 DSH 加一个 Token 用量统计面板(设置 → 使用统计)。
它会扫描本机全部历史会话并渲染:
深浅主题跟随宿主:
安装
(或从 GitHub 源安装:
dsh plugin --profile web add github:Amer-CN/zcode-usage-stats)实现要点
bash tests/acceptance.sh):几何断言、对比度核算、色板合规,内置确定性合成数据兜底,任何机器 clone 即可跑;sessionPersistence服务),不上传任何数据。MIT 协议,欢迎反馈与 PR!
All reactions