DeepSeek Harness Plugin

Aliuyanfeng/dsh-pulse

Stars ★ 0 Downloads (30d) 642 Category Usage & Billing Added 2026-12-01 npm dsh-pulse-overview

Activity overview and heat map on the New Session screen: eight metrics (sessions, messages, tokens, active days, current and longest streak, peak hours, top model) across all-time or 365/30/7-day ranges, a year-long daily grid switchable between session counts and token usage, and a token total expressed as how many books it would fill. Derived locally from session files; no conversation text is parsed. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-pulse-overview

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:Aliuyanfeng/dsh-pulse

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

简体中文 | English

Verify Publish

Two statistics panels for DeepSeek Harness's New Session screen:

  1. Activity overview — a 2 × 4 metric grid, eight numbers at a glance;
  2. Activity heat map — how active each day of the past year was, like GitHub's contribution graph.

Overview + heat map preview (light / dark, real data)

┌ Overview  [All] [365 days] [30 days] [7 days]                  ┐
│   All 140 sessions                                             │
│  ┌Sessions┐ ┌Messages┐ ┌Tokens┐ ┌Active days┐                  │
│  │  140   │ │ 48,668 │ │ 1.49B │ │   58 d    │                  │
│  └────────┘ └────────┘ └───────┘ └───────────┘                  │
│  ┌Streak┐ ┌Longest┐ ┌Peak hour┐ ┌Top model┐                    │
│  │ 7 d  │ │  8 d   │ │  17:00   │ │ v4.1-…  │                    │
│  └──────┘ └────────┘ └──────────┘ └─────────┘                    │
│   00:00 ▁▁▂▂▅▃▁▁▂▃▃▃▆▂▂▂▁▂▃▃▁▁▂▁ 23:00                          │
│              ≈ 8.9 × 《二十四史》                                 │
└─────────────────────────────────────────────────────────────────┘
┌ Activity  [Sessions] [Tokens]                  139 sessions   Less ▢ ▢ ▣ ▣ ▣ More ┐
│  ▢ ▢ ▢ ▢ ▢ ▢ ▢ ▢ ▢ ▢ ▢ ▢ ▢ ▢ ▢ ▢ ▢ ▣ ▣ ▢ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ …              │
│  Jan        Feb        Mar        Apr        May        Jun        Jul …          │
└──────────────────────────────────────────────────────────────────────────────────┘

Activity overview

Eight metrics in a 2 × 4 grid:

Metric Meaning
Sessions How many conversations you have started
Messages How many messages actually settled
Tokens Cumulative token spend
Active days Days with any activity
Current streak Consecutive active days up to today
Longest streak Your all-time longest run
Peak hours The hour of day you work most
Top model The model you reach for most

Switch the range with Today / All / 365 / 30 / 7 days; the default is Today — what you want first when opening a new session is "how much did I do today"; the all-time total is one click away.

Current and longest streak ignore the window: a streak is inherently a multi-day concept. Truncating it to the window would pin it at 1 in the Today view, which is no longer a streak. Those two always use the full history; the other six follow the window.

A 24-hour message histogram sits at the bottom, peak bar filled solid, so your daily rhythm is visible at a glance.

Activity heat map

One cell per day for the past year; darker means more active that day.

Toggle between session counts and token usage at the top — both share the same grid and date axis, so cells never move when you switch. Hover shows the exact date and value.

"≈ N books"

Total tokens expressed as how many books that would fill — raw token counts have no intuition, books do.

The conversion uses new content (what you actually read in and what the model generated), excluding repeated context reads: under heavy use, re-reads can account for more than ninety percent, and counting them would badly inflate "books read". Hover to see both figures.

The shelf holds 58 works across computer science, science, sci-fi, history, fiction, biography and large reference collections; the closest-fitting one is picked automatically from your volume.

Where it appears

Directly beneath the big heading on the New Session screen: two cards stacked vertically, as wide as the composer below them, resizing with the window.

Once the first exchange begins, this area disappears along with the host's own hero region — that is the host's behaviour, not something this plugin adds.

Screenshots

Activity overview (light)

Activity overview: eight metrics, four ranges, 24-hour histogram and "≈ N books"

Activity overview (dark)

The same card in dark mode

Activity heat map (light)

Heat map: one cell per day for the past year, sessions and tokens share one grid

Activity heat map (dark)

The same grid in dark mode

Install

dsh plugin --profile web add dsh-pulse-overview

Refresh the page and open a new session.

Settings

Settings → Activity:

  • Show the activity overview — on by default
  • Show the session heat map — on by default
  • Default metric — whether the heat map opens on sessions or tokens

The two switches are independent; either card can be turned off alone. Turning one off does no computation and frees the space. Changes apply immediately, no restart.

Privacy

Everything stays local.

The plugin reads timestamps from your local session files; when token and model data are needed it decompresses those logs locally and takes only usage counts and model names. Nothing is uploaded, and no conversation text is parsed or stored.

The plugin's HTTP routes go through the host's access check (connection.requestRejection): only DSH's own front end can call them, and requests from other pages open in your browser are rejected. If the check itself throws, the request is rejected too — a security boundary fails closed, not open.

License

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.