dsh-github-hub: Log in to GitHub, Search Plugins, and One-Click Install within DSH

Preface

DeepSeek Harness (DSH) splits capabilities into installable plugins and bundles. Day-to-day, you still have to go to GitHub or npm yourself to find dsh-plugin, verify that package.json is installable, and then use dsh plugin add or the plugin page in settings to install into the current profile. The steps are scattered, and private registries and local accelerators often cause headaches around TLS or git/pnpm.

Below we introduce the client plugin dsh-github-hub published by maintainer GuaPiaaaaa (repo GuaPiaaaaa/DSHplugin). It provides a native panel in the DSH desktop app (host side + browser side) and uses the same path as Settings → Plugins and dsh plugin add to complete discovery, pre-flight checks, and installation.

What Is This

dsh-github-hub is a GitHub plugin hub for the current DSH profile: sign in to GitHub, keep sign-in records, search deepseek-harness (dsh-plugin) packages on GitHub / npm, and install them with one click. package.json declares dsh.bundle.patch and dsh.client (platform: web), making it a bundle plugin with a Web client. Licensed under MIT.

Community directory page: SkillHub — GuaPiaaaaa/DSHplugin (independent site, with no official affiliation to DeepSeek / High-Flyer).

Core Features

Discover

  • Search repositories on GitHub by topic, name/description/README, etc.; search packages on npm by keywords:dsh-plugin.
  • Inspect: read the repository’s package.json and determine whether it is truly an installable DSH plugin (does it declare dsh.bundle.patch, does it contain the dsh.client half).
  • Install: install using the pnpm path that comes with the current profile, with real-time logs and cancellation support; if pnpm blocks lifecycle scripts, the panel offers “allow blocked build scripts and retry”.

Installed

Lists the bundle and plugin entries of the current profile, supports enable / disable / remove, and shows load errors and read-only reasons.

Account

  • Personal Access Token (recommended): create at GitHub Token settings; recommended scopes include read:user; add repo to access private repositories. The token is stored in the DSH credential service (record name dsh-github-hub/github, type grant) and is not sent to the page; the UI only shows sign-in state, avatar, scopes, and the last four characters of the token.
  • OAuth Device Flow: provide your own OAuth App client_id (no client secret needed), initiate the flow in the panel, then enter the one-time code at https://github.com/login/device.

Sign-in / sign-out history is persisted and can be cleared.

Diagnostics

Outputs connectivity reports for GitHub API, npm, DNS, hosts file, git, and pnpm, as well as the TLS trust chain used by the current request.

Host Read-Only Interfaces (troubleshooting)

All are under ctx.webServer’s /dsh-github/*, require a browser session cookie, and are constrained by loopback (or explicitly trusted Host), cross-site prohibition, and write requests being local-only.

Endpoint Purpose
GET /dsh-github/state Account, settings, sign-in history, trust chain, client bundle graph state
GET /dsh-github/health Connectivity checks and explanations
GET /dsh-github/client Client graph rev and real URL, compared with the rev computed from the on-disk file (a mismatch means changes have not been loaded yet)
GET /dsh-github/search?source=github\|npm&q=… Search
POST /dsh-github/repo/package Read a repository’s package.json and make a determination
POST /dsh-github/inspect Pre-flight check a spec via the real plugin manager (includes a GitHub connectivity check, does not install)

Installation and Activation

Run the official install command in the target profile (see the README for details):

dsh plugin --profile desktop add dsh-github-hub

For local development, you can link a directory:

dsh plugin --profile desktop add link:/absolute/path/to/dsh-github-hub

After installation you must restart the desktop app (refreshing the page is not enough): DSH collects the startup injection table once at host startup, and the new plugin’s client bundle only enters the manifest on the next startup; the same applies to the Web profile, where the dsh web process must be restarted. After restarting, a git branch icon will appear in the left sidebar; click it to open the panel in the central area.

Typical Usage

  1. Install and restart the desktop app, then open the sidebar git branch icon to enter the panel.
  2. Sign in to GitHub in Account using a PAT or Device Flow.
  3. In Discover, choose the GitHub or npm source to search, run Inspect on candidate repositories, and only Install after the package.json determination passes.
  4. Watch the pnpm logs during installation in the panel; if blocked by the lifecycle script policy, follow the prompt to allow and retry.
  5. Manage enabling and removal of installed bundles / plugins in Installed.
  6. When network issues occur, open Diagnostics, or visit GET /dsh-github/health to compare explanations for GitHub, npm, git, pnpm, and the TLS chain.

Installing from GitHub uses pnpm’s github:owner/repo (git) transport, so git must be on PATH; the plugin manager performs a bounded connectivity check before launching pnpm.

Data and Local Proxies

Item Location
GitHub token DSH credential service (dsh-github-hub/github)
Settings and sign-in history (not including the token, up to 200 entries) $DSH_HOME/.dsh-github-hub.json
Installation logs $DSH_PROFILE_DIR/.plugin-manager/logs/operation-*/pnpm.log

If you use Watt Toolkit / Steam++ etc. to point github.com, api.github.com, raw.githubusercontent.com to a local reverse proxy, Node may not trust its CA. The plugin tries the following chain: default trust chain → default roots + system root store (similar to node --use-system-ca) → trust the local interceptor when the peer actually resolves to loopback and the setting is enabled (the UI will indicate tls: local-interceptor).

Use Cases and Notes

Suitable for desktop profile users who frequently look for DSH plugins on GitHub / npm, want to stay consistent with the official plugin management path, and need to handle sign-in and connectivity issues within the same interface.

Please note:

  • The sidebar icon of newly installed plugins also often requires an app restart to appear (consistent with DSH collecting the injection table at startup).
  • Installing third-party plugins executes third-party host code within the current DSH process; the panel displays repository metadata and package.json determinations and does not perform source-code auditing. You should review the repository, license, and risks yourself before installing.
  • Removing a bundle does not delete data files written by third-party plugins under $DSH_HOME.

Conclusion

dsh-github-hub consolidates “search plugins → pre-flight check → install → manage installed items” into the DSH client and aligns with official plugin management behavior for PAT / Device Flow, diagnostics, and read-only HTTP interfaces. For details, you can refer to the repository README and the Chinese version README.zh.md.

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

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

Xiaoye