dsh-git: Git Operations via Panel in DeepSeek Harness

Preface

When coding or running agents in DSH, version control often requires switching to a terminal or an external IDE—checking branches, browsing history, viewing diffs, or handling worktrees—which creates a disconnect from the current workspace context. The community plugin dsh-git (maintainer cyrusgogogo) integrates Git operations directly into the host interface. It features a compact, IDE-style bottom panel that adapts to the DSH light/dark theme and interfaces with branches, commit history, commit graphs, file diffs, and worktree management for the currently registered workspace. It is categorized as a client-side plugin; at the time of writing, it has 0 GitHub stars. The implementation details are based on the public README and the repository’s package.json (version 0.1.2, MIT).

What is this

dsh-git is a native Git client plugin for DeepSeek Harness. It does not replace the system git command but drives real Git on the machine where the DSH process is running via the host’s registered Cordis services (compatible with Cordis ~4.0.4 and the public contracts of DSH 0.2.0-rc.2). On the Windows desktop version, a Git button is added to the right of “App / Edit” in the title bar to open the bottom panel; standard browsers or incompatible hosts retain the entry in the top-right corner of the session.

In the ecosystem, DSH emphasizes “everything is a plugin.” The SkillHub directory page and the GitHub repository serve as community sources, with no official affiliation to DeepSeek or High-Flyer.

Core Features

Summarized below according to the “Implemented” section of the README; these are all capabilities self-reported by the plugin.

Interface and Entry Points

  • The bottom panel height is adjustable via dragging or keyboard, and supports maximize and collapse; it supports multiple independent Git view tabs.
  • Surfaces, borders, and text colors are derived from DSH host tokens; accent colors, commit graph, and diff coloring adapt to the light/dark theme.
  • A three-column repository view: branches and changes on the left, commit history and a commit graph with real parent-child relationships in the center, and the changed file tree, commit body, author, time, and references on the right.
  • If the host lacks a public bottom-panel slot, the panel is implemented as a fixed, resizable bottom overlay via the public shell.overlay, without faking non-existent APIs.

Branches, History, and Daily Git

  • Branch dropdown: search local/remote branches; update, commit, push, create branch, fetch remote; confirmation is required before checkout.
  • Flat history filtering: filters for branch, user, and date (today, 7/30/90 days, recent year) are combinable, with a one-click clear option.
  • Daily operations: stage/unstage file-by-file or all, commit staged content, branch create/rename/safe delete, merge, rebase, fast-forward-only update, set upstream, non-force push, fetch remote, remote branch deletion.
  • Cherry-pick: apply selected normal commits to the current local branch in a clean workspace; supports continuing or aborting after conflicts; does not guess the primary parent of merge commits.
  • Does not provide destructive shortcuts such as force push, reset --hard, or branch -D.

Worktrees and Multi-view

  • The + icon next to a branch allows choosing either “GIT Workspace” (a new repository view) or “Worktree” (displaying real git worktree list).
  • Worktrees: create, view, open directory within the plugin, copy path, lock/unlock, safe remove; protects the main worktree, the currently viewed directory, and locked or modified worktrees.
  • “Open” only switches the repository view directory for this plugin and does not modify the DSH session’s workspace or cwd.

AI Commit and Settings

  • AI Commit: automatically stages all current unstaged changes (including new files, deletions, and remaining partially staged changes) first. It generates an editable commit message after selecting all files for preview; the user must explicitly click “Commit” or “Commit & Push.” Diffs and specifications have size and timeout limits; keys are managed by the DSH model configuration, and settings are saved only in the current browser.
  • Git Settings: optionally select DSH-registered models, edit Conventional Commits specifications, and configure/record shortcuts for commit, AI generation, push, and fetch.

Initialization and Empty States

  • Registered workspaces not using Git can execute git init --initial-branch=main after confirmation; existing .git folders (including corrupted metadata) will not be overwritten.
  • Non-Git directories, Git not installed, directory disappearance, permission failures, etc., will display distinct friendly prompts.

