rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:xushuojie/dsh-usage-stats
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
Token usage statistics plugin for the DeepSeek Harness web UI.
Adds a 用量统计 entry to the sidebar footer, directly above the 设置 (Settings) button:
tokenUsage projection disappears when a session is deleted; this plugin keeps its own copy in localStorage (dsh.usageLedger.v1) so historical totals survive session removal. Best-effort: falls back to in-memory when storage is unavailable.Sidebar footer entry (above the Settings button):

Usage stats modal:

@deepseek-ai/dsh web profile (any recent 0.1.0-rc.x)react, @deepseek-ai/cordis, @deepseek-ai/dsh-client-runtime, @deepseek-ai/dsh-client-locale, @deepseek-ai/dsh-client-ui-primitives, @deepseek-ai/dsh-client-ui-slots (the dsh web profile already ships these).⚠️ Name collision warning: the npm package name
dsh-usage-statsis already taken by an unrelated project ("Lightweight usage analytics ..."). This plugin is published as@xushuojie/dsh-usage-stats— double-check the name before installing, so you don't pull in the wrong package.
Install the package where the profile can resolve it
From the npm registry (after publish):
cd "$(dsh home)/profiles/web" # e.g. ~/.dsh/profiles/web
pnpm add @xushuojie/dsh-usage-stats
Or directly from GitHub (works right now, no registry needed):
pnpm add github:xushuojie/dsh-usage-stats
For a local checkout instead:
pnpm add file:/path/to/dsh-usage-stats
Register the loader entry in the profile's patch layer
($DSH_HOME/profiles/web/cordis.patch.yml — the file the boot message tells you to edit, not cordis.yml):
- insert:
- id: usage-stats
name: '@xushuojie/dsh-usage-stats'
Restart dsh web (plugin roster + boot manifest are composed at startup).
Requires an npm account logged in against the official registry (this machine is configured with the npmmirror mirror, which does not accept publishes):
npm login # once
npm config set registry https://registry.npmjs.org
cd dsh-usage-stats
npm publish # publishes @xushuojie/dsh-usage-stats
The package is scoped to your npm username, so it can never collide with the
unrelated dsh-usage-stats package. If you want to republish under a
different scope, rename name in package.json, the loader entry, and the
client bundle id accordingly.
lib/client.js is a window.__ModuleLoader__.load(...) client bundle (the
DSH web client-plugin format), declared via dsh.client in package.json.sidebar.footer.action list slot (rendered above
the Settings button) with order: 10, bound to its own usageStats locale
namespace.useSessions list snapshot's per-session
projectionValues.tokenUsage, merged into the durable ledger.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。