rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:f1yan9/dsh-balance-pie
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DSH plugin · balance monitor / real spending / history heatmap
A plugin for DeepSeek Harness (DSH). It shows a draggable floating pie chart in the DSH web UI with the daily initial balance, real per-project spending and remaining balance; collapses to a sidebar bar; and ships a monthly history heatmap with a per-day spending table.
Prerequisites: DSH with a configured DeepSeek API key.
The repository ships a prebuilt bundle (lib/) and declares the dsh.bundle manifest — install it straight from GitHub, one line:
dsh plugin --profile web add github:f1yan9/dsh-balance-pie
Restart DSH web, then open the web UI — the floating pie appears bottom-right.
Uninstall:
dsh plugin --profile web remove dsh-balance-pie
Manual install: clone the repo (or place the package folder into
$DSH_HOME/profiles/node_modules/dsh-balance-pie/) and append aninsertblock to the profile'scordis.patch.yml; restart DSH web. Rebuilding from source:node build.mjs(esbuild is auto-detected).
Edit in the settings drawer(Balance section), or via cordis.patch.yml in your DSH profile. Common options:
| Option | Description | Default |
|---|---|---|
pollIntervalMs |
Balance poll interval | 10000 ms |
pricesJson |
Per-model off-peak prices (per 1M tokens) | presets for deepseek-v4-flash |
peakMultiplier |
Peak-hour price multiplier | 2 |
language |
UI language (auto follows DSH) |
auto |
displayCurrency |
Display currency (converted) | auto (account currency) |
fxRatesJson |
CNY→target-currency rates JSON | {"USD":0.14,"EUR":0.13,"GBP":0.11,"JPY":20,"KRW":190} |
topUpUrl |
Recharge page URL | official top-up page |
node build.mjs # rebuild lib/ (esbuild is auto-detected: HARNESS_ROOT → local pnpm store → npm i -D esbuild)
node test/run.mjs # typecheck → build → smoke → unit
Plugin data lives under $DSH_HOME/dsh-balance-pie/:
daily-state.json — daily state (anchor, real spending, top-up baselines, today's top-up total)history/YYYY-MM-DD.jsonl — per-day history logs (90-day retention)Snapshot money fields (anchor/current/usedTotal/projects[].used/remaining/topUpToday) are converted by fxRatesJson into displayCurrency (auto = account currency, no conversion); language and displayCurrency ride the snapshot. The history route serves { records, fx: { displayCurrency, rate } } — records stay in the account currency, clients convert for display. topUpToday (Σ today's merged top-up/grant deltas) accrues, resets at midnight, and is restored on same-day restarts.
$DSH_HOME/dsh-balance-pie/history/ — remove the directory to clear all history.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness、deepseek-harness-plugin、deepseek-harness-plugins。