dsh-plugin-selfcheck: Terminal Output of Plugin List and Five Installation Self-Checks on DSH Startup

Preface

DeepSeek Harness (DSH) adopts an “everything is a plugin” loading mechanism: bundles are declared in the profile, and the cordis loader mounts them recursively at startup. However, determining exactly what is installed, what is disabled, or what failed to mount often requires digging through logs or guessing. Cordis’s built-in Loader.showLog() can print apply plugin <name>, but it is disabled by default and outputs via ctx.root.logger. Under the dsh CLI, this output goes neither to the console window used to launch dsh nor to the dsh-run.log file that the window redirects to.

dsh-plugin-selfcheck is published by community maintainer xiaocxiaohai666 and categorized as a client plugin. It writes reports directly to console within the host process: listing the status of every plugin row in the loader tree at every startup, followed by five installation-level checks. It does not rely on hardcoded paths; instead, it reads the plugins actually installed in your current profile. SkillHub Directory Page: https://www.skillhub.cn/plugins/xiaocxiaohai666/dsh-plugin-selfcheck; Source Code & Documentation: https://github.com/xiaocxiaohai666/dsh-plugin-selfcheck.

What is this

In short: A terminal-oriented DSH installation self-check plugin. At startup, it prints the complete plugin roster to the console window used to launch dsh, along with check results for dependency declarations, peer mount refusals, config shapes, Web ports, and registered tools. Afterward, it does not reside in the background causing interference.

Since version 0.2, the loader tree cannot reflect the full picture: plugins with peerDependencies incompatible with the running host are rejected before mounting. They will not appear as a row in the roster, making it look like “this plugin isn’t installed” rather than “it failed to install.” This plugin uses deps.peer-gate to recalculate the same rules from the manifest, covering this blind spot.

The plugin’s own version is independent of the dsh host version; the current version in package.json is 0.2.0, indicating the second feature release of this plugin, not “corresponding to dsh 0.2”.

Core Features

Startup Plugin Roster

The output prefix is [selfcheck]. Each line corresponds to an entry in the loader tree (enumerated recursively, so the number of lines is often far greater than the number of bundles; e.g., a single @linxin666/dsh-web-all may expand into over twenty lines).

Status Meaning
ok Mounted successfully
skip Disabled, marked with (disabled) at the end of the line, not counted as a failure
FAIL Never successfully mounted, written to stderr

Summary line example: plugins: 148 mounted, 28 disabled, 0 failed. Mount failures enter the problems / error details section, and unwrap chains along the cause (such as AggregateError) to provide the innermost reason as much as possible.

Five Installation-Level Checks

Check Item Question Answered
deps.version-drift Do the dsh.engines.dsh declarations in each plugin’s package.json still support the currently installed @deepseek-ai/dsh version? (Supports common ranges and prereleases; unparseable ranges are reported as undecidable, ensuring no false passes)
deps.peer-gate Which plugins will be refused mounting by the host (Only counts @deepseek-ai/dsh and @deepseek-ai/dsh-* peers; includes bundles declared in profile but not entering the tree; compatibility.json exact version exemptions are marked separately as intentional mounts)
config.files Do files under the profile (cordis.yml, cordis.patch.yml, package.json, etc.) conform to the structural requirements of the loader?
http.port Perform a loopback GET / against the port reported by webServer to confirm if the HTTP service is responding
tools.registered Count the number of model-facing tools via ctx.tools.schemas() and perform duplicate detection

Runtime Derivation, No Local Hardcoding

  • Plugin rows come from ctx.loader.entries(), reporting the plugins you actually installed;
  • The profile directory is derived from the loader context’s baseUrl, not by guessing ~/.dsh/profiles/<name>;
  • Manifests are located by traversing upward from the running process entry, so it continues to work even if the dsh installation path changes.

Install a new plugin, restart dsh, and it appears in the list; no extra configuration, whitelists, or registration steps are required. Design constraints include empty inject, etc. (see the repository README for details), aiming to prevent the diagnostic plugin itself from failing to mount due to injection failures.

Output Locations and selfcheck_status Tool

