DeepSeek Harness Ops Console Plugin: Local and Multi-Region Site Monitoring

Introduction

DeepSeek Harness (DSH) is a locally running agent development framework that extends its capabilities through plugins. During development and debugging, it is common to need to monitor multiple external services (GitHub, Cloudflare, SSH servers, deployed websites) simultaneously. The typical approach is to open each platform or tool individually and check them manually, which is inefficient and error-prone. DSH’s plugin mechanism is naturally suited for consolidating this kind of information, bringing operational status into a single interface.

The dsh-ops-console plugin introduced below is a local plugin that adds an “Ops Console” panel to the left sidebar of DSH’s Web GUI, integrating GitHub, Cloudflare, SSH server monitoring, and multi-region website probing into one place.

Plugin Scope

dsh-ops-console is a DeepSeek Harness client plugin maintained by Lioez. It is not published via npm and must be installed locally. The plugin provides five sections—Overview, Websites, Servers, Platforms, and Settings—supports simultaneous probing from the local machine and Globalping domestic/international nodes, and reports connectivity, HTTP status, latency breakdown, TLS certificates, and per-node details.

Core Features

Overview

Displays site online/degraded status, domestic/international median latency, number of online servers, and GitHub/Cloudflare connection status.

Websites

Add or remove sites, with support for manual or scheduled checks. Each check is initiated simultaneously from the local machine, domestic nodes, and international nodes, yielding three sets of results. You can view TLS expiry days, history, and uptime.

Servers

After adding an SSH target, the plugin automatically runs read-only status commands to read hostname, OS, uptime, load, memory, disk, failed units, and Docker container count. Server cards show only the address, status, and a one-line summary by default; click “Details” to expand the full metrics.

Platforms

Integrates GitHub and Cloudflare. View recent Actions and PR count for your GitHub account and watched repositories; Cloudflare account, Pages projects, and recent deployments. Repository/project cards are collapsed by default. If the CLI is not installed or not authenticated, the UI provides install, login commands, and a re-check button.

Settings

Configure monitoring interval, domestic probe node count/city, international country, Globalping quota, data directory, and clear history.

Installation & Enablement

Requires DeepSeek Harness >= 0.2.2-rc.3.

git clone https://github.com/lioez/dsh-ops-console.git

Then in DSH, use “Plugins → Add plugin” to select that directory, or use the plugin manager:

plugin_manager install_bundle → target: /absolute/path/to/dsh-ops-console

After installation, refresh the Web GUI and “Ops Console” will appear in the left sidebar. Changes on the Host side require a restart or plugin reload; changes to client.js only will auto hot-reload if pnpm run dev:web is running locally.

Prerequisites

  • GitHub: gh installed and logged in (gh auth login); the account must have at least read access to the repositories you want to monitor.
  • Cloudflare: wrangler installed and logged in (wrangler login); the account must have Pages read permissions. v1 only displays Pages projects/deployments; for Zones, DNS, and Workers, use the Cloudflare Dashboard.
  • SSH: ssh available on the local machine; the target host must be reachable via key-based or ssh-agent non-interactive authentication. The plugin does not collect passwords and will not auto-accept unknown host keys; complete the first connection in a terminal and confirm the fingerprint.
  • Website checks: No API key required. Globalping allows anonymous usage but enforces a per-hour quota; when the quota is exhausted, only local checks are performed for that round, and this is indicated in the UI.

Usage Steps

  1. Open “Ops Console” → “Websites” → Add a site URL. After adding, an automatic check is triggered once.
  2. “Check All” runs all sites immediately; the scheduled task defaults to every 15 minutes and only runs while the DSH process is active.
  3. Expanding a site reveals local DNS/TCP/TLS/first-byte/total time, redirect chain, TLS info, and per-node results for domestic and international.
  4. “Open in itdog” uses the current domain to open itdog’s existing nationwide speed-test page (auto_submit=1) for manual verification; the plugin does not scrape itdog.
  5. Add an SSH alias/domain/IP under “Servers” and a read-only status command runs automatically. Server cards show only the address, status, and a one-line summary by default; click “Details” to expand full metrics.
  6. Servers support editing: you can change the label, target, user, port, and private key; you can also temporarily enter a password for a one-time password-based check (the password is not saved).
  7. Add a GitHub repository under “Platforms” or select from discovered Pages projects.

Status Definitions

  • Normal: Local 2xx/3xx, no failures on domestic/international nodes, TLS valid.
  • Degraded: Site is still reachable, but some probe nodes failed, TLS is invalid/expiring soon, or local returned 401/403 (possibly blocked by WAF/auth).
  • Down: Local unreachable, or returned unexpected 4xx/5xx status codes.
  • Unknown: No check has been completed yet, or the last check was cancelled.

The same definitions are also available in the “Status Description” on the sites page and in the tooltip of the status labels; a cancelled check will not overwrite the previous result.

