rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:feiniao1933/dsh-token-balance
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README

A live DeepSeek account-balance chip in the DeepSeek Harness (DSH) composer dock. 在 DeepSeek Harness 输入框下方实时显示 DeepSeek 账户余额。
dsh-token-balance adds a small balance chip to the composer dock — the status row below the message box, next to the context-usage meter.
account/getBalance Remote. It never reads, stores, or sends an API key.The npm release is not published yet. Install from the public Git repository:
dsh plugin --profile web add github:feiniao1933/dsh-token-balance
Or pin a commit (recommended for reproducible installs):
dsh plugin --profile web add git+https://github.com/feiniao1933/dsh-token-balance.git#<commit>
Replace web with your profile name. Once the npm package is published, dsh plugin --profile web add dsh-token-balance works too.
Override the row in your profile's cordis.patch.yml:
- id: token-balance
config:
refreshIntervalMs: 30000 # 5000–3600000
The Client half reads ctx.get('remote.account').getBalance(...) and renders the chip through the conversation.composer.dock slot. The Host half only publishes the refresh interval through webserver/index-inject. There is no Host HTTP route and no extra dependency.
Amounts are formatted with the same rules as the account settings page: truncated to cents, positive sub-cent amounts shown as <¥0.01, and wallets joined with +. The chip displays the sum of recharge and bonus wallets; the tooltip keeps them separate.
Tested with DSH 0.2.2-rc.1 on macOS. The bundle declares dsh.bundle.patch, so it installs with dsh plugin add.
MIT. See LICENSE.
dsh-token-balance 在输入框下方的状态行(和上下文占用百分比同一行)加一个余额胶囊。
account/getBalance Remote,不读取、不保存、不外发任何 API Key。npm 版本尚未发布。先从公开仓库安装:
dsh plugin --profile web add github:feiniao1933/dsh-token-balance
或固定提交(推荐,安装结果可复现):
dsh plugin --profile web add git+https://github.com/feiniao1933/dsh-token-balance.git#<commit>
把 web 换成你的 profile 名称;按宿主要求重启或刷新页面。npm 包发布后也可以用 dsh plugin --profile web add dsh-token-balance。
在 profile 的 cordis.patch.yml 中覆盖该行:
- id: token-balance
config:
refreshIntervalMs: 30000 # 5000–3600000
Client 半通过 ctx.get('remote.account').getBalance(...) 读取余额,并注册到 conversation.composer.dock;Host 半只通过 webserver/index-inject 下发刷新间隔。没有额外的 Host HTTP 路由,也没有运行时依赖。
金额格式与账户设置页一致:截断到分,正的不足一分显示为 <¥0.01,多币种用 + 连接。胶囊显示充值 + 赠送的合计,悬停时分别列出。
在 macOS 的 DSH 0.2.2-rc.1 上测试通过。包内声明了 dsh.bundle.patch,可用 dsh plugin add 安装。
MIT,见 LICENSE。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。