rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Willmylife/dsh-model-connection-test
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
中文 | English
A DeepSeek Harness plugin that adds a connection test to Settings → Models: one minimal chat round-trip per configured model, with a connected / unstable / failed verdict, the harness failure code, and first-output / total latency.
DeepSeek Harness configures model providers and their catalogs in Settings → Models, but nothing in that page tells you whether a configured model actually answers. This plugin fills that gap with a real end-to-end probe — the same call path the agent itself uses.
From the plugin market (dsh-market): after this repository is listed in awesome-dsh-plugin, search for Model Connection Test / 模型连接测试 and install it. No restart is needed in most cases.
From the CLI (any host):
dsh plugin --profile <your-profile> add https://github.com/Willmylife/dsh-model-connection-test
From DeepSeek Harness Desktop: open the app's own Settings → Plugins and install from the market or a Git URL. The Desktop profile is owned by the app's plugin manager while the app runs.
Requires DSH ≥ 0.2.0 (engines.dsh). The plugin is plain JavaScript — no build step, no dependency install, no build scripts to approve.
session.modelCatalog), marking the default pair.n/N counter while it runs.Connected 1.2s, Unstable <CODE> (the probe retried a transient failure and it still failed — usually worth trying again later), Failed <CODE> (a configuration-level answer such as AUTH or NO_ADAPTER), testing, or not tested.RATE_LIMIT, SERVER, TRANSPORT, EMPTY_RESPONSE), so one busy second on a relay no longer reads as an unreachable model. Every <CODE>, the failure message, and the retry count stay on hover.Browser (client.js) Host (index.js)
───────────────────── ────────────────────────────────
settings.models.footer slot POST /model-connection-test/api/test
└─ ctx.remote.session.modelCatalog() same-origin fence + 4 KiB body cap
└─ fetch POST { provider, model } ──────► ctx.llm.stream({
provider, model,
messages: [{ user, "ping" }],
maxTokens ≤ 256, signal
})
one terminal finish chunk ──────►
verdict + failure code + latencies ◄───────── { ok, code, message, totalMs, firstMs,
attempts, transient }
ctx.llm.stream, the only supported path into the provider adapters. Stored credentials resolve there and never reach the browser, the wire, or any log of this plugin.type: 'finish'): reason.kind of stop, max-tokens, or tool-calls is a completed request; error and aborted carry failure details. First-output latency starts at the first text, reasoning, or tool-call output chunk.TIMEOUT gets one extra attempt at most), and configuration failures — AUTH, MISSING_CREDENTIAL, NO_ADAPTER, … — are final on the first attempt. transient: true on a final failure tells the UI to say "unstable" instead of "broken".GET /model-connection-test/api/health returns { ok: true, providers: <n> } for quick diagnosis.Host must be loopback or a deployment-declared authority, cross-site sec-fetch-site is refused, Origin must match when present, the host's own request gate is honored when published, and bodies are capped at 4 KiB."ping" with a small output cap (default 16, hard max 256 tokens), so a full-catalog sweep costs a handful of tokens.retries 0–4, default 2).This repository is the installable bundle itself (repo root = package root; plain JS, no build). To make it appear in dsh-market:
awesome-dsh-plugin.com, dshmarket.com, the npm index) rebuild daily; the market picks the entry up automatically, usually within a day.Optional but recommended: also npm publish the package (dsh plugin … add dsh-model-connection-test then installs from npm, which is the fastest and most verified channel).
index.js Host half: webServer routes + probe via ctx.llm
client.js Client half: settings.models.footer slot + panel
cordis.patch.yml bundle patch (one insert row)
locale/zh|en.json display metadata (meta.title/description) + UI copy
icon.svg panel/market icon
Extension points and services used (verified against DSH 0.2.1-rc.2):
settings.models.footer (list seat) declared by @deepseek-ai/dsh-client-ui-settings-models.slots, locale, remote, remote.session; catalog via ctx.remote.session.modelCatalog() (returns RemoteResult, unwrap .ok/.value).webServer + llm; routes via webServer.register({ kind: 'exact', path, handler }) (handler returns a disposer).ctx.llm.stream({ provider, model, messages, signal, maxTokens }); terminal chunk { type: 'finish', reason: { kind: 'stop' | 'max-tokens' | 'tool-calls' | 'error' | 'aborted', failure? } }. A verdict retries transient codes and reports { attempts, transient } alongside the failure.To hack locally: edit the files, then reinstall the bundle (a directory install links the checkout; a Git install re-downloads). Client bundle changes may need a page refresh; Host changes survive HMR or a restart depending on the change.
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: model、deepseek-harness。