SSH Keys & Host Fingerprints

  • Empty private key path: ssh will read ~/.ssh/config, default keys (~/.ssh/id_*), and ssh-agent on its own. The plugin does not read these files and does not store passwords.
  • macOS: When adding a server, you can click “Choose File…” to open the system file picker; on other platforms, enter the path manually.
  • Permissions: The private key must be readable only by its owner (chmod 600). If permissions are too broad, ssh will ignore the key; the plugin will display a copyable chmod command.
  • User: If left blank, ssh uses the local username, not the default root; fill in the actual remote user (e.g., root, ubuntu).
  • Password login: When editing or adding a server, you can enter a password in “Password (optional, one-time only)”; it is used solely for that manual check and is not written to configuration. Scheduled background checks still use key/agent only.
  • Editing: The “Edit” button on a server card lets you change the label, target, user, port, and private key, or re-select the key; changing connection info clears the old cache and triggers a re-check.
  • Draft: The add-server form content is saved in the local browser; switching to another page and coming back will not lose it; the password is never included in the draft.
  • Inspect local config: ls -la ~/.ssh, ssh-add -l, ssh -G <target-alias>.
  • Add key to agent: ssh-add ~/.ssh/id_ed25519 (on macOS, use ssh-add --apple-use-keychain).
  • Unverified host key: The server details will show a copyable ssh ... command; run it once in a terminal, confirm the fingerprint, then retry. The plugin never disables host-key verification automatically.

Data & Privacy

All configuration and history are stored in $DSH_HOME/ops-console/ (default ~/.dsh/ops-console/), with directory permissions 0700 and file permissions 0600. The plugin does not store GitHub/Cloudflare tokens, SSH passwords, or private key contents; it reuses existing local CLI/SSH credentials. The plugin does not read ~/.ssh/config or private keys under ~/.ssh; these are resolved by ssh itself. Query/fragment from site URLs are stripped; Globalping only receives the hostname and path, never tokens in the query string. SSH commands are fixed to read-only status collection and do not execute user input; execFile uses an argument array and does not go through a shell. Remote write operations (restart, deploy, clear cache, rerun workflow) are not in v1.

Data Sources

  • Local probing: Node http/https, recording DNS, TCP, TLS, first-byte (including connection), and total time.
  • Multi-region probing: Globalping public API. During validation, China had 34 nodes and the world had 5506; anonymous quota is 250 requests/hour, metered by the local machine’s public egress IP, not tied to an account, and shared with other usage from the same IP.
  • Domestic node selection: Globalping does not expose specific probe IDs, so a particular node cannot be targeted. In Settings, you can select a CN city (Auto/Beijing/Shanghai/Guangzhou/…) to anchor probing to that city, reducing the chance of hitting unstable nodes from nationwide random assignment.
  • Manual verification: itdog. itdog has no public API; its page relies on front-end JS/WebSocket and Cookie-based anti-bot measures. The plugin does not scrape or iframe itdog, only provides a pre-filled deep link.

Architecture Overview

dsh-ops-console/
├─ index.js                  Host entry: state, monitoring, route registration
├─ client.js                 Browser side: sidebar.panellist + main page
├─ src/
│  ├─ state.js               Plugin-owned JSON persistence (atomic writes)
│  ├─ validation.js          Input/config validation
│  ├─ snapshot.js            UI snapshot assembly + site status determination
│  ├─ monitor.js             Scheduling, probing, and provider orchestration
│  ├─ routes.js              Two /api/ops-console routes (kernel-authenticated)
│  ├─ cli.js                 gh/wrangler/ssh subprocess boundary
│  ├─ probes/local-http.js   Local HTTP/TLS probe
│  ├─ probes/globalping.js   Globalping client
│  └─ providers/             ssh / github / cloudflare
├─ docs/screenshot.png       UI screenshot
└─ test/                     node:test unit tests

The Host side introduces no DSH internal packages, using only Node built-in modules; the Client uses only the react provided by the shell. Two routes:

  • GET /api/ops-console/snapshot
  • POST /api/ops-console/action

Routes are registered via ctx.connection.fetch.register; authentication is handled by the DSH kernel.

Use Cases & Caveats

Suited for development and operations scenarios that require centralized monitoring of multiple external services. The plugin runs with DSH process privileges; it is recommended to review the source code and license before installation. Note that the plugin only monitors while DSH is running—it is not a 24/7 external probe. Cloudflare coverage is limited to Pages. SSH targets are primarily Linux; macOS is reachable but some /proc metrics will be empty. Globalping nodes and quotas are determined by a third party. CN nodes are a mix of datacenter and residential community nodes.

Summary

dsh-ops-console integrates GitHub, Cloudflare, SSH server monitoring, and multi-region website probing into DSH’s left sidebar, ideal for users who need to continuously monitor multiple external services during development. All configuration and history are stored locally, no sensitive credentials are saved, and multi-region probing is provided via Globalping. The project is released under the MIT License.

Plugin directory: https://www.skillhub.cn/plugins/lioez/dsh-ops-console
GitHub: https://github.com/lioez/dsh-ops-console

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye