Preface¶
When developing plugins for DeepSeek Harness (dsh), unit tests often fail to cover a specific class of failures: profile composition errors (e.g., a line that cannot be parsed, a patch that replaces the entire config, or provider ID conflicts), or cases where the client bundle fails to mount entirely. These issues typically only surface during a real device launch or when opening the interface, and feedback is often vague (e.g., “the app is broken”), causing investigations to drag on.
@citisen/dsh-plugin-dev is a workflow toolkit designed for DSH plugin development. It uses a small set of repeatable CLI commands to standardize the process of “compose → compare → launch → visual inspection” and includes an agent skill to provide guidance on “which command to use and why.” The repository is maintained by caparisen and is categorized as a workflow in the SkillHub plugin directory. The npm package name is @citisen/dsh-plugin-dev, the version cited in the current documentation is 0.1.0, and the license is MIT.
What is this¶
In short: A development kit for DeepSeek Harness plugins—composing profiles, launching disposable shadow instances, verifying the host side, capturing client-side behavior, and rolling back when profiles are broken.
The implementation avoids reinventing the wheel: compose calls the real dsh --profile <p> --dump-config and performs a diff; shadow calls dsh --profile <copy> --no-open --port 0 and reads the URL printed by the launcher; shot drives a browser via the DevTools protocol. On the host side, it only registers a skill provider (reading skills/dsh-plugin-dev/SKILL.md); the design ensures it should not hinder profile startup.
Core Features¶
The following is a summary based on the command table in the README, representing capabilities explicitly stated in the source material.
| Command | Function |
|---|---|
doctor |
Detects launcher and version, lists profiles, checks if the selected profile can be composed, and finds Chromium. |
compose |
Composes profiles via the real launcher; --save records the baseline, --check exits with code 1 on drift, and --json lists entries and duplicate IDs. |
shadow |
Copies the profile (file copy, node_modules linking), starts on a system-assigned port, waits for the URL, probes it, and outputs url/token/log. |
shot |
Renders a URL using headless Chromium (CDP): captures PNG, DOM stats, console errors, and uncaught exceptions; --fail-on-console-error treats console errors as failures. |
snapshot |
Saves, lists, and restores the three files that determine profile composition; automatically snapshots the current state before restore. |
Common parameters include --dsh <path>, --json, and --help.
The toolkit encodes several manual pitfalls into its commands. For example: Desktop profiles rejected by the CLI (managed only by Electron) need to be checked on a copy; GUI requests without a token result in a 401, and the ready state is a 303 token exchange rather than a 200; using chrome --headless --screenshot directly on an SPA may hang; and link: dependencies may cause the package manager to delete the working tree containing .git.
Installation and Activation¶
Installation via a bundle is recommended so that the corresponding skill appears in the agent directory:
dsh plugin --profile desktop add @citisen/dsh-plugin-dev
The package registers a skill provider, making dsh-plugin-dev appear in the agent directory; it does not alter other profile lines, and the bundle can be disabled to remove it.
If you only need the CLI and not the skill:
npx @citisen/dsh-plugin-dev doctor
Or:
npm i -g @citisen/dsh-plugin-dev
Environment requirements (from the README):
dsh: Desktop app (built-in CLI auto-discovered), a published CLI onPATH, or--dsh <path>/$DSH_CLI.- Node 20+.
shotrequires Chromium, Chrome, or Edge (auto-discovered; otherwise specify--browser <path>orCHROME_PATH).- Supports Windows, macOS, and Linux; the desktop app is optional, any available
dshworks.
Version notes: The documentation records testing on Windows 11 with dsh 0.2.1-rc.2 (Electron 44 / Node 24.21). If the launcher changes --dump-config, the dsh web: launch line, or desktop profile policies, doctor tends to report errors rather than silently providing incorrect results; you can attach doctor --json output to a repository issue.
Typical Usage¶
The shortest closed-loop workflow provided in the README is as follows. First, perform an environment self-check, then view the composition tree the launcher would mount, start a temporary shadow instance, take a screenshot and capture console logs, and save a snapshot for the desktop profile if necessary.
dsh-plugin-dev doctor # what this machine can test
dsh-plugin-dev compose --profile desktop --json # the tree the launcher would mount
dsh-plugin-dev shadow --from desktop --hold # boot a throwaway copy, print url + token
dsh-plugin-dev shot --url "$URL" --out shot.png # render it, capture console errors
dsh-plugin-dev snapshot save --profile desktop # something to go back to
shadow --hold maintains the process, facilitating the transfer of the printed URL and token to shot. Composition and drift checks can be combined with compose --save and compose --check; use snapshot restore when profile composition files are corrupted (the current state is automatically snapshotted before restoration).
Use Cases and Notes¶
Suitable for: Developers writing or maintaining dsh plugins/bundles who need to repeatedly verify profile composition, host registration, and web client mounting on their local machine.
Notes:
- The plugin and
dshrun with your current user permissions; please review the GitHub source code and the MIT license before installation. - Community directories like SkillHub have no official affiliation with DeepSeek / High-Flyer; installation sources should be based on the registry and repository you trust.
- The directory page clue is
caparisen/dsh-plugin-dev, while the npm installation name follows the README:@citisen/dsh-plugin-dev.
Conclusion¶
Most plugin failures stem from composition and client mounting, rather than specific business logic code. @citisen/dsh-plugin-dev consolidates compose, shadow, shot, and snapshot into fixed steps, and the bundled skill explains when to use each. For further information, please refer to the SkillHub directory page and the GitHub repository.