DeepSeek Harness 插件健康檢查工具:dsh-perfscope

前言

DSH(DeepSeek Harness)的插件生態正在快速擴張。安裝幾十個插件後,容易出現問題:哪些插件實際上是損壞或靜默失敗的?哪些拖慢了會話?是否運行了重複或衝突的插件?目前缺乏統一的健康檢查機制。dsh-perfscope 旨在填補這一空白,提供一鍵式的健康檢查與評分。

插件定位

dsh-perfscope 是一個本地掃描工具,用於檢查已安裝插件的健康狀況。它提供 0-100 的健康分數,並允許生成報告和執行安全修復。這是一個開源項目(MIT 許可證),由 Evhye38496 維護。

核心能力

  • 健康評分:提供 0-100 的健康分數。
  • 本地掃描:僅本地掃描,數據不離開機器。
  • 一鍵修復:修復寫入 cordis.patch.yml,並提供一鍵撤銷功能。
  • 離線分析:支持離線 JSONL 會話分析。
  • 報告生成:支持 Markdown 和 HTML 格式報告。
  • Web UI:提供設置面板。

安裝與啓用

使用官方命令安裝插件:

dsh plugin --profile web add dsh-perfscope

安裝後重啓 dsh web,在設置中找到 dsh-perfscope。

命令行使用

在命令行中掃描並生成報告:

npx dsh-perfscope scan --profile web --format markdown --out report.md
npx dsh-perfscope scan --profile web --format html --out scorecard.html

對問題插件執行修復(禁用)並撤銷修復:

npx dsh-perfscope fix --profile web --disable broken-plugin
npx dsh-perfscope fix --profile web --undo

技術細節

  • 環境要求:Node.js 版本需在 ^22.19.0 或 24+。
  • 目標版本:適配 dsh 0.1.0-rc.8。
  • 運行方式:讀取本地插件樹和遙測數據,不涉及數據上傳。
  • 項目性質:非官方開源項目。

參考資料

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

小夜