Location Content
Console launching dsh Real-time report at startup
$DSH_HOME/dsh-plugin-selfcheck.log The same text log ($DSH_HOME defaults to ~/.dsh)
$DSH_HOME/dsh-plugin-selfcheck.json The same data in JSON format
Tool selfcheck_status The model can query this and explain failure causes

selfcheck_status is only registered when @deepseek-ai/dsh-tools can be resolved; the plugin deliberately does not bundle a fallback compiler to avoid inconsistencies with the host’s defineTool behavior. Even without the SDK, the primary feature of the startup console report remains intact.

Installation and Activation

Official installation command (using web as the profile example, consistent with the README):

dsh plugin --profile web add dsh-plugin-selfcheck

Install from a local directory link:

dsh plugin --profile web add link:/path/to/dsh-plugin-selfcheck

You must restart dsh after installation—bundle lines are loaded at startup.

Environment requirements (from package.json): Node >=22.0.0; See the repository manifest for the range of dsh.engines.dsh and the optional peer @deepseek-ai/dsh-tools. License is MIT.

On Windows with cross-drive paths, pnpm may fail to create symlinks, resulting in empty directory installations; the README provides steps for manual junction creation and dsh plugin --profile web install reconciling, which can be followed as written.

Typical Output Example

For a healthy startup, the console looks roughly like this (specific plugin names and counts vary based on your profile):

[selfcheck] plugin self-check
[selfcheck]  ok   @deepseek-ai/dsh-base                       include
[selfcheck]  ok   dshmarket                                   include:dsh-market
[selfcheck]  skip @deepseek-ai/cordis-plugin-hmr  51ad9c62    (disabled)
[selfcheck]  ---- plugins: 148 mounted, 28 disabled, 0 failed
[selfcheck]  ---- install checks:
[selfcheck]  ok   deps.version-drift    all 9 plugins declaring dsh.engines.dsh accept 0.2.0-rc.2
[selfcheck]  ok   deps.peer-gate        no plugin rejects dsh 0.2.0-rc.2 (11 candidate(s) scanned, 0 incompatible)
[selfcheck]  ok   config.files          ~/.dsh/profiles/web (3 files checked)
[selfcheck]  ok   http.port             http://127.0.0.1:3080/ answered 200 in 3ms
[selfcheck]  ok   tools.registered      34 model-facing tools registered
[selfcheck]  ---- selfcheck OK - 148 mounted, 0 failed, checks 5 ok / 0 warn / 0 fail (742ms)

When a plugin does not appear in the roster due to peer rejection, deps.peer-gate will fail and list the package name; the README explains that this can be handled via dsh plugin --profile <profile> allow-version <pkg>@<version> --dsh-version <host> --accept-risk, or by removing/upgrading the conflicting plugin.

Use Cases and Notes

Who is it for

  • After starting dsh locally or in CI, when you need to see at a glance “what mounted, what was disabled, and what errors occurred”;
  • After upgrading dsh or batch adding plugins, when you need to verify engines declarations and peer gating to avoid “silent refuse” where “this line simply isn’t in the tree”;
  • When suspecting Web port occupation by old processes, profile YAML structural errors, or duplicate tool registration, use the five checks for quick localization.

Notes

  • The plugin reads profiles, makes HTTP probes, and writes to $DSH_HOME logs under the permissions of the current dsh process; please review the source code and MIT license yourself before installation. SkillHub is a community directory and has no official affiliation with DeepSeek / High-Flyer.
  • No Web console, no client half-part, no background service; the primary scenario is terminal-first.
  • If relying on @deepseek-ai/dsh-tools to use selfcheck_status, ensure the peer is resolvable; otherwise, the startup report and log/json files can still be used.

Conclusion

dsh-plugin-selfcheck anchors the “human-visible plugin roster + five installation self-checks” to the console at every startup, synchronizes them to log/json, and hands over to the model for interpretation via selfcheck_status when necessary. It serves as the first screen of information for daily DSH operations and troubleshooting.

  • Directory Page: https://www.skillhub.cn/plugins/xiaocxiaohai666/dsh-plugin-selfcheck
  • GitHub: https://github.com/xiaocxiaohai666/dsh-plugin-selfcheck
羽毛球分组比赛记分
小程序二维码

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

Xiaoye