rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:kai-GitHubaccount/dsh-usage-panel
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
为 DSH(DeepSeek Harness) Web 界面提供 DeepSeek 账户余额与本会话 Token 用量,以彩色胶囊显示在会话头部右侧。

GET /user/balance,显示总额 / 充值 / 赠送。tokenUsage 投影,显示未缓存输入 / 缓存命中 / 缓存写入 / 输出 / 合计 / 缓存命中率。ctx.connection.fetch 并回退 ctx.webServer;浏览器端依次尝试会话头部插槽。方式一:作为插件包安装(推荐)
dsh plugin --profile web add dsh-usage-panel
方式二:本地安装脚本
node install.mjs --home ~/.dsh --profile web
重启 dsh web(或等待热重载)后刷新页面。
apply(ctx, config) 可读取 patch 行中的可选配置:
| 字段 | 默认值 | 说明 |
|---|---|---|
routePath |
/api/usage-panel/balance |
宿主端路由 |
cacheMs |
30000 |
上游缓存与单飞窗口 |
apiKeyEnv |
DEEPSEEK_API_KEY |
经 ctx.credentials 解析,再回退环境变量 |
baseUrl |
https://api.deepseek.com |
服务商地址 |
baseUrlEnv |
DEEPSEEK_BASE_URL |
覆盖 baseUrl 的环境变量 |
import,可从任意路径加载;优先 ctx.connection.fetch.register,回退 ctx.webServer.register;密钥优先走 ctx.credentials。slots 服务;优先 conversation.session.header.utilities,其次 conversation.session.header.corner,sidebar.footer.action 为延迟 4 秒的兜底,因此正常启动不会跑到左下角;缺少 useProjection 时仍显示余额。node tools/verify.mjs --port 3080 --home ~/.dsh
输出启动图、HMR 通道与服务包特性。
删除 profile patch 中的 usage-panel 行,并删除 <home>/plugins/dsh-usage-panel。
Mysterious Mark
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness、deepseek-harness-plugins。