Introduction¶
DeepSeek Harness (DSH) splits capabilities into installable profile plugins. After upgrading dsh, old plugins often fail to load during the startup pre-check stage because their peerDependencies don’t match the current runtime. The symptoms are often deceptive: the plugin still appears in dsh plugin list, and its files are still in the profile’s node_modules, but the entire functionality disappears, or dsh fails to start at all. The stderr usually shows only a single-line English warning, which is only easy to spot when “exactly that one conflicting plugin is installed”; the problem typically surfaces only after a restart, making retrospective diagnosis costly.
Below is an introduction to the community plugin dsh-compat-vet (maintainer liujianqiao701, category admin-security). It turns compatibility checks into proactive, centralized, Chinese-language, actionable reports; once installed into a profile, it also pops up a banner at the top of the dsh web page, supporting key-press-based fixes such as quarantine, uninstall, or upgrade (with automatic backup before changes and automatic rollback if the recheck fails). The health check and CLI are read-only by default; writing to the profile only happens after you explicitly choose a fix action on the page.
What is it¶
dsh-compat-vet is a Cordis plugin for DSH and also provides a standalone CLI dsh-compat-vet. The npm package version is 0.3.1 (MIT license), declaring dsh.engines.dsh: "*", with Node >=20 required. Without maintaining a hardcoded “dsh version number → capability” mapping table, it dynamically loads @deepseek-ai/dsh-app-boot from the local dsh installation directory, empirically tests whether evaluatePluginCompatibility exists and its interception behavior, then audits the plugins currently installed in the profile, and annotates whether dsh’s built-in pre-check would also catch each finding.
Core Features¶
Aligns with dsh’s built-in pre-check, and checks several additional blind spots¶
dsh’s compatibility pre-check mainly examines keys in peerDependencies that start with @deepseek-ai/dsh / @deepseek-ai/dsh-; when there is no peerDependencies field, the pre-check directly considers the plugin compatible. On top of this, this plugin also reads non-standard declarations such as dsh.engines.dsh and dsh.compatibility.dsh, flags plugins with “no peer at all”, lock/manifest drift, and “nearly incompatible” cases (the declared range is currently satisfied, but by extrapolation it will fall out of range in dsh’s next minor or major version). The report uses a tri-state annotation for whether dsh would catch the issue, and states whether the basis is empirical calibration or the absence of such a check in that version.
Wording varies with the empirically measured capabilities of the local dsh¶
If the local dsh would refuse to load the plugin at startup due to a peer mismatch, the warning reads “will be refused to load at startup”; if that version has no pre-check at all and the plugin would load normally, it clearly states “the local dsh will not block it”; if the probe fails, it writes “could not be tested this time” and suggests re-running with --anchor pointing to dsh’s package.json. Fix suggestions of the allow-version type only appear when the compatibility.json exemption mechanism is empirically present; the page banner does not provide a “exempt and continue loading” option, because exemption cannot prevent it from being blocked on the next startup.
Four entry points¶
- Installed into the profile (recommended): automatic health check on every dsh startup, with a Chinese stderr summary if there are problems; registers the session tool
plugin_compat_check; when unresolved issues exist, injects a paragraph into the system prompt so the agent can proactively remind you. - Standalone CLI: does not depend on dsh modules, suitable for troubleshooting separately when dsh cannot start due to conflicts.
- Programmatic use:
dsh-compat-vet/auditexportsauditProfile,auditProfileProbed, etc. dsh webbanner: for blocking issues, a top banner appears;1quarantine (remove from bundles, keep dependencies),2uninstall,3upgrade (requires network, compatibility of the new version is not guaranteed),Rre-check; blocking and “nearly incompatible” issues can be viewed on the same screen via summary and view switching.
Fixes go through dsh’s pluginManager (preferred if available), back up to .compat-vet-backup/<timestamp>/ under the profile before changes, and recheck after changes; the HTTP fix API only accepts local loopback and same-origin requests.
Installation and Activation¶
Install from npm (the user path given in the README):
dsh plugin --profile web add dsh-compat-vet
The package has been published to npm: dsh-compat-vet (documented as latest = 0.3.1). dsh plugin add writes to both the profile’s dependencies and dsh.profile.bundles.
Uninstall:
dsh plugin --profile web remove dsh-compat-vet
Community directory page (no official affiliation with DeepSeek / High-Flyer, just an independent listing site): https://www.skillhub.cn/plugins/liujianqiao701/dsh-compat-vet
Source code and documentation: https://github.com/liujianqiao701/dsh-compat-vet
Typical Usage¶
Check stderr after startup or re-check within a session¶
After installing into the profile, if blocking items exist, the startup log may show a summary like this (example environment dsh 0.2.0-rc.2):
dsh-compat-vet: detected 1 plugin with compatibility issues against dsh 0.2.0-rc.2:
[Blocking] dsh-cost-meter@1.7.35 — incompatible with dsh 0.2.0-rc.2, will be refused to load at startup
Suggestion: dsh plugin --profile web add dsh-cost-meter@latest
Full report: run `dsh-compat-vet`, or use the plugin_compat_check tool in a session.
In a session, you can ask the agent to call plugin_compat_check to get the full Chinese report and copyable fix commands.
Use the CLI when dsh cannot start¶
dsh-compat-vet # default profile ($DSH_PROFILE or web)
dsh-compat-vet --profile web # specify a profile, takes precedence over env var DSH_PROFILE_DIR
dsh-compat-vet --home <dir> # specify the DSH home directory
dsh-compat-vet --anchor <path> # specify dsh's package.json for calibration
dsh-compat-vet --json # JSON output
dsh-compat-vet --all # list plugins without issues
dsh-compat-vet --quiet # one-line conclusion, for scripting
Exit codes: 0 no issues, 1 issues found, 2 health check incomplete.
Key-press fixes in the web UI¶
After running dsh web to open the GUI, if conflicts exist, a banner appears at the top of the page. When not in an input box, you can press the number keys directly; inside an input box, use Alt+number. Fix results (including whether changes were written, whether a restart is needed, and rollback on failure) are shown on the banner. When accessing the GUI from a LAN IP, the fix API returns 403, but the rest of the page functionality remains available.
For a read-only preview of the banner style (without initiating fixes), you can run in the source directory:
npm run preview
Use Cases and Notes¶
Who it’s for: maintainers and developers who frequently upgrade dsh, have many plugins in their profiles, or have experienced “still listed, but skipped as bundle at startup” situations. It is also suitable for gating in CI or startup scripts with dsh-compat-vet --quiet.
Permissions and security: the plugin reads and writes the profile with the permissions of the current dsh process; one-click fixes modify bundles in package.json or trigger uninstall/upgrade. Before installing, you should review the GitHub repository source and the MIT license to confirm it meets your environment policy. Regular health checks do not access the network; only when you choose “upgrade” will it fetch packages from the network.
Capability boundaries (explicitly stated in the README): before 0.1.7-rc.1 there was no compatibility pre-check or exemption, so this plugin can only inform you of the risk and cannot intercept for dsh; it focuses on startup refusals caused by version conflicts and does not guarantee that there will be no runtime bugs after upgrading; @deepseek-ai/* bundles are handled based on empirical testing of the dsh installation directory, and third-party packages occupying that scope may result in missed reports. Calibration conclusions are tied to “this local copy of dsh”; when locating the installation directory, it prioritizes the current process entry point, then environment variables and PATH, etc.
Conclusion¶
dsh-compat-vet consolidates the scattered English pre-check conclusions in stderr into Chinese, actionable commands, and (under the web profile) key-press-completed fix paths, and uses empirical calibration against the local dsh-app-boot to avoid the maintenance burden of “hardcoded version number tables”. If you maintain a set of DSH plugins, you can first learn about the listing information on the directory page, then install it into the profile using the commands above or run the CLI standalone for a full health check.
- Directory page: https://www.skillhub.cn/plugins/liujianqiao701/dsh-compat-vet
- GitHub: https://github.com/liujianqiao701/dsh-compat-vet