DeepSeek Harness Plugin

sakanamaru/dsh-minato

Stars ★ 0 Category Usage & Billing Added 2026-10-17

Optional read-only bridge plugin that publishes live dsh session and token statistics as one JSON snapshot for the standalone dsh-minato toolkit to read.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

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

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

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

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.