dsh-verdict (Effect Evaluation): Validating the effectiveness of DSH configuration changes using repeatable test cases

Preface

When modifying rules, skills, models, or plugins in DeepSeek Harness (DSH), it is often a matter of subjective feeling to judge “whether it has improved.” Manual conversation runs are hard to reproduce and lack comparisons between changes. The community plugin dsh-verdict (Chinese name 效果评测, command verdict) addresses this issue: it registers repeatable evaluation cases, performs validation, diffs changes before and after, and answers “did this change actually help” with evidence.

Below is an introduction to the plugin’s positioning, capabilities, and installation usage. Facts are based on the documentation of the npm package dsh-verdict. The original independent GitHub repository hj01857655/dsh-verdict is no longer accessible. The SkillHub directory page marks the plugin as archived and notes it was once merged into the dsh-plugins monorepo. However, this package was removed from the monorepo workspace starting 2026-10-20. Installation and distribution remain based on npm.

What is this

dsh-verdict is published by maintainer hj01857655 and is categorized as a DSH workflow plugin. In one sentence: Measure whether a change to your dsh setup actually helped — register repeatable cases, run them, and diff the results before and after you change rules, skills, model settings, or plugins.

In the DSH “everything is a plugin” ecosystem, the community directory site SkillHub provides indexing and summaries; it has no official affiliation with DeepSeek/High-Flyer. Currently, the installable artifact comes primarily from npm (License MIT, latest version on npm is 0.6.1; the SkillHub page once marked v0.5.1, but the version you actually install takes precedence).

Core Features

The following capabilities are from the npm package README and are marked as implemented:

  1. Rule Capture and Persistence: Capture natural language rules via the learn process and write to a durable store (in-project .verdict/ledger.json, with atomic writes).
  2. Guard Compilation and Validation: Compile executable rules into shell checks available on the current platform; promote to AGENTS.md (with <!-- verdict:<id> --> markers) only if executable checks exist.
  3. On-demand and Scheduled Re-validation: check aggregates passed / violated / broken; on resident hosts, automatic re-validation can occur every six hours.
  4. Before/After Change Comparison: The verdict diff command series compares between before/after snapshots to answer whether a change improved things.
  5. Session and Skill Distillation: Append logs to sessions (session); repeated successes can be distilled into skill candidates (skills), and the settings page supports writing (POST /api/verdict.skills.write).
  6. Settings Page Web Panel: Host registers GET /api/verdict.panel; clients register a Verdict page in Settings. Hosts without a web client will skip the UI part.
  7. Standalone CLI: Run verdict subcommands without starting dsh, facilitating local verification and CI integration.

The rule engine has explicit support for several sentence patterns (file existence, prohibiting certain files, prohibiting root directory globs, requiring file content to contain specific strings, etc.); sentences that cannot be faithfully expressed on the current platform remain as candidates and will not generate approximate commands.

Violations and “checks cannot run” are handled separately: exitCode 1 indicates a real violation; when a guard cannot execute, it is recorded as broken, and will not independently mark the pipeline red. If the same rule continues to fail, it will be downgraded to ineffective after three distinct violation episodes (not three run counts).

Installation and Activation

Installation from npm is recommended (the tarball includes pre-built lib/). The official installation command is:

dsh plugin add dsh-verdict --profile web

When a specific version is needed:

dsh plugin add dsh-verdict@0.5.1 --profile web

For local development, you can use link (replace the path with your package directory):

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

The plugin comes with cordis.patch.yml, which is automatically registered by the profile after installation; no manual configuration changes are needed. Do not expect to install directly from GitHub source using dsh plugin add github:...: lib/ is gitignored in the source, and dsh prohibits build scripts during installation; use npm or link: instead.

Before installation, check the LICENSE (MIT) and package contents in npm or the tarball; the plugin runs under the current dsh process privileges, and guards execute shell commands. You should understand the scope of its behavior before installation.

Typical Usage

Invoking Services within the DSH Host

After the host loads the plugin, rules can be learned and checked via ctx.verdict:

ctx.verdict.learn('never commit the file secrets.env')
// Capture rule, compile guard, write to AGENTS.md, and re-validate as needed

ctx.verdict.check()
// -> { passed, violated, broken, exitCode }

CLI: Daily Operations and CI

When not starting dsh, you can use the CLI with the same name (excerpt from npm README examples):

verdict learn "never commit the file .env"
verdict check
verdict list
verdict recall "env"
verdict session --intent "verify a change" --step "run tests" --step "commit"
verdict skills --write
verdict panel
verdict diff before ; verdict diff after ; verdict diff
verdict doctor
verdict inventory --audit

verdict check is suitable for CI: the exit code is non-zero for real violations; it remains 0 only when guards cannot run. To evaluate a DSH configuration change, you can take a before snapshot, change the config, take an after snapshot, and then run verdict diff to see the comparison results.

verdict doctor is used for static checks on whether checklists, build artifacts, patch IDs, peer dependency locations, lifecycle scripts, etc., comply with dsh plugin rules.

Use Cases and Notes

Who is it for

  • Teams or individuals who frequently adjust DSH rules, skills, models, or plugins and need reproducible evidence.
  • Those who want to fix guards to run in CI or scripts to avoid “feeling better” without a control group.
  • Users with dsh configurations that include Web Settings who need to view rule status and before/after comparisons in a panel.

Precautions

  1. The plugin runs with current dsh process privileges; guards read/write project files and execute shell commands. Please read the source code or npm package contents before installation and confirm whether the MIT license meets your compliance requirements.
  2. The independent repository https://github.com/hj01857655/dsh-verdict is unavailable; the source history entered the monorepo, but the monorepo now only retains other packages. Please use the npm package dsh-verdict as the installation source.
  3. Direct installation from GitHub is not feasible; for development and debugging, use link: or local npm ci && npm run build followed by linking.
  4. The panel and APIs (e.g., /api/verdict.panel) depend on the host’s web connection; core flows like learn / check / diff can still be completed in a pure CLI environment.

Conclusion

dsh-verdict brings “is the configuration change effective” back from subjective feeling to repeatable cases and snapshot diffs: register rules, compile guards, re-validate, and compare results before and after changes. If you see old links on SkillHub or GitHub, the npm installation command and version take precedence.

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

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

Xiaoye