Introduction¶
DSH (DeepSeek Harness) is a local agent runtime built on the cordis microkernel. A profile is a directory used when DSH starts, containing a package.json that lists plugin packages and a cordis.patch.yml that applies configuration overrides to those plugins. Plugin packages arrive through three channels simultaneously — the npm registry, local tarballs, and DSH bundled packages — but no mechanism warns when any single channel drifts. Upgrade failures often occur after the profile is already in a half-broken state.
dsh-plugin-doctor is a read-only health check plugin designed to understand the current state before making changes to a profile. It does not install, remove, enable, or patch anything. The report’s readOnly field is always true.
Plugin Overview¶
- Name: dsh-plugin-doctor
- Maintainer: ginxiu0330-sketch
- Category: admin-security
- Core value: Reads the runtime state of a profile and answers four common questions that actually break working environments, without modifying anything.
Core Features¶
A single plugin_doctor invocation answers the following four questions:
- Which plugins have new versions, and which of them are incompatible with the current DSH version?
- Do any installed packages declare dependency requirements that the current DSH version rejects?
- Which rows does each package patch, and which rows are simultaneously claimed by multiple packages (i.e., load-order-affecting overrides)?
- Which skill names are shadowed by same-named copies from higher-priority sources (i.e., the common cause of “my changes aren’t taking effect”)?
The plugin retrieves information through read-only calls to ctx.pluginManager.listBundles(), ctx.pluginManager.listVersions(name), and ctx.skills.list(), and uses defineTool from @deepseek-ai/dsh-tools to define the tool’s schema, executor, and renderer.
Installation & Activation¶
The plugin is a bundle: it consists of an npm package and a cordis.patch.yml. It has not yet been published to npm, so it must be checked out from the GitHub repository.
Clone from GitHub:
git clone https://github.com/ginxiu0330-sketch/dsh-plugin-doctor
Edit package.json in your profile directory (defaults to %USERPROFILE%\.dsh\profiles\<name>):
// package.json
{
"dependencies": {
"dsh-plugin-doctor": "file:C:/path/to/dsh-plugin-doctor"
}
}
Edit cordis.patch.yml and append one array entry:
# cordis.patch.yml — append one array entry
- insert:
- id: plugin-doctor
name: 'dsh-plugin-doctor'
Use the launcher’s package manager to install dependencies, then restart DSH. Desktop hosts do not support hot-loading new bundles; a restart is required for the initial load.
Typical Usage¶
Run plugin_doctor. With no arguments, all checks are enabled by default:
> run plugin_doctor
# DSH plugin doctor — 2026-11-18 03:22 UTC
runtime unknown · 3 packages · 1 upgradable · 1 incompatible · 0 broken
Read-only: nothing was installed, removed, enabled or patched.
## 1. Installed packages
| package | installed | latest | status | channel | note |
| --- | --- | --- | --- | --- | --- |
| dsh-broken | 0.1.0 | — | INCOMPATIBLE | unknown (disabled) | incompatible-version: engines.dsh wants >=0.3.0 |
| dsh-cost-meter | 1.9.65 | 1.10.0 | update | registry | |
| dsh-oil-ui | 0.3.1 | — | local | file | file spec |
## 2. DSH compatibility
| package | version | runtime | scope | requirements |
| --- | --- | --- | --- | --- |
| dsh-broken | 0.1.0 | 0.2.2-rc.2 | installed | engines.dsh: >=0.3.0 |
## 3. Patch health
| bundle | rows | overrides | state | problems |
| --- | --- | --- | --- | --- |
| dsh-oil-ui | 1 | 1 | enabled | |
1 row(s) override rows the bundle does not declare. Those are the rows most likely to
break silently when a bundle upgrades, because the override keeps pointing at an id the
new version may have renamed or dropped.
## 4. Skills
| skill | source | invocation | state | path |
| --- | --- | --- | --- | --- |
| oil-ui | project-dsh | model | active | /p/.dsh/skills/oil-ui |
| oil-ui | user-dsh | model | shadowed by project-dsh | /u/skills/oil-ui |
Optional parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
checkUpdates |
boolean | true |
Queries the registry for packages with new versions. One round-trip per registry spec; disabling this yields a fast offline report. |
checkSkills |
boolean | true |
Includes the skill catalog and flags name-shadowing conflicts. |
timeoutMs |
integer | 20000 |
Time budget per package for registry checks. Timeouts become unknown rather than being treated as errors. |
The tool does not throw exceptions when services are missing: a profile without a plugin manager or skill catalog still generates a report, with pluginManagerError / skillsError set to the corresponding error values.
Status value meanings:
| status | Meaning |
|---|---|
update |
Registry dependency; the registry returned a newer version. |
incompatible |
The installed package or a candidate upgrade declares a requirement the current DSH version rejects. |
error |
The plugin manager cannot read or parse the package (unexpected-package, not-bundle, missing files, etc.). |
local |
No upgrade channel: file: spec, git pin, or a DSH bundled bundle. |
ok |
Registry dependency is already at the latest version, or it is a DSH bundled bundle. |
unknown |
Could not query the registry (offline, timeout, not found). Never silently treated as ok. |
Use Cases & Caveats¶
Suitable for running a health check before upgrading or modifying a profile, to understand upgrade risks, compatibility conflicts, patch overrides, and skill shadowing. The plugin runs with the current DSH process permissions; inspect the repository source code and license before installing.
Value Summary¶
dsh-plugin-doctor provides a complete view of plugin upgrade status, DSH compatibility, patch overrides, and skill shadowing without modifying the profile. It is a prerequisite health check tool for maintaining DSH profile integrity. For more details, refer to:
- Directory page: https://www.skillhub.cn/plugins/ginxiu0330-sketch/dsh-plugin-doctor
- GitHub: https://github.com/ginxiu0330-sketch/dsh-plugin-doctor