Apache-2.0 DSH plugin: install a target plugin into a throwaway `DSH_HOME`, verify the patch layer and boot, optionally assert a named tool, then uninstall and clean up — emitting a `dsh-test-drive/v1` record.
DSH integration
Native runtime
Author-claimed
Safety audit
Unaudited
Last verified
2026-11-23
License
Apache-2.0
01What can it help you accomplish?
Check that a DSH plugin really installs, that its bundle patch layer takes effect, that it boots and that it uninstalls — before adopting it
A `dsh-test-drive/v1` record with per-stage status, exit code, duration, redacted output tail and a `pass` / `fail` / `partial` / `unknown` verdict
DSH users and plugin authors who want a reproducible install-and-smoke run instead of a one-off "install it and see"
Drive a list of candidate plugins in one batch and keep the pass/fail matrix
One `drive-batch` background job whose streamed output ends with a matrix report (JSON + Markdown) and a matrix id
Catalogue maintainers and scoring pipelines that consume machine-readable result rows (the README names dsh-score as the downstream consumer)
Prove that a named tool or `/command` is actually callable after install, not just that boot succeeded
`stages.capability.status = observed` only when the persistent session log records the call and the observed output contains the expected literal
Plugin authors who need evidence that their own tool surface works inside DSH
02How to install into DeepSeek Harness
Prerequisites
- A `dsh` CLI on PATH that can launch a second headless process — DSH Desktop's `dsh.CMD` launcher only allows `dsh plugin …`, `--dump-config` and `--version`, so point `config.dshBin` at an npm/pnpm-installed `dsh`
- `pnpm` on PATH plus Node `^22.19 || >=24.9`, the versions the README's own dev block assumes
- Network access for the subprocess that installs registry / git targets
- `DEEPSEEK_API_KEY` only if you want the capability assertion — without it that stage is `skipped`, never a failure
Installation steps
- 01
Install from npm: `dsh plugin --profile web add dsh-test-drive` (published, prebuilt package — no build permission needed)
$ dsh plugin --profile web add dsh-test-drive
- 02
Or from git: `dsh plugin --profile web add github:PerryLink/dsh-test-drive#<commit-sha>`
$ dsh plugin --profile web add github:PerryLink/dsh-test-drive#<commit-sha>
- 03
On the git channel the first `add` fails because pnpm blocks the package's `prepare` build: copy the exact key pnpm prints — `'dsh-test-drive': true` under `allowBuilds` — into the profile's `pnpm-workspace.yaml` and run it again
- 04
Defaults work as-is; add the `test-drive` insert row with `capability.*` and `forwardEnv` to the profile patch only when you want the capability assertion
- 05
Restart the profile; `test_drive` and `/testdrive` are then available in the session
Verify the integration
- After the restart run `dsh --profile web --dump-config | grep -A3 'id: test-drive'` and check the row is loaded
- Run `test_drive({ target: "dsh-click" })` against a known target and look for `verdict pass` plus a `tdr_` run id
Rollback
- `dsh plugin --profile web remove dsh-test-drive`, or delete the row from the profile patch
03DSH integration and capability boundaries
Registers the `test_drive` and `drive_report` tools plus the `/testdrive` command in a DSH profile; every run installs a target into a throwaway `mkdtemp` DSH_HOME, boots a second headless DSH process, then uninstalls and cleans up
`test_drive` — single-target six-stage pipeline
git spec (`github:owner/repo#sha`, `git+https://…`), npm package name, local path or `.tgz` archive, with optional `capability { kind, name, args, expect }`→the `dsh-test-drive/v1` record synchronously, or `{ kind: 'background', jobId }` when `background: true`
creates a throwaway `mkdtemp` root (DSH_HOME, workspace, redirected pnpm store) and quarantines then deletes it on every exit path`/testdrive` — batch matrix run
space- or comma-separated target list (`maxBatchTargets` defaults to 20)→a single `drive-batch` background job; the last output line carries the matrix id for `drive_report`
runs serially by default (`batchConcurrency: 1`) so concurrent drives do not fight over the pnpm store`drive_report` — replay past runs
a `tdr_…` run id, a `tdm_…` matrix id, or no id for the latest matrix→the record or matrix rendered as Markdown
needs the optional `storageDomain` — without it reports are not persisted and `drive_report` returns an honest errorcapability assertion stage
`capability { kind: 'tool' | 'command', name, args, expect }` plus `forwardEnv` when the target needs credentials→`observed` only when the persistent session log records the call and the observed output contains `expect`
degrades to `skipped`, never `fail`, when no `DEEPSEEK_API_KEY` reaches the test profile
04Who is it for? When not to use it?
Good for
- DSH users and plugin authors who want a reproducible install-and-smoke run instead of a one-off "install it and see"
- Catalogue maintainers and scoring pipelines that consume machine-readable result rows (the README names dsh-score as the downstream consumer)
- Plugin authors who need evidence that their own tool surface works inside DSH
Not for
- DSH Desktop is not a supported test host: the `dsh.CMD` launcher only allows `dsh plugin …`, `--dump-config` and `--version`, so the second headless launch is refused by policy instead of failing in a confusing npm-shim way. Point `config.dshBin` at an npm/pnpm-installed `dsh` CLI or a plain Node + dsh JS entry.
- `allowBuilds` is a real permission: allowing a git package's `prepare` build means executing that package's code at install time. It is scoped to the throwaway profile, but you should still only drive targets you trust and pin the commit.
05Compatibility, maintenance and safety notes
- DSH Desktop is not a supported test host: the `dsh.CMD` launcher only allows `dsh plugin …`, `--dump-config` and `--version`, so the second headless launch is refused by policy instead of failing in a confusing npm-shim way. Point `config.dshBin` at an npm/pnpm-installed `dsh` CLI or a plain Node + dsh JS entry.
- `allowBuilds` is a real permission: allowing a git package's `prepare` build means executing that package's code at install time. It is scoped to the throwaway profile, but you should still only drive targets you trust and pin the commit.
- The headless smoke stage reaches `pass` only with model credentials; without them the plugin reports `boot-ok`, so a clean boot is not the same as a completed task.
- Without a `storageDomain` in the composition nothing is persisted: the plugin records the reason, disables persistence and lets `drive_report` fail honestly instead of pretending.
Apache-2.0 · active, last push 2026-11-18, latest release v0.3.28
06Frequently asked questions
How do I add dsh-test-drive to a DeepSeek Harness profile?
Run `dsh plugin --profile web add dsh-test-drive` for the published npm package, or `dsh plugin --profile web add github:PerryLink/dsh-test-drive#<commit-sha>` for the latest main. On the git channel the first `add` fails while pnpm blocks the package's `prepare` build — put the key pnpm prints into the profile's `pnpm-workspace.yaml` under `allowBuilds` and re-run, then restart the profile.
What does it add to DSH?
Two tools and one command: `test_drive` runs the full pipeline for a single target (returning `{ kind: 'background', jobId }` when you pass `background: true`), `/testdrive` drives a space- or comma-separated list as one `drive-batch` job and ends with a matrix id, and `drive_report` renders a `tdr_…` run, a `tdm_…` matrix or the latest matrix as Markdown.
Does it touch my real ~/.dsh profile?
No. Every drive happens in a fresh `mkdtemp` root under the OS temp directory — throwaway `DSH_HOME`, workspace and redirected pnpm store — and `isolation.hostHomeTouched` is always `false`. Cleanup only touches directories this plugin registered, and it renames them into quarantine before deleting.
Why does the smoke stage stop at boot-ok?
The boot check itself needs no credentials, but finishing a task needs model credentials. Without them the plugin reports `boot-ok` instead of claiming a `pass`; forward credentials by naming them in `forwardEnv` (e.g. `DEEPSEEK_API_KEY`) — only variable names are forwarded and values never reach the logs.
How do I remove it, and where do reports live?
Remove it with `dsh plugin --profile web remove dsh-test-drive`, or delete the row from the profile patch. Reports go to the `test_drive` storage domain (`runs`, `matrices`, latest-matrix pointer); without a `storageDomain` nothing is persisted and `drive_report` errors honestly.
07Related DSH workflows
dsh-our-free-model
by ebony-vinyl
Adds model choices, availability checks, usage panels, and a local OpenAI-compatible forwarder.
dsh-routing-suite
by yjh051108
dsh-routing-suite — injector + router-standard kit: install the runtime injector first, then the task-aware reasoning-mode router preset (measured P1-P23).
dsh-ops
by t-auto
Run Bash and PowerShell commands, search and edit local files, and manage long-running background jobs from DSH.
dsh-connect-workbuddy
by dingminhua
Connect locally signed-in WorkBuddy models to DeepSeek Harness with a read-only credits overview and model management.
08Data and sources
`dsh-test-drive` 把「这个插件到底装不装得上、启不启得来」变成一条六段流水线:`dsh plugin add` 装进一个一次性 `DSH_HOME`
npm 通道的预构建包不需要构建许可。重启 profile 后,即可在会话中使用 `test_drive` / `/testdrive`。
This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-11-23. Found an error? Submit a correction.
Best DeepSeek Harness Plugins
Twelve plugins worth installing first — picked from the whole catalog, across every category.
