rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
English | 中文
See your balance without opening Settings → Account.
A DeepSeek Harness Web plugin that puts your signed-in DeepSeek account balance right at the sidebar foot, reading the same data as the Account page. It follows the theme and the UI language, refreshes on click and on sign-in changes, and reports nothing anywhere.
┌───────────────────────────────┐
│ ... │
│ │
│ [ 🔌 Plugins 3 ] [余额 ¥12.34] │
│ [ (avatar) Name ⚙ ] │
└───────────────────────────────┘
sidebar.footer.action slot, directly above the account/settings row.account Remote namespace (getBalance, plus the watch
stream for sign-in changes), i.e. the same data the Account settings page shows. No credentials are
copied, cached, or stored.¥ / $), amounts summed in whole cents.0.2.1-rc.5.This repository is a Cordis bundle. The bundle patch inserts one Host row; the dsh.client declaration in
package.json publishes client.js to the browser.
git clone https://github.com/Qliphoth11/sidebar-balance.git
Then ask the Harness agent to install the bundle directory, absolute path:
Install the bundle at
/absolute/path/to/sidebar-balance
The agent runs the plugin manager's install_bundle with that path as the target. Installation links the
checkout, so later edits apply after a page reload.
If your Harness accepts a pnpm spec for bundles, ask the agent to install:
github:Qliphoth11/sidebar-balance
Otherwise use the clone + local path route above.
Ask the agent to remove the dsh-sidebar-balance bundle, or disable Sidebar Balance in
Settings → Plugins.
| File | Role |
|---|---|
cordis.patch.yml |
Inserts the sidebar-balance Loader row. |
index.js |
Host half: an empty apply(). Its only job is to give the bundle a Loader row whose dsh.client declaration publishes the browser module. |
client.js |
Client half: declares inject: ['slots', 'locale', 'remote', 'remote.account'], registers one entry in sidebar.footer.action, keeps the chip state in a tiny external store exposed to React through the slot's hooks injection, and mirrors the account snapshot stream via ctx.remote.$stream. |
locale/*.json |
Plugin-manager display metadata (title/description) for en and zh. |
icon.svg |
Original plugin artwork. |
Styling uses only --dsw-* theme tokens, so the pill follows the host palette and light/dark themes.
Visible text is routed through the Client locale service (sidebar.balance namespace, en + zh).
sidebar.footer.action and the account Remote namespace
(getBalance, watch). A Harness release that renames or removes them needs a plugin update.npm run check # node --check on both halves
A client plugin hot-reloads while the Web dev watcher (pnpm run dev:web) runs from a source checkout;
on an installed app, reload the page after changing client.js.
MIT © 2026 Qliphoth11
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。