DSH Plugins
返回列表
🖥️

dsh-ghCLI-manager

客户端 更新于 2026.08.16

在终端中运行以下命令:

dsh plugin install sweven-tears/dsh-ghCLI-manager

将以下提示词粘贴到 DeepSeek Harness 对话框中:

在 DeepSeek Harness 中执行 dsh plugin install sweven-tears/dsh-ghCLI-manager 即可安装,插件源码位于 https://github.com/sweven-tears/dsh-ghCLI-manager 。

插件介绍

Writing code in DSH means cloning repos, pushing branches, opening PRs, and switching GitHub accounts almost every day, yet those actions are scattered across a terminal and a browser, and on Windows the missing system-proxy support for git can turn every push or clone into a timeout spiral. dsh-ghCLI pulls the entire GitHub workflow into the DSH settings page so you can handle it in one place, inside the GUI.

The plugin covers three layers. First, installation detection and self-healing: one-click install, manual path specification, PATH injection, and a dedicated Windows network-proxy fixer that writes the system proxy into git config and verifies connectivity, solving the classic "the browser connects fine but git cannot reach GitHub" problem. Second, multi-account authentication: token-based login (including enterprise GH hosts), account switching, logout, token refresh, and read/write access to the global git user.name and user.email. Third, high-frequency repository operations: clone (with shallow-clone and non-empty-directory protection), push, pull, create PR, open the remote page, fork, star a remote repo, and create a new repository. Under the hood it invokes the local gh and git binaries by resolved absolute path, adds zero extra npm dependencies, executes every command via explicit argv with no shell injection surface, and supports cancellation plus timeout guards for long-running tasks.

It is a fit for developers who use DSH as their daily coding environment and interact with GitHub frequently, especially on Windows where proxy and PATH issues tend to interrupt flow. Authentication tokens are written only to the local gh credential store and never leave the machine over the network.

使用场景

  • 在 DSH 设置页一键完成 gh 安装检测、PATH 修复和代理自愈,无需切换到终端
  • 多账户 GitHub 环境下快速切换 Token、刷新凭证并同步 Git 用户身份
  • Windows 代理下 git 无法连接 GitHub 时自动读取系统代理并写入 git 配置

适合人员

  • 以 DSH 为日常编码环境、频繁与 GitHub 交互的开发者
  • 在 Windows 上因代理或 PATH 问题被 git 操作阻塞的工程师
  • 管理多个 GitHub 账户(含企业版)需要频繁切换身份的用户