DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

SyRiver /

SyRiver/mark1

Verified

Agent Pulse - a draggable DSH floating monitor: CPU temperature, agent-client usage, DSH usage, and your own relay usage.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHubProject homepage
READMESource: main@2de99b40

Agent Pulse

A draggable floating monitor for DeepSeek Harness (DSH): CPU temperature, memory, network, AI-client process usage, today's DSH session usage, and balance/today spend for a relay you configure yourself.

Agent Pulse floating card

The illustration uses abstract, desensitized data. The plugin never bundles a relay URL or an API key: both start empty and are filled in by the user.

Features

  • Floating card in the DSH Web UI (shell.overlay): drag to move, pin the position, switch to compact mode, minimize to a small pill, and open settings from the gear.
  • CPU and memory: process-wide CPU from Node's os.cpus() deltas, RAM from the OS.
  • Network: receive/send rates from Windows performance counters, with an adapter-statistics fallback; loopback is excluded.
  • CPU temperature, real sensor only:
    1. HWiNFO shared memory (Global\HWiNFO_SENS_SM2) — parsed from the header's declared sensor/reading strides. HWiNFO must be running with Shared Memory Support enabled.
    2. LibreHardwareMonitor WMI (root/LibreHardwareMonitor, Sensor class) when LHM is running with WMI enabled.
    3. ACPI thermal zone as the last resort, with a liveness check: a value that never changes across six samples is reported as a placeholder, not as a CPU temperature.
    • If no source is readable, the card shows --°C and a tooltip with the reason. It never invents a temperature.
  • Agent clients: matches process names and command-line keywords, walks the process tree, and reports per-client CPU, memory and process count. Defaults: Codex, MiMo, DeepSeek Harness, WorkBuddy. Offline clients are hidden optionally.
  • DSH usage: reads only local session logs (~/.dsh/sessions by default), decodes the multi-frame zstd log even while the session is being appended, and shows today's tokens, today's estimated cost, turns/steps, live TPS/first-token latency, and the last three tasks. Task titles are masked by default.
  • DSH account balance when the DSH deepseekAccount service exposes it; this uses the account service, not the credential file.
  • Your relay usage: configure a base URL and API key in the card's settings. Supported adapters:
    • OpenAI-compatible relay (OneAPI / NewAPI): /v1/dashboard/billing/subscription and /v1/dashboard/billing/usage;
    • DeepSeek official GET /user/balance;
    • OpenRouter GET /api/v1/auth/key;
    • Custom JSON: your balance/usage URLs plus dot paths for balance, today cost, today tokens and today requests.
  • Theming: the card uses the host's --dsw-alias-* tokens, so it follows the DSH light/dark theme. Data colors (CPU/memory/network, agent colors) are the only literal colors.

Install

The package declares dsh.bundle and ships no build step.

dsh plugin --profile <profile> add <path-or-git-url>

Or, from the DSH Web UI, open Plugins → Add plugin and choose this directory/repository. The plugin is a profile bundle and survives restart. The floating card is enabled when the plugin is enabled.

Desktop floating window

The DSH plugin is an overlay inside the DSH Web UI. For a native Windows floating window like the original desktop app, download the desktop companion from the same release:

AgentPulse-Desktop.zip

Unzip it and run AgentPulse.exe. It uses the same CPU-temperature, agent-client and DSH-usage logic, stores settings in %APPDATA%\AgentPulse, and needs no Python installation. The desktop companion is Windows-only; it reads local DSH sessions for the usage page.

Configure your own data

Open the gear in the card header.

Setting Meaning
Usage source → Enable custom relay Turns the relay page on.
Display name Tab label, for example My relay.
Provider Auto detect, OpenAI-compatible relay, DeepSeek official, OpenRouter, or Custom JSON.
Base URL Your relay origin, for example https://relay.example.com. HTTPS is required except for http://localhost / http://127.0.0.1.
API key Stored as an agent-pulse/usage record in the DSH credential store. It is never returned to the browser and is never written to the plugin's settings file.
Custom JSON Optional URLs and dot paths (data.balance, data.today_cost, …) for a relay with a non-standard billing response.
Temperature source Auto, HWiNFO, LibreHardwareMonitor, ACPI, or Off.
Refresh interval 500–5000 ms.

A Test connection button probes the configured source without saving it. The settings file lives at $DSH_HOME/agent-pulse/settings.json; it contains no secrets.

Windows temperature notes

  • HWiNFO: enable Shared Memory Support (Sensors settings). The parser reads Global\HWiNFO_SENS_SM2 with read-only access. The free edition's shared memory has a time limit; re-enable it when it expires.
  • LibreHardwareMonitor: run LHM and enable its WMI provider.
  • ACPI: many laptops expose only a fixed placeholder; the liveness check reports that instead of showing a fake value.
  • On macOS/Linux the card still shows CPU, memory and usage; temperature and per-process sampling are Windows-only.

Privacy

  • All system and session reads happen locally in the DSH Host process.
  • The plugin ships no relay URL, API key, account token, or session title. The default usage source is disabled and empty.
  • The relay API key is stored through ctx.credentials.modifyRecord() and is only sent to the relay you configured. It is never returned by the local HTTP routes.
  • The plugin's local routes (/agent-pulse-api/*) return snapshots, usage status, and sanitized settings; they do not return secrets. They are intended for the local DSH page.
  • DSH session task titles are masked by default (Task 1, Task 2, …). The underlying session files are not modified.

Limitations

  • CPU temperature and per-process/agent sampling are Windows-only.
  • DSH usage requires Node.js with zstd support (the DSH Host's bundled Node is used). If zstd is unavailable, the DSH page reports that it cannot read sessions.
  • The relay adapters support the documented billing endpoints; a proprietary relay needs Custom JSON.
  • The floating card is rendered in shell.overlay and follows the host theme; it is not a native desktop window.
  • The plugin detail image is an illustration, not a screenshot of a live account. The live UI was verified through the Host routes and slot registration; a pixel-level browser check requires the signed-in DSH desktop page.

Development

  • Node.js 22.15+ (zstd for DSH session logs); developed against Node 24.
  • node --check index.js client.js lib/*.js for a syntax check.
  • The Host half registers /agent-pulse-api/{ping,snapshot,usage,config,usage/test}; the Client half registers the card on shell.overlay.
  • No build step, no runtime dependencies.

License

MIT. See LICENSE.

—/ 5

No ratings yet

Verified DSH bundle

Commit 2de99b4083e9

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout