dsh-plugin-config-doctor: DSH Plugin Configuration Diagnosis and Validation

Preface

After installing multiple plugins in DeepSeek Harness (DSH), each plugin typically maintains its own JSON or similar structured configuration files. Manually checking syntax, required fields, empty tokens, local path existence, and valid webhooks item by item is time-consuming and prone to omissions. Errors often surface only during runtime, leading to high debugging costs.

Below, we introduce the community plugin dsh-plugin-config-doctor (maintainer thegabopacheco-sudo), categorized under admin-security. It provides centralized diagnosis for DSH plugin configurations: validating JSON, required fields, empty tokens, non-existent paths, and invalid webhooks, and offering correction suggestions. The plugin currently has 0 stars on GitHub, version 0.1.0, and license MIT; it requires Node.js >= 20 to be used alongside DSH.

What is it

dsh-plugin-config-doctor is a configuration health check tool designed for DSH operations and plugin developers. It performs read-only scanning and inspection of existing configurations via an MCP-style tool interface (see below), involving write operations only when explicitly confirmed. It does not replace the documentation included with each plugin, but instead turns the act of “checking if a configuration has obvious problems” into a repeatable step.

Community directory page: https://www.skillhub.cn/plugins/thegabopacheco-sudo/dsh-plugin-config-doctor (independent site, no official affiliation with DeepSeek / QuantCube). Source code and documentation: https://github.com/thegabopacheco-sudo/dsh-plugin-config-doctor.

Core Features

The tools listed in the README are as follows (descriptions are based on the original repository):

Tool Function
status View status
scan Scan configuration
check Review single or specified configuration

Combined with the plugin description, the diagnostic scope includes:

  1. JSON Validity: Whether the structure can be parsed and conforms to the expected format.
  2. Required Fields: Whether required keys specified by plugins or Harness are missing.
  3. Empty Tokens: Sensitive placeholders or unauthenticated fields.
  4. Paths: Whether local paths referenced in the configuration exist.
  5. Webhook: Whether URL or callback configurations are obviously invalid.

When problems are detected, the plugin suggests a direction for correction; specifically which line to change still requires referring to each plugin’s official documentation and your local environment.

Installation and Enablement

The official method provides two ways to install, with consistent identifiers:

  1. In DSH → Settings → Plugins, install github:thegabopacheco-sudo/dsh-plugin-config-doctor and follow the prompts to allow the installation script (the repository contains scripts/postinstall.mjs).
  2. Command line (replace <perfil> with your DSH profile name):
dsh plugin --profile <perfil> add github:thegabopacheco-sudo/dsh-plugin-config-doctor

Before installation, it is recommended to review the repository source code and the MIT license; the plugin runs with current DSH process permissions, just like any other third-party plugin, and you should not blindly allow scripts without reviewing them.

Typical Usage

The README does not provide a complete CLI example with parameters; usage is based on the status / scan / check tools exposed by DSH after installation. You can operate in the following order:

  1. Call status to confirm Config Doctor is loaded and the running mode meets expectations (see the Security section below).
  2. Call scan to perform a breadth-first scan of Harness-side plugin configurations and view the summary list of issues.
  3. For a single configuration file or a specific plugin node, call check for targeted review, and then modify local JSON or environment variables based on the suggestions.

Specific parameter names and return fields are based on the tool schema for the 0.1.0 version you installed in DSH; after upgrading, please refer to GitHub’s CHANGELOG.md and README.

Security and Auditing

This plugin is categorized under admin-security, and its default behavior is conservative:

  • Default read-only; write operations are only performed when confirm:true is included in the request and the user explicitly requests it.
  • Environment variable DSH_CONFIG_DOCTOR_MODE=read-only can disable write actions, keeping only diagnostics.
  • Whitelist and audit logs are written to <DSH_HOME>\cache\config-doctor\audit.jsonl (the DSH_HOME in the path is based on your local DSH layout).

When using it on production or shared profiles, it is recommended to keep it in read-only mode and leave changes for manual review.

Applicable Scenarios and Notes

Suitable for:

  • Just bulk installed multiple DSH plugins and need to discover obvious configuration errors all at once.
  • After changing machines or migrating DSH_HOME, verifying if paths and webhooks are still valid.
  • During team collaboration, performing automated sanity checks before submitting configuration changes.

Notes:

  • Diagnostic results cannot replace security audits; issues like token leaks or excessive permissions still need to be handled according to organizational standards.
  • Community plugins are not official releases; stars and downloads do not guarantee quality. Please read the dist/server.mjs build chain and manifest files like cordis.patch.yml (see files field in package.json) before installing.
  • Do not extend the capabilities described in this article to “automatically fixing all configurations” where not explicitly documented; write operations are constrained by confirm:true and mode switches.

Conclusion

dsh-plugin-config-doctor turns the most common class of errors in DSH plugin configurations (JSON, required fields, empty tokens, paths, webhooks) into a repeatable scan / check process, paired with a read-only default and audit logs, making it suitable for pre-launch checks in admin-security scenarios.

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

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

Xiaoye