Preface¶
When running agents in DeepSeek Harness (DSH), tokens are often scattered across multiple session logs; common “Tech Dashboard” plugins in the settings page typically occupy statistics views in the settings or sidebar. If you want an entry point in the left column where the middle section becomes a full-page “Personal Profile”—combining avatar, nickname, cumulative usage, model distribution, and a heatmap for the past year—you need a client plugin that utilizes the main keyed full-page slot. Below is an introduction to the community plugin dsh-achievements (maintained by Abyssun, GitHub Abyssun/dsh-achievements). It breaks down historical token usage into five cards and displays model usage alongside a contribution heatmap on the same page. It does not conflict with settings-page-style statistics plugin slot IDs and can be installed simultaneously.
What is this¶
dsh-achievements is a Personal Achievements plugin for the DSH Web UI: a trophy icon in the left column leads to a full-page Personal Profile in the main area. The nickname and avatar are fetched from your DSH login account by default and can be edited manually; metrics are derived from local session projections and cross-session aggregations, not from a cloud account system. It is categorized as a client-side plugin (dsh.client.platform: web). The current package version is 0.1.7, and the license is MIT.
Core Features¶
The full-page profile includes a profile area and a statistics area. The theme utilizes DSH design tokens (--dsw-alias-*), switching between light and dark modes to match the host.
| Capability | Description |
|---|---|
| Profile Card | Avatar and nickname; “Edit Profile” is available on the page, and the same editor is accessible in the settings page under settings.plugins.tab |
| Five Metric Cards | Cumulative Tokens, Token Usage Peak, Duration of Longest Task, Longest Streak (days), and Current Streak (days) |
| Model Usage | Usage bars and percentages for each model; clicking a row filters for that model only, updating cards and charts accordingly (Note: “Duration of Longest Task” has no model dimension and remains a global value during filtering) |
| Contribution Heatmap | A grid of usage squares for the last year based on local calendar days; hover for exact values; hovering over large numbers in cards also displays precise digit-by-digit values |
| Avatar Upload | Supports PNG / JPEG / WebP / GIF; draggable, zoomable, and cropped to a square |
| Sidebar Entry | sidebar.panellist, with an id and main slot key both set to dsh-achievements |
Difference from “Settings Page Tech Dashboard” token statistics: This plugin occupies the main keyed full-page slot, functioning as an independent “Personal Profile” rather than replacing the dashboard within the settings.
Installation and Activation¶
DSH Community Directory Page: skillhub.cn/plugins/Abyssun/dsh-achievements (An independent site, with no official affiliation to DeepSeek or QuantumWare). Please refer to the README for installation sources.
In the in-app Plugin Market / Plugin Management, fill in:
github:Abyssun/dsh-achievements
Or execute in the profile directory:
pnpm add "github:Abyssun/dsh-achievements"
You must restart DSH after installation: There is no hot-reload for installed plugins; host loading, typert registration, and client bundle injection are all completed at startup. After restarting, a trophy icon will appear in the left column. Clicking it switches to the full-page Personal Profile.
The Electron desktop profile is exclusively managed by the application. The command-line dsh plugin command will refuse to operate on this profile; in such environments, please only use the in-app plugin market for installation.
Version Compatibility: The plugin declares engines.dsh as >=0.1.5-rc.2 <0.3.0. DSH 0.2.0 and above will validate this during installation; incompatibility will result in a refusal of installation and a rollback. The README states it has been verified to work with 0.2.1-rc.2 (the desktop version at the time).
Typical Usage¶
- Click the trophy icon in the left column to enter the full-page Personal Profile.
- On the first open, it will prompt “Scanning history sessions in the background…” and accumulate progressively; the numbers will only stabilize after the historical logs are fully read.
- Edit Profile: Change the nickname or upload an avatar; if left blank, it reverts to the DSH account’s nickname/avatar.
- Model Filtering: In “Model Usage,” click a specific model to view only that model’s cards and charts; click again to cancel the filter.
Metric Definitions (for comparing card meanings):
- Cumulative Tokens:
inputTokens + outputTokens + cacheReadTokens + cacheWriteTokensacross all sessions;inputTokensonly contains uncached input, andreasoningTokensare part of the output and are not counted separately. - Token Usage Peak: The maximum single-day value aggregated by local calendar day.
- Duration of Longest Task: Sessions are split into new job segments if the interval between adjacent events is greater than 30 minutes. The longest segment is taken (to prevent “resumed sessions spanning days” from being counted as a single task).
- Longest / Current Streak: Calculated based on “local calendar days with token consumption”; the current streak counts backward from today, but if there is no consumption today, it counts from yesterday.
Prefixes inherited from fork/sub-sessions are skipped via inheritedEventCount returned by readSession() to avoid double counting.
Use Cases and Notes¶
Suitable for: Developers who run sessions locally in DSH for long periods and want to view cumulative usage, peaks, consecutive usage days, and model distribution on a single page; those who need a GitHub-style heatmap to review activity over the past year rather than just viewing the settings page dashboard.
Permissions and Security: The plugin reads local sessions and logs under the permissions of the current DSH process. Before installation, please review the source repository and the MIT license yourself to ensure compliance with your environment policies.
Known Limitations (From the original README):
- The
web/deepseek-search-llm-requestevent path for web search does not carryusage, so the corresponding tokens are not counted. - Numbers will change when new conversations write logs; a “As of…” label is provided at the bottom of the page.
- Every startup triggers a rescan of historical sessions (taking roughly a dozen to dozens of seconds, depending on the number of sessions).
- Avatar cropping is fixed to a square aspect ratio, not a free ratio.
Architecture Highlights (Optional Reading)¶
The plugin aggregates via AchievementsService, the projection unit dsh-achievements.ledger, and cross-session rollup on the Host side; the client mounts the full page and settings Tab via ctx.remote.achievements. The IDs for main[keyed, key="dsh-achievements"] and sidebar.panellist[id="dsh-achievements"] must match the main key—this is a DSH plugin slot convention. Maintainers making changes should run npm run e2e to verify.
Conclusion¶
dsh-achievements transforms token activity into a full-page “Personal Profile”: five cards, model filtering, and a one-year heatmap, accessible with one click from the sidebar. Installation source is github:Abyssun/dsh-achievements, available after restarting DSH. Directory page: https://www.skillhub.cn/plugins/Abyssun/dsh-achievements; Source code and documentation: https://github.com/Abyssun/dsh-achievements.