Apache-2.0 的 DSH 外掛:把目標外掛裝進一次性 `DSH_HOME`,核對 patch 層與啟動、選用時斷言具名工具,再解除安裝並清理,輸出 `dsh-test-drive/v1` 結構化記錄。
DSH 整合
原生執行環境
作者聲明
安全稽核
未稽核
最後核實
2026-11-23
授權條款
Apache-2.0
01它能幫你完成什麼?
在採用一個 DSH 外掛之前,確認它到底裝得上、bundle patch 層確實生效、啟動得起來、也解除安裝得乾淨
一條 `dsh-test-drive/v1` 結構化記錄:各階段狀態、結束代碼、耗時、去識別化後的輸出尾端,以及 `pass` / `fail` / `partial` / `unknown` 總判定
不想再靠「裝一下看看」拍板的 DSH 使用者與外掛作者
一次批次實測多個候選外掛並留下通過/失敗矩陣
一個 `drive-batch` 背景工作,串流輸出最後給出矩陣報告(JSON + Markdown)與矩陣 id
需要機器可讀結果列的目錄維護者與評分流程(README 寫明下游 dsh-score 消費這份契約)
證明某個具名工具或 `/指令` 在安裝後真的可呼叫,而不只是啟動成功
只有當持久工作階段日誌記下這次呼叫、且觀察輸出包含期望字面值時,`stages.capability.status` 才是 `observed`
需要拿到自己工具介面在 DSH 裡確實可用的證據的外掛作者
02如何將外掛接入 DeepSeek Harness?
先決條件
- PATH 上要有一個能啟動第二個 headless 程序的 `dsh` CLI:DSH Desktop 的 `dsh.CMD` launcher 只允許 `dsh plugin …`、`--dump-config` 與 `--version`,請把 `config.dshBin` 指向 npm/pnpm 安裝的 `dsh`
- PATH 上有 `pnpm`,Node 為 `^22.19 || >=24.9`(README 開發段的口徑)
- 安裝 registry / git 目標時,子程序需要網路存取
- 只有要跑能力斷言時才需要 `DEEPSEEK_API_KEY`;缺少時該階段記為 `skipped`,絕不算失敗
安裝步驟
- 01
$ npm 通道安裝:`dsh plugin --profile web add dsh-test-drive`(已發佈的預建置套件,不需要建置許可)
- 02
或走 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
$ git 通道首次 `add` 會因 pnpm 攔下該套件的 `prepare` 建置而失敗:把 pnpm 印出的精確鍵(`allowBuilds` 下的 `'dsh-test-drive': true`)複製進 profile 的 `pnpm-workspace.yaml` 後重跑
- 04
預設設定即可使用;只有要跑能力斷言時,才在 profile patch 加上帶 `capability.*` 與 `forwardEnv` 的 `test-drive` 列
- 05
重新啟動 profile,工作階段裡就能使用 `test_drive` / `/testdrive`
驗證整合成功
- 重新啟動後執行 `dsh --profile web --dump-config | grep -A3 'id: test-drive'`,確認這一列已載入
- 對一個已知目標執行 `test_drive({ target: "dsh-click" })`,看到 `verdict pass` 與 `tdr_` 開頭的執行 id
復原
- 執行 `dsh plugin --profile web remove dsh-test-drive`,或從 profile patch 刪掉該列
03DSH 整合程度與能力邊界
在 DSH profile 中註冊 `test_drive`、`drive_report` 兩個工具與 `/testdrive` 指令;每次實測都把目標裝進一次性 `mkdtemp` DSH_HOME,啟動第二個 headless DSH 程序,再解除安裝並清理
`test_drive`:單一目標六段流程
git 規格(`github:owner/repo#sha`、`git+https://…`)、npm 套件名、本機路徑或 `.tgz` 壓縮檔,可選帶 `capability { kind, name, args, expect }`→同步回傳 `dsh-test-drive/v1` 記錄;傳 `background: true` 時回傳 `{ kind: 'background', jobId }`
建立一次性 `mkdtemp` 根(DSH_HOME、工作資料夾、重導向的 pnpm store),並在每條結束路徑上先隔離改名再刪除`/testdrive`:批次矩陣
以空格或逗號分隔的目標清單(`maxBatchTargets` 預設 20)→一個 `drive-batch` 背景工作,最後一列給出供 `drive_report` 使用的矩陣 id
預設序列執行(`batchConcurrency: 1`),避免多個實測爭用同一個 pnpm store`drive_report`:回看歷史記錄
`tdr_…` 單次記錄 id、`tdm_…` 矩陣 id,或不傳 id 取最新矩陣→以 Markdown 呈現的記錄或矩陣
依賴選用的 `storageDomain`;沒有該領域時報告不落地,`drive_report` 會如實報錯能力斷言階段
`capability { kind: 'tool' | 'command', name, args, expect }`,目標需要憑證時再搭配 `forwardEnv`→只有持久工作階段日誌記下這次呼叫、且觀察輸出包含 `expect` 時才是 `observed`
沒有憑證進入測試 profile 時降級為 `skipped`,絕不算 `fail`
04適合誰?何時不該用?
適合
- 不想再靠「裝一下看看」拍板的 DSH 使用者與外掛作者
- 需要機器可讀結果列的目錄維護者與評分流程(README 寫明下游 dsh-score 消費這份契約)
- 需要拿到自己工具介面在 DSH 裡確實可用的證據的外掛作者
不適合
- DSH Desktop 不是受支援的測試宿主:`dsh.CMD` launcher 只允許 `dsh plugin …`、`--dump-config` 與 `--version`,第二次 headless 啟動會依政策被拒絕,而不是含糊地報成 npm shim 解析失敗。請把 `config.dshBin` 指向 npm/pnpm 安裝的 `dsh` CLI,或一般 Node + dsh JS 入口。
- `allowBuilds` 是真實權限:放行 git 套件的 `prepare` 建置等於在安裝時執行該套件的程式碼。作用範圍雖限於一次性 profile,仍應只測你信任的目標並固定 commit。
05相容性、維護與安全提醒
- DSH Desktop 不是受支援的測試宿主:`dsh.CMD` launcher 只允許 `dsh plugin …`、`--dump-config` 與 `--version`,第二次 headless 啟動會依政策被拒絕,而不是含糊地報成 npm shim 解析失敗。請把 `config.dshBin` 指向 npm/pnpm 安裝的 `dsh` CLI,或一般 Node + dsh JS 入口。
- `allowBuilds` 是真實權限:放行 git 套件的 `prepare` 建置等於在安裝時執行該套件的程式碼。作用範圍雖限於一次性 profile,仍應只測你信任的目標並固定 commit。
- 冒煙階段要有模型憑證才能到 `pass`;沒有憑證時外掛如實回報 `boot-ok`,所以啟動乾淨不等於任務真的跑完。
- 組合裡沒有 `storageDomain` 就什麼都不持久化:外掛記錄原因後停用持久化,讓 `drive_report` 如實報錯而不是假裝成功。
Apache-2.0 · 活躍維護(最近推送 2026-11-18,最新發行 v0.3.28)
06常見問題
要怎麼把 dsh-test-drive 裝進 DeepSeek Harness 的 profile?
npm 通道執行 `dsh plugin --profile web add dsh-test-drive`;要最新的 main 就用 `dsh plugin --profile web add github:PerryLink/dsh-test-drive#<commit-sha>`。git 通道首次 `add` 會被 pnpm 攔下 `prepare` 建置而失敗,把 pnpm 印出的鍵寫進 profile 的 `pnpm-workspace.yaml` 的 `allowBuilds` 再重跑,最後重新啟動 profile。
它替 DSH 增加了什麼?
兩個工具與一條指令:`test_drive` 跑單一目標的完整流程(傳 `background: true` 時回傳 `{ kind: 'background', jobId }`),`/testdrive` 把空格/逗號分隔的目標清單當成一個 `drive-batch` 工作批次跑並在最後一列給出矩陣 id,`drive_report` 把 `tdr_…` 單次記錄、`tdm_…` 矩陣或最新矩陣呈現為 Markdown。
它會讀寫我真實的 ~/.dsh 嗎?
不會。每次實測都在 OS 暫存目錄下全新的 `mkdtemp` 根裡進行,`DSH_HOME`、工作資料夾與 pnpm store 都是一次性的,`isolation.hostHomeTouched` 恆為 `false`。清理只處理本外掛登記過的目錄,先改名為隔離目錄再刪除。
為什麼冒煙階段常常只到 boot-ok?
啟動檢查本身不需要憑證,跑完一句任務才需要模型憑證。沒有憑證時外掛不會把沒驗證過的事情記成 `pass`,而是如實回報 `boot-ok`;把變數名明確寫進 `forwardEnv`(例如 `DEEPSEEK_API_KEY`)即可轉送,值永不進日誌。
怎麼解除安裝,報告又存在哪裡?
執行 `dsh plugin --profile web remove dsh-test-drive`,或從 profile patch 刪掉該列。報告寫進 `test_drive` storage domain(`runs`、`matrices` 與 latest-matrix 指標);組合裡沒有 `storageDomain` 時不持久化,`drive_report` 會如實報錯。
07相關的 DSH 工作流程
dsh-our-free-model
作者 ebony-vinyl
在 dsh 裡裝上這個外掛即可,無需登入、註冊或填 API Key,就能使用包括 DeepSeek V4.1 Flash、Kimi K3 在內的前沿模型——完全免費,不限量。 All you do is install this plugin in dsh: no login, no sign-up, no API key — the frontier models are just there, DeepSeek V4.1 Flash and Kimi K3 among them. Completely free, with no usage cap.
dsh-routing-suite
作者 yjh051108
DeepSeek Harness(dsh)路由套件:先裝執行時注入器,再載入任務感知的推理模式路由預設(已實測 P1-P23)。
dsh-ops
作者 t-auto
A toolkit for low-level operations in DSH, designed to reduce token usage and task execution time / DSH 底層操作工具外掛,旨在減少 Token 消耗與任務耗時
dsh-connect-workbuddy
作者 dingminhua
將本地登入的 WorkBuddy 模型接入 DeepSeek Harness,並提供只讀額度概覽與模型管理。
08資料與來源
`dsh-test-drive` 把「这个插件到底装不装得上、启不启得来」变成一条六段流水线:`dsh plugin add` 装进一个一次性 `DSH_HOME`
npm 通道的预构建包不需要构建许可。重启 profile 后,即可在会话中使用 `test_drive` / `/testdrive`。
此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-11-23。發現錯誤?提交更正。
最佳 DeepSeek Harness 外掛
從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。
