Preface¶
When installing plugins, tweaking configuration, or upgrading versions in DeepSeek Harness (dsh), troubleshooting often turns into guesswork against logs and directories: is a plugin not loading, did the last update leave a “declared but never started” row in the bundle, or are there leftovers like *.parked or _tmp_* on disk? Inspecting remote.pluginManager state and the profile directory yourself is tedious and error-prone. Enter the community plugin @ragnoryok1/dsh-plugin-doctor: it adds a Diagnostics page to the Web settings that aggregates plugin-side issues with actionable hints, plus a local disk-scan script that specifically hunts for file traces commonly left by failed updates. Maintained by Ragnoryok1, categorized under admin-security on SkillHub; the package is MIT-licensed and is not officially affiliated with DeepSeek.
What Is This¶
@ragnoryok1/dsh-plugin-doctor targets Web profile DeepSeek Harness: it registers a Diagnostics tab under Settings → Built-in Plugins, listing the plugin state known to the current harness and explaining, by category, “what’s wrong and where to look.” It does not auto-fix anything, nor does it send data outside the network; all displayed content comes from the Remote service supported by the harness (remote.pluginManager), responses are parsed with the { ok, value } envelope, and no internal files of other packages are read, so it remains usable after harness upgrades.
The README metadata lists compatibility with harness versions v0.2.1-alpha.1, v0.2.0-rc.2, v0.1.7-rc.2, and v0.1.7-rc.1; before installing, compare your local dsh version against the peer dependency notes on npm.
What the Diagnostics Panel Checks¶
The panel sorts entries into several categories; only error categories count as “problems”. Reference categories (e.g., a plugin deliberately disabled) are still shown, but they will not flag an otherwise healthy profile as “broken.”
| Section | Meaning |
|---|---|
| Not loaded | The plugin threw an error at startup; the panel shows the plugin’s own error message. |
| Declared but not started | The bundle contains a declaration row but there is no corresponding live entry — a common trace left behind by failed updates. |
| Not manageable in UI | An entry exists but cannot be toggled here; the reason is explained (e.g. management-required, unaddressable, etc.). |
| Disabled | Deliberately disabled by the user. |
| Version warning | Non-fatal; worth reading before upgrading. |
Each section gives one summary hint rather than repeating the same paragraph on every row. Whether or not problems exist, the panel reports how many plugins were checked, so that “all clear” never looks the same as “actually didn’t inspect anything.”
Disk Scan: Update Leftovers and Startup Logs¶
The in-browser panel cannot see the filesystem. The author therefore ships a separate bin/doctor-scan.mjs that looks, on the profile directory side, for the leftovers that repeatedly appear during manual troubleshooting:
Run it from the plugin source directory or the installed package:
node bin/doctor-scan.mjs
Or, if the npm package is installed standalone:
npx dsh-doctor
The script looks for things like: *.parked (parked copies that bypassed a blocked rename during an update), _tmp_* (remnants of failed installs, often tied to EPERM), broken file: references (pointing at paths that no longer exist, which may surface as ENOENT during installation), and in logs/startup-*.log, launcher-recorded plugins that never activated (including package name, error, and number of services still pending). The README notes that these leftovers are not surfaced in the Web diagnostics page at present — displaying them in the UI would require additional remote services and harness generator support, which is left as future work.
Installing and Opening the Diagnostics Page¶
Install command (from the README; do not rewrite it into a github:owner/repo form):
dsh plugin --profile web add @ragnoryok1/dsh-plugin-doctor
Once installed, open the harness Web UI and go to Settings → Built-in Plugins → Diagnostics to view the panel.
Typical Usage¶
- Routine inspection: after upgrading or batch-adding/removing plugins, open the diagnostics page and check for “Not loaded”, “Declared but not started”, or version warnings, then follow the per-section hints (the plugin does not fix things for you).
- When updates still fail: run
node bin/doctor-scan.mjsornpx dsh-doctoragainst the profile on the host machine, and cross-reference*.parked,_tmp_*, and the startup logs before deciding whether to clean the directory or fixfile:references. - Behavior verification (for maintainers): the repository’s
fixtures/canary/ships a canary plugin that deliberately fails inapply(); installing the canary should make the panel report exactly 1 problem (e.g. “Declared but not started”), and removing it should show everything loaded and compatible. Reproduction steps are documented in the README under that directory.
UI strings support ru, zh, and en (see src/client/locales.ts).
When to Use It and Caveats¶
- Good fit for: DSH users and plugin authors who frequently try community plugins in a Web profile, need a one-glance view of load failures and bundle inconsistencies, or suspect leftover update garbage on disk.
- Not meant as: an auto-repair tool or remote monitoring; it only reports local state.
- Security and permissions: the plugin runs under the current
dshprocess and user permissions; the disk scan reads directories and logs under the profile. Before installing, it is recommended to review the GitHub repository source and MIT license to confirm it meets your environment’s policy. - Relationship to the official project: the DeepSeek Harness ecosystem emphasizes “everything is a plugin”; the SkillHub catalog page is a community index, not an official DeepSeek app store.
Conclusion¶
dsh-plugin-doctor consolidates the scattered state in the plugin manager into a single diagnostics view, and supplements it with a standalone script for checking update leftovers on the filesystem side; neither component reads other packages’ internals beyond its privileges, nor does it transmit data outward. If needed, you can reach the documentation page from SkillHub, or browse GitHub directly: https://github.com/Ragnoryok1/dsh-plugin-doctor.