DeepSeek Harness Plugin

wfz2006/dsh-status-bar#dsh-status-bar

Stars ★ 6 Downloads (30d) 1,786 Category UI Enhancements Added 2026-10-20 npm dsh-status-bar-plugin

Floating glass status bar for DSH on Windows 11 x64: an always-on-top capsule that mirrors session progress, the current step and pending approvals from a local DSH web profile, with peek and detail views; approval cards stay read-only until DSH returns its own decision receipt, and connecting to the official Desktop app is experimental and unverified.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-status-bar-plugin

# from a prebuilt release tarball

dsh plugin --profile web add -w "https://github.com/wfz2006/dsh-status-bar/releases/latest/download/dsh-status-bar.tgz"

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:wfz2006/dsh-status-bar#path:/packages/dsh-status-bar

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

DSH bundle for DSH Status Bar — a floating glass status bar for DeepSeek Harness. The npm name and the bundle row id are dsh-status-bar-plugin. npm already hosts an unrelated dsh-statusbar, so the registry rejects the shorter name as too similar.

What it does

The plugin mounts one host row in DSH. At boot it waits for the local web server, asks the connection service for the authenticated host URL (connection.authenticatedUrl(origin)), and starts the desktop app with that link:

electron <app dir> --dsh-link=<authenticated url> --launcher-pid=<host pid>

The companion connects with that link on launch, so nothing has to be pasted. The initial link travels in the process arguments. After a connection drop, the companion requests a fresh link from its plugin parent over the inherited IPC channel. Links are never logged or sent to the renderer. The app rejects non-loopback links, credentials, hashes and sub-paths before it touches the network. --launcher-pid makes the companion exit when the DSH process it belongs to disappears; disposing the plugin kills the spawned tree.

If the companion is already running, the second launch hits its single-instance lock: the existing window is focused and re-connected with the new link.

Reopening a hidden or closed companion

Hiding the window keeps the process alive; Ctrl+Shift+G toggles it back. After the user quits the companion, the plugin registers the DSH slash command /status-bar. Invoking it in any session asks DSH for a fresh authenticated link and either shows the existing instance through the single-instance hand-off or starts a new one. The command is registered even when autoLaunch: false, so a manually disabled companion can still be opened without restarting DSH. It never stores or replays an old token.

Install

From npm, from the plugin market (once listed), or straight from the release tarball:

# npm entry package, downloads the runtime as needed
dsh plugin --profile web add dsh-status-bar-plugin

# release tarball: 155 MB, self-contained, nothing downloaded later
dsh plugin --profile web add https://github.com/wfz2006/dsh-status-bar/releases/latest/download/dsh-status-bar.tgz

Both end up as the same companion: the built desktop app plus an Electron runtime. The tarball carries them; the npm package reads the download URL from its own manifest (dsh.statusBar.runtime), fetches that tarball the first time DSH starts it, and unpacks it into a per-version cache: %LOCALAPPDATA%\dsh-status-bar\runtime-<version> on Windows, ~/.cache/dsh-status-bar/runtime-<version> elsewhere. Later launches reuse that cache.

Release builds also produce dsh-status-bar-lite.tgz and dsh-status-bar-app.tgz. The light plugin reuses Electron from a previous runtime cache when the bundled engine files match for the target platform and architecture. It checks the SHA-256 of the application archive, then hard-links the matching engine files into the new cache on the same volume. On a first install, an engine upgrade, or a failed app-only update, it downloads the full runtime. The self-contained archive is available for offline installation. To enable the same behavior on npm, pass --split-manifest dist/split-runtime.json to pack-npm-release.mjs.

On Windows, a small native preparation window shows download progress before Electron is available. A failed download shows Retry and Try later; retry continues without restarting DSH. Cancel stops the preparation and keeps the verifiable partial for the next launch. A valid cache opens the companion directly, without flashing the preparation window.

The downloader prefers system curl (and falls back to Node if unavailable), checks stalled connections, and makes up to three attempts. Partial files live beside the cache as runtime-<version>.tgz.part; Range resume requires an ETag or Last-Modified validator. If the server ignores Range or no validator exists, the file is downloaded afresh rather than concatenated incorrectly. Corrupt archives are discarded; extracted content must match the plugin version before it replaces a cache. A per-version lock prevents concurrent hosts from writing the same partial/cache. Plugin disposal aborts preparation and prevents late launch.

The default GitHub URL is pinned to releases/download/v<plugin-version>/..., even for older manifests advertising latest. An explicit download URL override is respected; its archive must still match the installed plugin version. No authenticated DSH link is requested until the runtime is ready, and progress files contain no Host token or Cookie. Non-Windows environments retain log output; the native progress UI is Windows-only.

Renamed in 0.2.3. The old package id was dsh-glass-plugin; it still resolves to the same app, but new installs should use dsh-status-bar-plugin.

From a checkout (development)

The desktop profile can link the package instead of installing it:

// <profile>/package.json
"dependencies": { "dsh-status-bar-plugin": "link:D:/codexwork/dsh/dsh-glass-spec/packages/dsh-status-bar" },
"dsh": { "profile": { "bundles": [/* ... */ "dsh-status-bar-plugin"] } }

In a checkout the plugin uses apps/desktop/out as the app directory and the workspace electron package, so run pnpm build first. Point a junction or symlink at node_modules/dsh-status-bar-plugin if pnpm did not run, then restart DSH.

Configuration

The bundle patch sets autoLaunch: true. To keep the plugin installed but stop it from launching the companion at boot, override the row config in the profile patch; /status-bar remains available for manual launches:

- id: dsh-status-bar-plugin
  config:
    autoLaunch: false

Other overrides, all optional:

key meaning
appDir directory holding out/main/index.js
electronBinary path to an Electron executable
runtimeDir where the downloaded runtime is cached
downloadUrl override the runtime tarball URL
autoReload relaunch the companion when the desktop bundle changes (default true)
showStartupUI show native Windows preparation/error feedback (default true); disable only for intentionally headless use

The same settings are available through the environment: DSH_STATUS_BAR_APP, DSH_STATUS_BAR_ELECTRON, DSH_STATUS_BAR_RUNTIME, DSH_STATUS_BAR_RUNTIME_URL. The pre-0.2.3 names (DSH_GLASS_*) still work as fallbacks.

Requirements

  • Windows 11 x64 (the glass refraction reads the screen behind the window).
  • The desktop app is a separate Electron process; it needs a GPU-backed Electron runtime, which the release tarball provides.

License

MIT. The bundled Electron runtime keeps its own license files (electron/dist/LICENSE, LICENSES.chromium.html).

Development verification

From the repository root, run pnpm test and pnpm test:plugin-startup after pnpm build. The latter uses a temporary thin-plugin install, local HTTP/Host, native WPF feedback and the actual workspace Electron through the documented electronBinary override. It does not reinstall or enable the production plugin. See first-run recovery for evidence and limits.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.