Explicitly Not Covered Capabilities

The README states: no stash, revert, cherry-picking merge commits, or complex interactive rebase; no image comparison for binary diffs; while the view is visible, local status refreshes every 10 seconds, but it does not automatically fetch/push.

Installation and Activation

The plugin is installed as a bundle: the dsh.bundle.patch in package.json inserts a dsh-git line into the specified profile. <your-profile> must be replaced with the actual profile name (can be confirmed via directory names in $DSH_HOME/profiles/ in the desktop app).

Requires Node.js 22+, pnpm, and Git:

git clone https://github.com/cyrusgogogo/dsh-git.git
cd dsh-git
pnpm install --frozen-lockfile
pnpm run build

dsh plugin --profile <your-profile> add .

You can also install after packaging:

pnpm pack
dsh plugin --profile <your-profile> add ./dsh-git-0.1.2.tgz

Method 2: Install Directly from GitHub

dsh plugin --profile <your-profile> add github:cyrusgogogo/dsh-git

Installing from GitHub pulls the source code and executes the prepare build on the local machine; if pnpm ≥10 refuses to run build scripts, you need to allow dsh-git builds in the profile’s pnpm-workspace.yaml as prompted. Trusted sources can be locked to a specific commit: github:cyrusgogogo/dsh-git#<sha>.

Post-installation Check and Uninstallation

dsh --profile <your-profile> --dump-config

If the host indicates restart-required, you need to restart DSH and refresh the web page. To uninstall:

dsh plugin --profile <your-profile> remove dsh-git

The plugin will not modify DSH’s running configuration or restart the host on its own; it is advisable to read the source code and the MIT license before installation. Git write operations are executed on the host machine with the permissions of the current dsh process; hooks, SSH, and credential helpers may still trigger network access or execute code, so only use with trusted workspaces.

Typical Usage

  1. Select a workspace/session in DSH, click Git to open the panel; the panel follows the main session’s registered workspace by default, but you can also explicitly select a directory in the top right.
  2. For non-Git directories, choose Initialize Git Repository; click the branch in the sidebar to filter history, double-click or right-click “Checkout” to switch branches.
  3. Filter by branch, user, and date at the top of the commit graph; click a commit to see the file tree, and click a file to see a read-only unified diff.
  4. Commit changes… opens a manual commit dialog, supporting select all, select none, and batch staging; normal commits only include staged content.
  5. AI Commit (default Ctrl+Shift+Enter, effective only when the Git panel is focused) follows the README workflow: stage, generate description, then confirm commit or commit and push.
  6. + → Worktree to manage worktrees; in a clean workspace, Cherry-pick can be used for normal commits.

If the model list in AI settings reports “Invalid Git request parameters,” the README suggests completely quitting and restarting DSH (including the tray) and confirming that the profile links to a new build containing AI functions, rather than relying solely on the old 0.1.2 release tarball. Limitations are subject to the README.

Use Cases and Notes

Suitable for: Users who primarily complete agent and workspace development within DSH and want to manage branches, history, diffs, worktrees, and routine push/pull without switching to a terminal frequently; when AI assistance for Conventional Commits descriptions is needed and a model is registered in DSH, AI Commit can be used (requires accepting the data boundary of “staging all current changes before triggering”).

Notes:

  • The current README states that physical machine verification was primarily completed on Windows; macOS/Linux paths exist but have not been physically verified.
  • AI Commit modifies the staging area; cancelling the preview does not automatically unstage. The executor is the host machine’s Git, not the model sandbox.
  • Installing from GitHub implies allowing the package to execute build scripts on the local machine during installation; please only authorize trusted sources.

Conclusion

dsh-git embeds a Git panel into the DSH workflow: three-column history and diffs, worktrees, restricted but complete daily Git operations, and optional AI commit previews. Installation and behavior are subject to the repository README.

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

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

Xiaoye