DeepSeek Harness 插件

sakanamaru/dsh-minato

Star 数 ★ 0 分类 用量与计费 收录于 2026-10-17

可选的只读桥接插件:把 dsh 的会话与 token 实时统计写成一份 JSON 快照,供独立的 dsh-minato 工具箱读取.

安装

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:sakanamaru/dsh-minato

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

该插件的 README 只有英文版本。

dsht

A single self-contained Windows executable that looks after a DeepSeek Harness install from the outside: it diagnoses the failures that leave the desktop app unable to update or start, and it will grow a small always-on-top status overlay.

Unofficial. Not affiliated with DeepSeek. No telemetry, no network calls.

Why an external tool at all

dsh plugins run inside dsh, which means they are unavailable exactly when they are needed most: when the app will not start, when an update rolls back, or when the installer cannot replace files that are still held open. Those failures happen outside the plugin sandbox, so the tool that explains them has to live outside it too.

The upstream reports this tool targets: discussion #3959 (the updater replaces node.exe before the backend exits) and discussion #12988 (MoveFileExW fails with Windows error 32, ten retries, then rollback).

Commands

dsht diag [--json] [--dir <path>] [--updater <path>]
    Read-only diagnosis of a desktop install.

dsht port [--port <n>]
    Is the web port listening, and which dsh processes are running.

dsht hud [--position X,Y] [--scale 100-300]
    Always-on-top status overlay: sessions, context pressure, tokens, project.
dsht hud --preview out.png      render the same scene to an image
dsht hud --dump                 print the four lines and the snapshot path
dsht hud --selftest             verify the window contract

dsht scan|repair|backup|profile|log
    Reserved. They exit with code 3 today.

Exit codes: 0 no problems found, 1 problems found, 2 usage, 3 unsupported.

What a diagnosis looks like

dsht diag
  install : C:\Users\<user>\AppData\Local\Programs\DeepSeek Harness
  version : 0.2.2-rc.5  (electron 44.7.0)
  updater : Pending  staged=0.2.2-rc.5

  [ok] main-exe       Main executable present
  [..] app-running    The app is running (10 process(es))
                      Normal. If an update fails with a file-in-use error, quit the app first,
                      including its tray icon.
                      -> Quit DeepSeek Harness from the tray icon, then retry the update.
  [ok] updater-staged A staged installer is present and not newer than the installed build

  verdict: no problems detected (diagnosis only; start the app to confirm it works)

Build and test

dotnet build src/Dsht.Toolbox/Dsht.Toolbox.csproj -c Release
dotnet run --project tests/Dsht.Toolbox.Tests -c Release

# Self-contained single file, no runtime needed on the target machine
dotnet publish src/Dsht.Toolbox/Dsht.Toolbox.csproj -c Release -r win-x64 `
  --self-contained true -p:PublishSingleFile=true -p:EnableCompressionInSingleFile=true -o out

The rules this project runs on

docs/SCOPE.md is a contract, not a wish list: at most eight subcommands, each with core logic under 300 lines and at least one assertion that fails if the behaviour disappears, and anything without usage evidence after eight weeks is deleted.

docs/ARCHITECTURE.md explains the shape (pure core, one side-effect interface, one renderer), and docs/REVIEW.md is the reviewer's entry point, including how to exercise the repair path against a fixture instead of a live install.

Status

diag, port and hud work; the five other commands are reserved and exit 3.

The overlay reads %USERPROFILE%\.dsh\shio-bridge\sessions.json, which the optional dsh-minato-bridge plugin already writes every three seconds - see docs/SNAPSHOT.md. Without that plugin the overlay shows unknown rather than hiding the fact.

The repair path was designed, implemented, reviewed, and withdrawn: four independent reviews found that it could delete its own installer, target a sibling installation, and report success without proving repair. The design and the requirements for a future attempt live in docs/REPAIR-DESIGN.md. Nothing in this build changes the machine.

License

MIT

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。