jorinyang/dsh-doctor

DSH environment diagnosis, graded repair with one-click rollback, and a runtime self-healing service.

dsh-doctor is an all-in-one diagnose + reversible-repair + rollback tool for DeepSeek Harness (which ships no built-in doctor command). Diagnose runs read-only 9-category checks (via the dsh_doctor tool or 'dsh-doctor' CLI); Fix applies graded repairs via dsh_doctor_fix / 'dsh-doctor fix', journaling the undo step of every reversible change; Rollback performs LIFO undo to the pre-repair state ('dsh-doctor rollback', --list, or --id <id>); and it also runs as a runtime self-healing service — ctx.provide('dsh-doctor') exposes diagnose/repair/rollback to other plugins, ctx.on('internal/status') gives reactive plugin-lifecycle monitoring with FAILED alerts, and ctx.effect() makes effects reversible with no residue on unload.

Development & Runtime ★ 0 updated 2026-08-14
View on GitHub ↗

Install

dsh plugin --profile web add @jorinyang/dsh-doctor

The install line is 'dsh plugin --profile web add @jorinyang/dsh-doctor', after which the CLI is available as 'dsh-doctor'. The npm package @jorinyang/dsh-doctor 0.3.2 was re-verified live on 2026-10-02 with its repository field back-linking to jorinyang/dsh-doctor (MIT). The built-in CLI is auto-registered to the system PATH on install.

Compatibility

DeepSeek Harness. Cross-platform (Windows / macOS / Linux / fish), zero config, auto-registers to PATH on install. Exposes the dsh_doctor, dsh_doctor_fix and dsh_doctor_rollback model tools plus a 'dsh-doctor' Cordis runtime service.

Details

Recent updates

The README documents the capability table (diagnose / repair / rollback / runtime service), the two-command revival flow, the journaling rollback model, the Cordis runtime integration points (ctx.provide / ctx.on('internal/status') / ctx.effect), and the cross-platform PATH registration.

FAQ

How do I install dsh-doctor?
dsh plugin --profile web add @jorinyang/dsh-doctor (npm 0.3.2 re-verified 2026-10-02), then run dsh-doctor to diagnose and dsh-doctor fix to repair.
Are the repairs safe to undo?
Yes — the README says every fix writes a journal recording the undo step, and dsh-doctor rollback restores the pre-repair state LIFO (or by --id).
Does it work against a running DSH?
Yes — in addition to stop-and-fix, it runs as a Cordis runtime service that hooks internal/status for live lifecycle monitoring and self-heal.

Alternatives

white-sand-grand/dsh-plugin-doctor · klarkxy/dsh-plugin-autoevo · jiesou/dsh-webui-fix-pack

More plugins in Development & Runtime

Browse more in Development & Runtime

Guides for Development & Runtime plugins