dshbase

插件目录 / UI & Skins / dsh-git-workbench

dsh-git-workbench

已验证 · 实测可装 FlutterSoul

✓ 持续维护 基于 9 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
—语言
2026-08-15最近推送
跨平台平台

功能简介

Git and GitHub pull-request workbench for DeepSeek Harness, with agent tools and an integrated Web UI.

✅
我们的评价
可用 — 实测通过,早期项目

Git and GitHub pull-request workbench for DeepSeek Harness, with agent tools and an integrated Web UI. 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-git-workbench

Git and GitHub pull-request workflows for DeepSeek Harness, exposed both as model tools and as an integrated Web sidebar workbench.

Status: experimental. DeepSeek Harness is currently a developer preview and its plugin interfaces may change. This release targets the exact 0.1.0-rc.6 DSH package line.

简体中文

What it provides

  • Repository status, staged/unstaged diffs, history, and local branches
  • Stage, unstage, safe restore, commit, branch create/switch/safe-delete
  • Fetch, fast-forward pull by default, and push without force options
  • GitHub pull requests: list, view, create, edit, checkout, merge, and comment
  • A DSH Web sidebar panel for changes, text-file editing, commits, branches, history, and pull requests
  • Model-facing tools for the same workflows: git_status, git_diff, git_log, git_stage, git_commit, git_branch, git_sync, and github_pr

This project aims for Git/GitHub workflow parity with coding agents such as Codex. It does not claim to reproduce unrelated proprietary Codex features.

屏幕截图 2026-08-15 163354

Requirements

  • Node.js ^22.19.0 or >=24
  • DeepSeek Harness 0.1.0-rc.6
  • Git on PATH
  • GitHub CLI on PATH and authenticated with gh auth login for pull-request features

The plugin never stores GitHub tokens. Authentication remains owned by Git and gh.

Install from GitHub

Until an npm release exists, install from a GitHub repository:

dsh plugin --profile web add github:FlutterSoul/dsh-git-workbench

Git-source installation runs this package's prepare build. pnpm 10 and later intentionally reject that on the first attempt. Review the repository, then copy the exact package key printed by DSH into $DSH_HOME/profiles/web/pnpm-workspace.yaml and retry. With pnpm 11.19 or later, the repository-scoped form is:

allowBuilds:
  'dsh-git-workbench@git+https://github.com/FlutterSoul/dsh-git-workbench.git': true

This grants build permission only to this Git repository; do not disable pnpm's build safeguards globally. For reproducible installations, append a trusted commit or tag to the GitHub specifier.

Start DSH Web:

dsh --profile web

The Git entry appears in the sidebar footer. It follows the current task's registered workspace.

Configuration

The bundle inserts the plugin with defaults through cordis.patch.yml. Configure its Loader entry in the DSH profile when non-default values are needed:

Option Default Purpose
gitBinary git Git executable
ghBinary gh GitHub CLI executable
commandTimeoutMs 120000 Per-process timeout
maxOutputBytes 4194304 Maximum captured command output
maxFileBytes 1048576 Maximum file size accepted by the editor
maxRequestBytes 2097152 Maximum Web API request body
defaultRemote origin Default fetch/pull/push remote
defaultPullMode ff-only ff-only, rebase, or merge
pushBeforePrCreate true Push the head before creating a PR
mutationApproval all Model-tool approval policy: all, destructive, or none
allowedRoots [] Additional absolute roots the browser UI may operate in

The UI accepts registered DSH workspaces by default. allowedRoots is for deployments that intentionally expose additional workspace trees.

Safety model

  • Commands use spawn with shell: false; arguments are never concatenated into a shell command.
  • Git and GitHub CLI interactive prompts and pagers are disabled.
  • Mutations are serialized per repository.
  • Model-initiated mutations request approval by default. A missing approval service fails closed.
  • Browser calls require same-origin requests and are constrained to registered/configured workspaces.
  • Text-file saves use an expected SHA-256 hash, preventing silent overwrite after concurrent edits.
  • Force push, forced branch deletion, git clean, arbitrary Git arguments, and arbitrary gh arguments are not exposed.
  • “Discard” only calls git restore --worktree for explicit tracked paths; it never deletes untracked files.

UI button clicks are direct user actions. The UI asks for confirmation before discard, branch deletion, and merge.

Development

pnpm install --ignore-scripts
pnpm check
pnpm pack --dry-run

For a local DSH profile:

dsh plugin --profile web add ./path/to/dsh-git-workbench
npx @deepseek-ai/dsh web

The test suite creates disposable Git repositories and does not contact GitHub. Live PR verification requires a repository and authenticated gh account under your control.

Architecture

DSH agent tools ─┐
                 ├─ GitWorkbench ── git / gh child processes
DSH Web panel ─ API ┘
       │
       └─ sidebar.footer.action client slot

src/git.ts owns all Git/GitHub operations and path validation. src/tools.ts is the model-facing adapter. src/api.ts is the constrained same-origin Web adapter. src/client/ contains the sidebar UI.

Scope and limitations

  • Text editing is UTF-8 only. Binary files and files over maxFileBytes remain diff-only.
  • GitHub operations currently use GitHub CLI and GitHub-hosted pull requests; other forges are not implemented.
  • Conflict resolution is shown through status and file editing, but no semantic merge editor is included.
  • The plugin does not create repositories, rewrite history, manage credentials, or bypass branch protection.

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-git-workbench」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:FlutterSoul/dsh-git-workbench

Headless(CLI)profile:

dsh plugin --profile headless add github:FlutterSoul/dsh-git-workbench

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

UI & Skins 里更多

浏览全部 7819 个插件 →