dsh-concierge: DeepSeek Harness Maintenance Hub

Introduction

DeepSeek Harness (DSH) adopts a “everything-is-a-plugin” architecture, where the desktop app and individual plugins are maintained separately, with updates and configurations scattered across multiple locations. In everyday use, developers need to simultaneously keep track of the app itself, plugin sources, performance status, and window appearance—making it easy to miss updates or encounter lag. Below is an introduction to a plugin that centralizes the management of all these aspects.

What It Is

dsh-concierge is a maintenance-center plugin maintained by coldrainthreeautumnleaves. It provides a unified entry point with six tabs for DSH: Updates, Plugins, Tools, Performance, Typewriter, and About. It primarily solves three problems: unified visibility into app and plugin update status; batch management of installed plugins (update, rollback, enable/disable, uninstall); and monitoring and optimizing chat performance and window rendering.

Update Management

App Update

The plugin reads the update source declared in the desktop version’s resources/app-update.yml and compares it against the installed version. The update entry only appears when the desktop app reports an available update, following the native update flow without bypassing the official mechanism.

Plugin Updates and Rollbacks

  • Update sources: npm plugins check mirrors and the plugin manager; GitHub plugins check releases (falling back to tags when no release exists); local plugins check the source directory version or file fingerprint.
  • Actions: Supports one-click update, update all, and auto-update. A toast notification appears in the top-right corner upon completion; a restart is required when the button displays “Restart App.”
  • Rollback: npm plugins can roll back to any historical version on the mirror; GitHub plugins can roll back to any tag. On failure, the original version is automatically restored.

Plugin Management

List and Filtering

  • Lists all installed plugins, with support for search and filtering (All / Updatable).
  • Per-row actions: update, rollback, ignore this version, enable/disable, uninstall, view changelog, open homepage.
  • Plugins that fail to load are automatically disabled, with a banner at the top offering one-click re-enable.

Tools

GitHub Source and npm Install

  • GitHub source: Add any repository and continuously poll for the latest release; uninstalled repos can be installed, installed ones can be reinstalled; during installation, HEAD is pinned to the full commit hash.
  • Install from npm: Enter a package name or package@version.

GitHub Token

  • Status badge + masked display + request link.
  • Without a token, the GitHub API limit is 60 requests/hour (per IP); with a token, it increases to 5000/hour (per account).
  • Stored in ~/.dsh/update-center/settings.json; the environment variables GITHUB_TOKEN / GH_TOKEN take priority.

Appearance Configuration

  • Theme: Follow system / Light / Dark.
  • Skin: Glass / Native (pure white).
  • Brand color, font size, code font.
  • Additional Glass skin options: opacity (0–20%), grain, true-transparent margins and background (preset gradient / image / video). The Glass skin covers all surfaces: background/layers/cards/menus and 40+ background tokens rendered semi-transparently with a static pre-blurred wallpaper layer; floating surfaces (popups/menus/toasts) use solid backgrounds without backdrop-filter. Everything goes through the official theme service theme.overrideTokens, with each token provided in both light and dark variants so it follows theme changes automatically. No CSS injection, no modification of the official DOM, and it remains valid across DSH upgrades. Disabled by default.

Directories and Configuration

  • Open plugin directory / config / safe-mode directory.
  • Toggle for auto safe mode.

Performance Monitoring and Optimization

Monitoring Metrics

  • Frame rate: 5-second average, capped at the screen refresh rate.
  • Message line count.
  • Long tasks in the last 10 seconds and cumulative blocking time.
  • 80-second bar history with peak values.

Startup Acceleration

  • Adds the app directory, ~/.dsh, and plugin directories to Windows Defender exclusions (triggers a single UAC prompt).

Auto Degradation

  • Enters minimal mode when frame rate drops below 50% of the refresh rate for 3 consecutive seconds; recovers when it stays above 65% for 5 seconds; 15-second cooldown.
  • Sidebar collapse optimization: during sidebar animation, only re-layout visible message lines.
  • No animation on collapse: zeroes out the 0.3s width transition so collapsing triggers a single re-layout.
  • Off-screen line skipping (enabled by default): adds content-visibility to each line in the chat stream so off-screen lines don’t participate in layout or paint; also compatible with dsh-better-sidebar’s file tree and task tree.
  • Frame rate cap: automatically follows the screen, or can be set manually.

Typewriter Mode

  • Character-by-character display (disabled by default): applies only to the streaming output text; thinking, tool calls, and images remain native.
  • Streaming throttle (enabled by default, 33ms): batches the app’s “one render per token” behavior to reduce repaints.

Claude Code Integration (via magpie)

  • Toggle: controls whether the local Claude Code is registered as a model provider for DSH; when turned off, “Claude Code” no longer appears in the model menu, but the rest of the plugin’s features are unaffected.
  • Routing: the plugin does not construct routes itself—Claude Code reads ~/.claude/settings.json, and the card displays whatever ANTHROPIC_BASE_URL points to (e.g., the local magpie at http://127.0.0.1:3425).
  • Status: shows whether claude.exe was found and whether it is currently connected.
  • Limitation: only the final text is returned to DSH; tool calls are completed within the Claude Code process, so DSH cannot see tool cards and a reply arrives all at once.

About

  • Displays the version number and repository link.
  • Collapsible changelog (reads CHANGELOG.md from the repo root).

Installation and Activation

In DSH, go to Plugins → Install Plugin and enter:

github:coldrainthreeautumnleaves/dsh-concierge

Or via command line:

dsh plugin --profile <profile> add github:coldrainthreeautumnleaves/dsh-concierge

After installation, restart DSH (the Host component requires a restart; the client component only needs a page refresh).

Safe Mode

If a plugin is corrupted or the app fails to start, the plugin itself won’t have a chance to run, so it automatically writes scripts to ~/.dsh/update-center/ at launch time:

  • safe-launch.cmd / .vbs: automated version—launches the app, monitors for 30 seconds, and if it crashes, automatically switches to safe mode and restarts; point your desktop shortcut to it.
  • safe-mode.cmd / .vbs: manual version—backs up configuration → launches with only official plugins.
  • restore-mode.cmd / .vbs: restores configuration and restarts.

The .vbs variants are silent: double-clicking runs the entire process without a visible command window. All scripts require the app to be exited and do not need administrator privileges.

Window Material Patch (Optional)

You no longer need this to fix the white bar. The root cause of the white bar during resize/fullscreen is that root-layer transparency causes the entire frame to be classified as “non-opaque,” preventing Chromium from stretching the previous frame. This was fixed via CSS starting from 0.7.0, without modifying the asar. See docs/RESIZE-BAND.md for the full investigation.

The patch is retained for modifying two properties of the window itself (both are equal-length replacements; the asar header is untouched):

  1. Window background color: defaults to #00000000 (transparent). Changing it to a solid color forces the window to be opaque.
  2. Window material: defaults to acrylic—DWM blurs the desktop wallpaper behind the window, and this is what’s visible through the true-transparent margins. Changing it to none means the sharp desktop shows through, and the margin ring changes from “frosted glass” to “clear glass.”
node scripts/patch-window-fallback.mjs --check   # Check status
node scripts/patch-window-fallback.mjs           # Apply patch (auto-backs up to app.asar.bak)
node scripts/patch-window-fallback.mjs --revert  # Restore from backup

Re-run this after every app update (updates overwrite app.asar). If the write fails, the app is likely still running and locking the file—exit DSH and try again.

When using true-transparent margins, decide which material you want: acrylic = frosted glass (default, also the standard Windows 11 look), none = the desktop shows through as-is. You can only choose one, and a DSH restart is required for the material change to take effect.

Development and License

  • Requirements: DSH 0.2.1 or later (engines.dsh), Node.js 22 or later.
  • License: MIT.
  • Local dev link install:
dsh plugin --profile <profile> add link:<absolute-path-to-this-repo>

After modifying index.js, restart DSH; after modifying client.js, refresh the page.

Use Cases and Notes

  • Suitable for DSH developers and heavy users who frequently update plugins, monitor performance, manage multi-source plugins, and customize window appearance.
  • The plugin runs with the current dsh process privileges; review the source code and license before installation.
  • The window material patch is optional; understand its purpose and implications before applying it.
羽毛球分组比赛记分
小程序二维码

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

Xiaoye