DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-framework-doctor

l

dsh-framework-doctor

Manifest valid

Configure model providers by probing their endpoint, check DeepSeek Harness health, and repair what can be fixed - from a standalone settings page.

UI (client)hasBundlePatch

Framework Doctor icon

dsh-framework-doctor

English | 中文

A DeepSeek Harness plugin that configures model providers by probing their endpoint, checks framework health, and repairs what can be fixed — from a standalone settings page. Nothing runs in the background.

What it does

The plugin adds one page: Settings → Framework doctor. It has four sections.

1. Connect a model

Paste an endpoint URL and an API key, press Probe, and the plugin asks {baseURL}/models for the model list, then derives each model's capabilities:

Derived fieldSource
Input modalities (text / image)endpoint metadata, then the model-family table
Context window, max output tokensendpoint metadata, then the family table
Reasoning effortsthe family table (or false for a non-reasoning model)
compat.thinkingFormatthe family table (deepseek, qwen-chat-template, zai, openrouter, openai)

Anything the endpoint does not state and the family table cannot infer is left empty rather than guessed — a wrong reasoning-effort map makes the whole provider fail its request. Each row shows whether its values were declared by the endpoint or inferred, so you can tell the two apart before writing.

Already-configured providers can be re-probed and filled in the same way: pick one from the dropdown and the form is populated (the stored credential is reused, so you do not retype the key). Writing in that mode merges — models you hand-wrote are kept, newly advertised models are appended, and capability fields are filled in from the endpoint.

API keys are stored through the harness credential service; the config keeps only an apiKeyEnv reference, never the key itself.

2. Framework checkup

23 checks run against the live configuration and runtime state: 18 against the llm-pi-ai provider config, 5 against runtime facts (plugin load phase, registered providers, the default model).

They cover the failures that actually happen: a hand-written provider with no baseURL, a credential reference that resolves to nothing, a plaintext key left in headers, a reasoning model with no effort map, a non-reasoning model carrying one (a 400 on every request), duplicate model ids, a default model pointing at a provider that does not exist, and so on.

Providers registered by other plugins are reported as external-provider (info) rather than as missing configuration — a provider is considered real when it is registered with the model service, not only when it appears in this config.

3. Talk to the doctor

A chat box. You describe what you want; the assistant looks up the real state before answering. It can request framework data on demand through six read-only tools:

ToolWhat it returns
stateProvider list with baseURL, protocol, credential state, and per-model modalities / context / output cap / reasoning efforts; the default model; registered routes
diagnoseThe full checkup result with severities
pluginsPlugin rows: package, enabled flag, load phase
toolsThe tools this agent can currently call
providerOne provider's full config (keys redacted)
probeLive endpoint interrogation

The assistant writes TOOL: {"name":"...","args":{...}}, the host runs it and feeds the result back, up to 4 rounds. The page shows which tools it consulted.

Anything the assistant suggests that changes something is rendered as a button you have to press: re-run the checkup, auto-repair, repair one finding, probe an endpoint, or probe-and-write a provider. The model never edits configuration on its own.

4. Repair

Auto-fixable findings can be applied in one click. Repairs are generated as settings.mutate operations: they only ever produce set, never unset, with two deliberate exceptions (drop a duplicate model id, and set reasoningEfforts to false on a model that should not have one).

Install

dsh plugin --profile <your-profile> add dsh-framework-doctor

Or from a local checkout:

dsh plugin --profile <your-profile> add /absolute/path/to/dsh-framework-doctor

Restart dsh web if the page does not appear, then open Settings → Framework doctor.

What it deliberately does not do

  • No background scanning. Health checks run when you press a button. There is no timer and no polling.
  • No automatic configuration changes. Every write is either a click in the connect wizard or a click on an assistant-suggested action.
  • No plaintext secrets. Keys go to the credential service; headers values are checked for plaintext keys and reported.
  • No guessing. Unverifiable model capabilities are left unset.

Requirements

  • DeepSeek Harness >=0.2.0 (engines.dsh; also declared under dsh.compatibility)
  • Node.js >=20.18
  • A configured default model, for the chat section only. Everything else works without one.

No runtime dependencies. The plugin uses only Node built-ins and the harness services it injects.

Development

node tests/run-all.mjs    # or: npm test

Three suites, none of which need a running harness:

SuiteChecks
tests/framework-doctor-lib.mjslib/infer.js capability derivation, lib/diagnose.js rules, lib/repair.js plans, plus an end-to-end probe against a local fake OpenAI-compatible endpoint
tests/framework-doctor-host.mjsHost routes, /apply validation and merge semantics, /chat tool loop, the trust fence, and degradation when a service is missing
tests/framework-doctor-client.mjsLoads client.js against a stubbed module loader and React, renders every section, and checks theme-token and boundary constraints

Layout

FileRole
index.jsHost entry: HTTP routes, settings read/write, the chat tool loop
client.jsThe settings page (plain JS + createElement, no build step)
lib/infer.jsEndpoint interrogation and capability derivation
lib/diagnose.jsThe checkup rules
lib/repair.jsFindings to settings.mutate operations
lib/trust.jsRequest trust fence for the plugin's HTTP surface

License

MIT — see LICENSE.

Comments

Loading…

Similar plugins

dsh-better-model-setting

by HiSeax

DSH plugin: replaces official Models settings page with provider management, per-model reasoning effort, retry overrides, drag reorder, add official DeepSeek, credential status

Models & ProvidersManifest valid

★ 0

TypeScript

Aug 29, 2026

dsh plugin --profile web add dsh-better-model-setting

by jorinyang

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

Tools & CapabilitiesManifest valid

★ 6

↓ 483/wk

MIT

JavaScript

Aug 14, 2026

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

by lsdt45

DeepSeek Harness 模型设置页插件:管理提供方与模型目录,配置模型容量、输入类型与思考能力

Development & InfrastructureModels & ProvidersManifest valid

★ 0

JavaScript

Oct 10, 2026

dsh plugin --profile web add dsh-model-config

by d86e

dsh-doctor: self-healing watchdog for the DeepSeek Harness web profile. Recovers from plugin-induced boot failures within 60s, runs an unbounded CLI doctor, captures every tool error, and watches all

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 4

MIT

TypeScript

Sep 8, 2026

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

by MarvekG

Advanced per-model reasoning and capacity settings for DeepSeek Harness

Models & ProvidersManifest valid

★ 42

MIT

JavaScript

Sep 4, 2026

dsh plugin --profile web add dsh-models-config-plugin

by AGSQ11

Persistent model-health monitoring for the DeepSeek Harness (DSH) Web UI.

Terminal & ClientsManifest valid

★ 0

MIT

JavaScript

Aug 19, 2026

dsh plugin --profile web add dsh-model-probe