rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Cesare97/dsh-balance-chip-cesare
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DeepSeek Harness(DSH)侧栏余额与消耗插件,固定在 设置 上方显示。除了余额和统计,还提供预算、可用天数、多币种换算、7 天会话明细、本地备份与导入。
总花费 ÷ 天数 = 日均,再用余额 ÷ 日均。例:5 天共花 ¥4 → 日均 ¥0.80。余额来自 account/getBalance(与 设置 → 账户 相同的 Remote 命令)。DSH 没有按会话计费的查询接口,所以消耗由余额变化推导:
这是近似值:Host 无法在服务端把账单归到某个会话,重叠运行的任务会算给最近开始的那个。
账本在 localStorage 的 dsh-balance-chip/stats/v1:days(60 天)、sessions(120 个)、sessionDays(按天按会话,0.7.0 起)、runs(50 个)、last、unattributed。设置在同前缀的 settings/v1,汇率缓存在 fx/v1。
除了 account/getBalance 和每周一次的汇率 GET,不发起其他请求;数据不上传。导出/导入/清除统计在面板的 设置 里。
pnpm add github:Cesare97/dsh-balance-chip-cesare
然后把它加入 profile 的 dsh.profile.bundles,或在 设置 → 插件 中安装。本地开发用 link: 指向源码目录。
lib/index.js 是惰性的 Host 半,lib/client.js 是零构建的浏览器 bundle。离线检查:
node scripts/check.mjs
A DeepSeek Harness (dsh) plugin that keeps the account balance, granted balance, and spend statistics in the sidebar, directly above Settings. It also tracks advisory budgets, estimates how many days the balance will last, converts CNY↔USD, records a seven-day per-session breakdown, and can export or restore the local ledger.
Balances come from account/getBalance, the same Remote command the Settings → Account section uses. The Host has no per-session billing query, so spend is derived from balance movement: a decrease is spend (charged to the open run, or one that ended inside the 20 s settlement window), an increase is a top-up or grant, and a decrease with no run to charge lands in the unattributed bucket. A ledger whose last read is more than six hours old re-seeds its baseline instead of booking unknown movement.
This is an approximation by construction: overlapping runs are charged to the most recently started one, and a Platform charge that lands more than 20 s after a run ends is no longer attributed to it.
The ledger lives in localStorage under dsh-balance-chip/stats/v1 (days, sessions, sessionDays, runs, last, unattributed). Preferences live in settings/v1 and the rate cache in fx/v1, under the same prefix.
Nothing leaves the machine except the balance read and the weekly rate GET. Export JSON/CSV, import JSON, and clear stats are in the panel's Settings tab.
pnpm add github:Cesare97/dsh-balance-chip-cesare
Then add it to the profile's dsh.profile.bundles, or install it from Settings → Plugins. For local development, link the checkout with link: instead.
lib/index.js is the inert Host half; lib/client.js is a zero-build browser bundle. Offline check:
node scripts/check.mjs
Un plugin per DeepSeek Harness (dsh) che mostra nella barra laterale, subito sopra Impostazioni, saldo, saldo bonus e statistiche di spesa. Include budget, autonomia del saldo, conversione CNY↔USD, dettaglio degli ultimi sette giorni per sessione e backup/ripristino locale.
I saldi arrivano da account/getBalance, lo stesso comando Remote della sezione Impostazioni → Account. L'Host non espone una fatturazione per sessione, quindi la spesa è ricavata dalla variazione del saldo: una diminuzione è spesa (addebitata all'esecuzione aperta o a una terminata entro 20 s), un aumento è una ricarica o un bonus, e una diminuzione senza esecuzione finisce nelle spese non attribuite. Un saldo fermo da più di sei ore viene usato solo come nuova base.
È un'approssimazione: le esecuzioni sovrapposte vengono addebitate a quella iniziata per ultima e un addebito che arriva più di 20 s dopo la fine non viene più attribuito.
Il registro vive in localStorage sotto dsh-balance-chip/stats/v1 (days, sessions, sessionDays, runs, last, unattributed). Le preferenze stanno in settings/v1 e il cambio in fx/v1, con lo stesso prefisso.
Oltre alla lettura del saldo e al controllo settimanale del cambio non parte nessuna richiesta; i dati non vengono caricati altrove. Esporta JSON/CSV, importa JSON e cancella statistiche sono nella scheda Impostazioni del pannello.
pnpm add github:Cesare97/dsh-balance-chip-cesare
Poi aggiungilo a dsh.profile.bundles del profilo, oppure installalo da Impostazioni → Plugin. Per lo sviluppo locale usa un collegamento link:.
lib/index.js è la metà Host inerte; lib/client.js è il bundle browser senza build. Verifica offline:
node scripts/check.mjs CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。