deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
ayahunter/dsh-plugin-clinic
Read-only health clinic for installed DeepSeek Harness plugins: loader health, dependency integrity, version compatibility, install-script risk, duplicates, and patch integrity — model tool + Web dashboard + JSON reports.
PROJECT TOPICS
PROJECT README
Plugin Clinic — read-only health checks for the installed DeepSeek Harness plugin set.
DeepSeek Harness is "everything is a plugin", which spreads stability risk across a
freely-composable configuration layer — yet nothing tells you whether your installed set
is healthy. dsh-plugin-clinic closes that gap: it inspects every profile under the
Harness home and reports loader health, dependency integrity, version compatibility,
install-script risk, duplicates, and patch integrity, with no writes and no external
state.
plugin_health — the agent can diagnose its own environment in-session
and turn findings into concrete fix advice.schemaVersion: 1 contract for CI and scripts.load-health,
bundle-manifest, peer-deps, runtime-compat, install-scripts, duplicate,
patch-health, provenance.The Clinic dashboard inside the official Web GUI — Settings → Plugins → 体检. Per-profile plugin cards carry severity-colored status lines, expandable findings, and the summary bar counts critical/warning/info findings across every profile:


# from npm (prebuilt lib/)
dsh plugin --profile web add dsh-plugin-clinic
# or straight from GitHub (sources; the prepare script builds them, pnpm asks you to
# allow the build once — see the official publish guide for the allowBuilds semantics)
dsh plugin --profile web add github:ayahunter/dsh-plugin-clinic
Restart the profile. The Settings → Plugins section gains a Clinic tab; the session gains
the plugin_health tool.
# upgrades within the saved semver range (^0.1.0 → latest 0.1.x)
dsh plugin --profile web update dsh-plugin-clinic
Upgrades are never applied automatically; restart the profile afterwards.
In any session on a profile where the plugin is installed:
体检一下我的插件
or call the tool directly with {"details": true} for per-finding evidence. In the Web
GUI, open Settings → Plugins → 体检 to see every profile's health at a glance.
Edit the bundle row in the profile's cordis.patch.yml:
- id: clinic
name: 'dsh-plugin-clinic'
config:
profiles: [] # profile directory names to diagnose; empty = all
enableTool: true # register the plugin_health tool
enableWebRoute: true # register /clinic HTTP routes when a webServer exists
webRoutePrefix: '/clinic'
includeHomePatches: true
| Endpoint | Returns |
|---|---|
GET /clinic/health |
full ClinicReport |
GET /clinic/health/summary |
summary projection for the dashboard |
Routes require a loopback Host header (DNS-rebinding defense, same spirit as the
official /api fence); they are not authentication.
One npm package, two halves. The Host half owns a pure diagnostic engine
(src/engine/, no I/O, no ctx), the plugin_health tool, and the /clinic routes.
The browser half registers the Clinic tab into the official settings.plugins.tab
extension point and fetches the same report the tool returns. Design rationale is
documented in the repository's internal working docs (not shipped with the package).
One tool schema: plugin_health with profiles, severity, and details parameters.
The tool is registered on ctx.tools like any model-facing tool, so its schema flows
into the system-prompt assembly of every agent in a profile that loads this plugin.
Fixed at registration: one tool schema entry per agent. The execution result is a
ClinicReport JSON document whose size scales with the number of diagnosed plugins;
details: false (the default) returns counts only, keeping the model-visible payload
bounded regardless of how many plugins are installed.
The tool schema is part of the fixed prompt prefix and does not invalidate reuse. The execution result is a per-turn tool result, not part of any later request prefix.
deprecated flags and update availability are v2 (configurable--profile extraction from
argv is best-effort UI highlighting only, never authoritative.dsh-plugin-doctor's job; optional
integration of its CLI is deferred to v2.MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。