DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Token Attention — DSH Plugin for DeepSeek Harness
← Plugins
T

dsh-token-attention

Token Attention

Token Check (Token Management) — token attention management panel (DSH plugin)

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:Young4ever33/dsh-token-attention#f0f3e90b32f04655e0f5388baa603ec62b8cfe40
READMECompatibilityVersions
OverviewSession cardTasks
Cost
Settings

Compatibility and provenance

Token Attention is published as dsh-token-attention and currently resolves to version 0.2.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
8/28/2026

Versions

0.2.1stable
8/28/2026
0.2.0stable
8/22/2026

Related plugins

Loading related plugins…

Latest
0.2.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 2
Weekly downloads
0
Last push
8/28/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in ui-customization.

Remote Web Ui@linxin666/dsh-remote-web-uiScan-to-pair remote access for the dsh web GUI that shares one official interface: a QR beside the settings button pairs phones and PCs into the same Web GUI (a portrait-touch adaptation layer for phones, full desktop on PCs) through one-time tokens and rClient Ui Task Board@linxin666/dsh-client-ui-task-boardHost-authoritative task board for the DSH Web GUI with real session execution, Host cron scheduling, and optional cross-platform idle-sleep protection; mounted without DSH source changes.Client Ui Git Graph@linxin666/dsh-client-ui-git-graphExternal dsh web GUI plugin: a blank-session git branch selector + Git graph, with real host-side git operations and guards, as a dsh profile bundlePet@linxin666/dsh-petMulti-pet companion plugin for the dsh web GUI: a registry-driven floating pet that reacts to model activity, with per-pet naming, petting/feeding interactions and an affinity score

README

dsh-token-attention — Token Check for DeepSeek Harness

English | 中文说明

Token Check is a token-attention management panel for DeepSeek Harness (DSH). It records every conversation's token usage and estimated cost by task / day / week / month, recognizes task types, and — combined with DeepSeek's peak/off-peak pricing and DSH's context mechanics — tells you when to run a task, whether to switch sessions, and whether to write a hand-off file.

It is not a money-saving tool: it never throttles or cancels requests. It presents facts and advice; you decide.

Features

  • Five views in DSH Settings — Overview / Sessions / Tasks / Cost / Settings
  • Per-task ledger — token consumption (input hit / miss / output / reasoning) and estimated cost, rolled up by day / week / month
  • Task-type recognition & advice engine — best execution window, switch-session, hand-off, context, cost and model suggestions
  • Attention KPI — attention score, hit rate, context occupancy, compaction count per session
  • Peak/off-peak pricing — DeepSeek off-peak half-price windows (peak 9:00–12:00 / 14:00–18:00), estimated cost breakdown by bucket
  • Multi-model breakdown — cost and hit rate per model (e.g. deepseek-v4-flash / pro / grok)
  • Ledger export — Markdown / CSV download, one-click hand-off template
  • Editable settings — pricing table, peak hours, advice thresholds; new records are priced immediately
  • Zero runtime dependencies — local SQLite via node:sqlite; no network calls

Screenshots

Overview — today's usage, cost, hit rate, attention score, model mix, advice card, and trend

Overview

Session card — per-session model breakdown and attention metrics

Session card

Tasks — task ledger with Markdown / CSV export

Tasks

Cost — peak split, cost leverage breakdown, and model comparison

Cost

Settings — pricing table, peak hours, and advice thresholds

Settings

Install

Once published to npm:

dsh plugin --profile web add dsh-token-attention

Restart DSH, then open Settings → 词元管理 (Token Check). Data is stored at DSH_HOME/token-attention/token_records.db.

Development install (link)

npm install && npm run build

Then register the plugin in the web profile (%APPDATA%\dsh-desktop\harness\profiles\web\package.json):

{
  "dependencies": { "dsh-token-attention": "link:/path/to/dsh-token-attention" },
  "dsh": { "profile": { "bundles": ["...", "dsh-token-attention"] } }
}

Run pnpm install inside profiles\web, restart DSH, and verify:

curl http://127.0.0.1:<port>/token-attention/api/health   # → {"ok":true,...}

How it works

  • Collection: the node half subscribes to DSH's session/event stream (usage, goal, subagent, compaction, turn) and writes normalized records to SQLite; a startup backfill replays existing sessions with an idempotent last_seq cursor.
  • Aggregation: hourly incremental rollups into daily_agg, with a daily full rebuild for correction.
  • Official projection adapter (optional): when the base layer mounts session-projection + token-meter + session-stats, the session card reads context occupancy from contextPressure.projectedTokens (compaction-reactive, official capacity) and turn/step/LLM/tool/decode stats from sessionStats (same source as DSH's built-in stats bar); it falls back to its own computation when those units are absent — no extra dependencies.
  • Advice: src/shared/advice.ts evaluates context occupancy, turns, hit rate, cost and model mix against your thresholds and suggests concrete actions.

Configuration

Settings are editable in the panel and saved to SQLite:

SettingDefault
Model pricing (¥ / million tokens, off-peak)flash: hit 0.05 / miss 1.5 / output 4.5
Peak hours (24h, start-inclusive)9–12, 14–18
Context-occupancy advice threshold70%
Turn-count advice threshold40
Hit-rate advice threshold40%

Development

npm run typecheck   # tsc --noEmit
npm run check       # node --check src/client/index.js
npm run build       # tsc → dist/
npm run selftest    # collection-layer self-test (idempotency / peak pricing / aggregation assertions)
npm pack            # build the publish tarball

Uninstall

Uninstall in DSH Settings → Plugins, or remove the dependency and the bundles entry from the profile's package.json. The data directory DSH_HOME\token-attention\ can be deleted manually; dispose cleans up timers and the SQLite connection.

License

MIT © 2026 Young4ever33