rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:lalilulelo3/dsh-spend-pill
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A cost pill for the DeepSeek Harness composer status row — shows what your previous turn actually cost.
Tiny DSH plugin. The pill reads 上句结算 ¥0.062; click it for the breakdown: how many model calls that turn took, how much was re-reading history, how heavy the context is, and what the next message's fixed "starting price" will be.
DSH's built-in stats row tells you 25 turns · 226 steps and 11.1M tok · 99% cache hit, but not money.
Two things about agent cost are counter-intuitive:
This plugin puts both on screen.
Pill (collapsed)
上句结算 ¥0.062 (previous turn: ¥0.062)
Expanded
本会话已花 ¥2.12 session total
输出 18.3 万 token
缓存读 5888.3 万 token
未命中 20.7 万 token
────────────────────
上句结算(第 28 轮) ¥0.062 previous turn, settled
其中模型调用 6 次 model calls in that turn
本句进行中 ¥0.041 current turn so far
────────────────────
当前上下文 39.3 万(38%)
起步价(重读历史) ¥0.0079 next message's fixed input cost
按当前空闲·半价时段估算
From GitHub (recommended)
dsh plugin --profile desktop add "github:lalilulelo3/dsh-spend-pill"
Use desktop for the desktop app, web for the CLI web UI. Restart the host afterwards.
Local development (clone + link)
git clone https://github.com/lalilulelo3/dsh-spend-pill.git
dsh plugin --profile desktop add "link:C:/path/to/dsh-spend-pill"
⚠️ Do not install by npm package name yet. The npm entry is a
0.0.0-stageplaceholder left behind by npm's staged-publishing flow and contains nolib/, sodsh plugin add dsh-spend-pillwould install an empty, unloadable package. This notice will be removed once a real version ships.
lib/index.js) registers a spendStats session projection. It consumes the provider-reported usage on assistant/message, splits turns on turn/end, and folds per-turn token totals. Because the projection replays the full persisted log, restarts / pagination / compaction do not change the result.lib/client.js) registers into the conversation.composer.dock slot with order: -1, and reads the tokenUsage, contextPressure, and spendStats projections.PRICE_PEAK / PRICE_OFF for other providers.¥—).MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。