dsh-startup-check: A Pre-Startup Check Tool for the DeepSeek Harness Plugin Tree

In the plugin development workflow for DeepSeek Harness, directly restarting after installing a plugin often carries the risk of “dead on arrival.” Once the harness fails to open, troubleshooting code errors becomes extremely difficult because the agent responsible for reading the code may have already failed. dsh-startup-check advances the point of error discovery to before the restart. Through static checks and optional isolated real-machine launches and browser smoke tests, it identifies and fixes issues before the plugin takes effect, preventing harness startup failures caused by plugin errors.

Tool Positioning

This is a tool that provides pre-startup checks for the DeepSeek Harness profile plugin tree. It includes static checks, optional isolated real-machine launches, and headless browser smoke tests, along with support for instance shutdown confirmation and residual instance auditing. It provides the plugin_check command-line tool and bundles the plugin-fault-diagnosis diagnostic skill.

Core Functions

The tool covers several critical stages in plugin development:

  • Static Checks: Includes syntax checks, package structure checks, patch reference checks, and configuration tree assembly.
  • Real-Machine Startup Smoke Test: Launches an isolated instance to verify whether the plugin tree loads correctly.
  • Page-Side Smoke Test: Connects to a browser via CDP to check for page errors or rendering anomalies.
  • Instance Management: Confirms whether isolated instances have closed normally and audits residual instances.
  • Diagnostic Skills: Bundles the plugin-fault-diagnosis skill, capable of locating files and categorizing errors based on check results.

Installation and Enablement

Installing the plugin requires the DeepSeek Harness CLI. A harness restart is required after installation to enable the plugin.

dsh plugin --profile web add @cningan/dsh-startup-check

Typical Usage

After installation, you can use the plugin_check command to perform checks at different levels. If no parameters are specified, static checks are performed by default.

plugin_check                          # Static check
plugin_check { live: true }           # Includes real-machine startup smoke test
plugin_check { page: true }           # Includes page-side smoke test (requires browser installation)
plugin_check { sweep: true }          # Includes residual instance audit
plugin_check { live: true, killStray: true }   # Startup check and cleanup of residual instances from this run

Applicable Scenarios and Limitations

  • Runtime Environment: The plugin only supports the Windows platform, utilizing PowerShell and WMI for instance auditing. The runtime environment requires Node.js >= 22.
  • Browser Requirements: If page-side checks are required, Edge or Chrome must be installed.
  • Profile Support: Currently fixed to the web profile; other profiles are work-in-progress.
  • Security: Designed to operate in read-only mode; it will not restart or touch the harness currently in use.

Summary

By conducting comprehensive checks and repairs before the restart, dsh-startup-check helps developers avoid situations where the harness cannot start due to plugin syntax errors or structural issues. For more technical details, source code, and documentation, please refer to: GitHub.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye