Back to directory

dsh-damage-pulse

Curated pickMaintenance: Active

wssfk12138/dsh-damage-pulse

Game-style token-usage / balance damage-pulse visualization for DeepSeek/DSH.

View on GitHub
$ dsh plugin --profile web add github:wssfk12138/dsh-damage-pulse

153

stars

3

forks

TypeScript

Language

MIT

License

2026-08-17

Created

2026-09-07

Last push

MIT-licensed, game-style DeepSeek Harness token-balance monitor: a live balance widget, cache-aware damage animation, per-call cost lines and peak/valley billing by Beijing time.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-08-25

License

MIT

01What can it help you accomplish?

  • Watch token spend and the DeepSeek balance drain during a DSH session

    A draggable balance widget with hit-recoil animation, red floating `-x.xx¥` damage numbers, cached/hit pulse, and per-session token + cost totals

    DSH users who want game-style, real-time visibility into token consumption and DeepSeek account balance

  • See precise per-call cost with DeepSeek's peak/valley pricing

    Per-call token detail (input / cache hit / output / reasoning) with an exact ¥ amount, weekday peak/valley hours and flat weekend valley pricing

    Cost-conscious DSH users who track spend by model and by Beijing-time billing window

02How to install into DeepSeek Harness

Prerequisites

  • DSH `0.1.1-rc.2` or a higher compatible version (README states this as a hard requirement)
  • Optional: set `DEEPSEEK_API_KEY` via DSH credentials (`~/.dsh/.credentials.yaml`) to show live balance — token metering still works without it

Installation steps

  1. 01

    Run `dsh plugin --profile web add github:wssfk12138/dsh-damage-pulse` to add the prebuilt Host + Client package

    $ dsh plugin --profile web add github:wssfk12138/dsh-damage-pulse

  2. 02

    Restart the web profile with `dsh --profile web` so the balance widget loads

    $ dsh --profile web

Verify the integration

Not specified by the author

03DSH integration and capability boundaries

DSH integrationNative runtime

Standard DSH Host + Client package — a Host plugin listens to `session/event` for precise per-token billing, registers the `tokenCost` session projection, a balance polling service and HTTP endpoints, while a Client package renders the BalanceWidget.

  • Balance widget with damage pulse

    Token spend events from DSH `session/event` and DeepSeek balance pollingA draggable balance card with hit-recoil animation, red floating `-x.xx¥` deduction numbers, green `+x.xx¥` recharge pulse, and a peak/valley traffic-light indicator

    Card drag position is remembered in the browser localStorage
  • Per-call usage line & session total

    Each model call's token usageA token detail line (input / cache hit / output / reasoning) inserted into the chat stream, plus a session total bar above the input box

  • Peak/valley precise pricing

    The actual model name and token counts of each callExact ¥ cost using the built-in DeepSeek 2026-08-23 price table, weekday peak/valley hours by Beijing time and flat valley on weekends; cache hit/miss billed separately

  • Optional native left-sidebar amount (source enhancement)

    Full DSH source tree + running the sidebar integration scriptPer-session cost shown at the end of the native left sidebar session rows

    The script first backs up three target files and idempotently writes `projectionValues.tokenCost.cost`; it stops (no guessed writes) if the upstream structure doesn't matchOnly applies with full DSH source; the standard package does not modify the host DOM

04Who is it for? When not to use it?

Good for

  • DSH users who want game-style, real-time visibility into token consumption and DeepSeek account balance
  • Cost-conscious DSH users who track spend by model and by Beijing-time billing window

Not for

  • When upgrading from the old source-integration version, remove your previous manual `--patch` or duplicate mount entries first; otherwise the same plugin may load twice and misbehave.

05Compatibility, maintenance and safety notes

  • The standard package does not modify the host DOM and cannot inject amounts into the left session list — DSH has no public third-party slot there. Left-sidebar amounts need full DSH source + the sidebar script.
  • When upgrading from the old source-integration version, remove your previous manual `--patch` or duplicate mount entries first; otherwise the same plugin may load twice and misbehave.
2026-08-172026-08-23v0.3.1

MIT · actively maintained (latest release v0.3.1, 2026-08-23)

06Frequently asked questions

How do I install dsh-damage-pulse on DeepSeek Harness?

Run `dsh plugin --profile web add github:wssfk12138/dsh-damage-pulse`, then restart the web profile with `dsh --profile web`. It ships prebuilt as a standard Host + Client package — no source copy, tsconfig edit or `--patch` needed.

Do I need a DeepSeek API key for it to work?

Token metering works without one, but the live balance card only shows real numbers once `DEEPSEEK_API_KEY` is set via DSH credentials (`~/.dsh/.credentials.yaml`). Without it the card shows a setup-guide state; token counting is unaffected.

Why doesn't the left sidebar show per-session cost?

Native left-sidebar amounts are a source-enhancement feature, not part of the standard package — DSH has no public third-party slot for that area. The input-area session total works in the standard package; for the left list you need full DSH source and the sidebar integration script.

How are costs calculated — does it match DeepSeek's pricing?

It uses a built-in DeepSeek pricing table (dated 2026-08-23): weekday peak/valley hours by Beijing time, weekends flat valley, per-call model name with longest-prefix version matching, and cache hit/miss billed separately. You can override it via the `dsh-token-monitor` settings `priceTable`.

I upgraded from the old source-integration version and see no animation — what now?

Remove your old manual `--patch` or duplicate mount entries; loading the plugin twice breaks it. Also make sure you restarted the target profile. The standard package needs no patch and won't inject into the host DOM.

08Data and sources

  • Author-claimedgithub.com0c726c0d4939…

    本仓库从 `0.2.0` 起是标准 DSH Host + Client 组合包,已提交预编译产物。

  • Author-claimedgithub.com0c726c0d4939…

    Host 插件 | `plugins/dsh-token-monitor` | 监听 `session/event`,精确计费(token × 单价),注册 `tokenCost` session projection、余额轮询服务、HTT…

  • Author-claimedgithub.com0c726c0d4939…

    Client 包 | `packages/client/ui-token-monitor` | Web GUI 组件:余额悬浮窗(BalanceWidget)、单次用量行、会话累计条,读投影与 HTTP 端点渲染

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-08-25. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.