Introduction¶
DeepSeek Harness (DSH) follows an “everything is a plugin” approach. When numerous local web instances and plugin bundles are involved, issues often manifest first as tool call errors or process startup failures. However, the root causes can be scattered across Symbol dual-package issues, duplicate patches, broken junctions, or breaking changes introduced by updates. Relying solely on manually browsing directories and guessing which step needs modification is costly and prone to oversights.
dsh-cockpit (@suan2inf/dsh-cockpit) consolidates “problem identification → problem repair → safe update” into a single workflow. The web panel and the command line share core logic, and it remains capable of performing read-only health checks and idempotent repairs via the CLI even when DSH itself is corrupted. The following sections introduce its positioning, capabilities, installation, and usage. For technical facts, please refer to the README of the GitHub repository.
What is it¶
dsh-cockpit is a community-maintained DSH plugin published on npm by suan2inf (@suan2inf/dsh-cockpit, currently documented as version 0.1.0) under the MIT license. It provides a Web GUI (running in source mode) and includes a CLI that does not depend on the DSH runtime. It is designed for health checks, one-click repairs, and safe update orchestration for DeepSeek Harness.
Community Plugin Directory: SkillHub - suan2inf/dsh-cockpit. This directory is not officially affiliated with DeepSeek or 幻方 (High-Flyer). Please review the source code and license before installing. The plugin runs with the current DSH process privileges, and write operation interfaces only accept local sources (README design principle).
Core Features¶
Health Check (Read-only)¶
The README lists 18 checks, covering Symbol repair integrity (both src and lib sides), build freshness, bundle resolvability, plugin peer compatibility declarations, duplicate patch entries, junction health, backup age, git status, and update gates. The health check does not modify any files.
Repair (Idempotent)¶
5 one-click repair items: patch deduplication, invalid junction cleanup, backup cleanup, Symbol.for in-place repair, and missing bundle link reconstruction. Repairs are assessed before execution, and backups are retained; medium-risk operations require --yes on the CLI.
Update¶
Provides version previews (commits behind, release notes, breaking changes to note) and can launch a deferred update assistant with one click. This assistant automatically updates, replays local fixes, and restarts after DSH is closed. An optional companion script scripts/update-deferred.ps1 is called by the panel’s “Start Update” button but can also be run independently.
Entry Points¶
- DSH Normal: Settings → Health Check Center, or standalone dashboard
http://127.0.0.1:3080/dsh-cockpit. - DSH Fails to Start: You can still use
cli.js/npx dsh-cockpitfor health checks and repairs (core modules have zero DSH dependency).
Installation and Activation¶
Search and install via the DSH Web Plugin Market, or manually write to the profile’s ~/.dsh/profiles/web/package.json:
{
"dependencies": {
"@suan2inf/dsh-cockpit": "^0.1.0"
},
"dsh": { "profile": { "bundles": ["@suan2inf/dsh-cockpit"] } }
}
Run pnpm install in the profile directory and restart DSH Web.
Packages written to bundles must be resolvable in node_modules; otherwise, DSH may fail during the resolveBundleDir stage. The README suggests running npx dsh-cockpit first after installation to confirm that the “bundle resolvability” check passes before restarting.
package.json specifies the runtime environment: node >=22.19, os includes win32; it has an optional peer dependency on @deepseek-ai/dsh-host-webserver (^0.1.5-rc.1 || ^0.1.6-0), with compatibility declarations including 0.1.6-alpha.2.
Typical Usage¶
Command Line¶
Call from the plugin directory or via npx:
node cli.js # Offline health check
node cli.js --online # + git fetch + latest release tag
node cli.js --gate # Only output update gate; exit code 0 = safe
node cli.js --fixes # List repair items and status
node cli.js --fix <id> # Execute repair (idempotent); add --yes for medium risk
If the repository is not in the default location, specify it via environment variable. Example for Windows: set DSH_REPO=C:\path\to\deepseek-harness.
Deferred Update Script (Optional)¶
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/update-deferred.ps1 -Repo C:\path\to\deepseek-harness
The script waits for DSH Web (port 3080) to close → runs update-dsh.ps1 in the repository (backs up and replays local fixes) → automatically restarts DSH Web upon success.
Scenarios and Caveats¶
Suitable for developers running DSH Web locally long-term, installing multiple bundles, or frequently tracking upstream versions. The README cites plugin runtime resolution adjustments in 0.1.6 causing Symbol dual-package identity misalignment and Interrupted tool calls as an example to illustrate its value in troubleshooting when you “don’t know what is broken.”
Notes for use:
- Diagnostics are read-only, but repairs, while idempotent, still modify local harness and profile-related states. Backup important environments first.
- If panel registration fails, the README states it only warns; the standalone path
/dsh-cockpitdoes not rely on the client slot API. - The
package.jsonin current materials listsosaswin32; non-Windows environments need to verify if the CLI and scripts meet their requirements.
Conclusion¶
dsh-cockpit condenses common DSH failure modes into a repeatable health check checklist and limited one-click repairs. It places updates within a “gate + deferred assistant” framework to reduce pitfalls caused by breaking changes. For further information, visit the SkillHub directory page and GitHub: suan2inf/dsh-cockpit.