Introduction¶
When developing with the DeepSeek Harness (DSH) Web GUI, developers need an intuitive way to check the current runtime status of tools and token consumption. Existing interfaces typically lack this kind of real-time, visual feedback. The dsh-work-buddy plugin provides this feedback through a pixel-style robot and records session outputs.
What Is It¶
A plugin maintained by AMC-tp. It adds an original blocky-headed tracked robot to the bottom-right corner of the Web GUI. The robot not only simulates working states (thinking, typing), but also serves as a ledger that records the number of completed turns, token usage, and estimated costs.
State Machine¶
The robot has five states. You can determine the current DSH runtime status by observing the robot’s behavior and icon changes:
- Slacking Off: No tools are running, and there is no streaming output. The robot’s eyes narrow into slits, a fish appears by its feet, and a “z” drifts from above its head.
- Thinking: A thinking bubble appears in the top-right corner, and the right arm is raised. Triggered when
[data-streaming]exists in the DOM. - Coding: A laptop appears in front of the robot, both hands rest on the keyboard, and the screen cursor blinks. Triggered when
[data-tool][data-state="running"]exists in the DOM. - Waiting for Your Selection: Eyes wide open, with a pink question-mark bubble in the top-left corner (blinking). Triggered when
ctx.uiSession.pendingInteractionsis non-empty. - Done! Confetti: Returns from busy to idle (3 consecutive samples where busy time exceeds 0.9 seconds). The robot raises both arms high, and confetti falls around it.
Ledger and Billing¶
Clicking the robot expands the ledger panel. The ledger supports data views by Today, Week, Month, and Year.
- Data Display: The first row shows the number of completions, tokens (in millions), and estimated cost.
- Data Sources: The completion count is debounced and counted by the state machine; tokens come from incremental records of
binding.session.projections.faceOf('tokenUsage'); costs are based on the official DeepSeek pricing list (including peak/off-peak rates). - Pricing Models: Supports two models,
deepseek-v4-flashanddeepseek-v4-pro, with different rates during peak and off-peak hours. - Storage Location: Data is stored in the browser’s
localStorageat the pathdsh-work-buddy/ledger/v2.
Installation and Activation¶
Install via the command line:
dsh plugin --profile web add github:AMC-tp/dsh-work-buddy
Or use a local path:
dsh plugin --profile web add link:D:\path\to\dsh-work-buddy
Restart dsh web after installation.
Usage¶
- Check Status: Hover the mouse over the robot to display the current status text.
- View Ledger: Click the robot to expand the panel and view detailed data.
- Switch Views: Select Today / Week / Month / Year in the panel.
- Adjust Model: Switch the pricing model in the ledger.
- Reset: Click Reset in the panel to clear ledger data (without clearing the settlement baseline).
Notes¶
- The plugin has no build step, no third-party dependencies, and runs entirely in the browser.
- Costs are estimates, not official billing. The billing time is taken from the moment an increment is recorded, not from the time the request is initiated.
- Data is stored in the browser’s
localStorageat the pathdsh-work-buddy/ledger/v2. Uninstalling the plugin will not delete already-stored ledger data.