Introduction¶
When developing with DeepSeek Harness (DSH), managing Git repository commits is often a step that interrupts the conversational flow. Traditional methods involve switching to a terminal, running git commands, or manually copying and pasting diff information. DSH’s design philosophy is “everything is a plugin.” Community developer 135ty has provided a Web GUI plugin named dsh-git-commit-panel, designed to integrate Git commit operations directly into the DSH web interface. Through a floating capsule, it makes changes clear at a glance; commit messages can be handwritten or drafted by AI, enabling one-click commits.
Plugin Positioning¶
This is a plugin running in the DSH Web / CLI environment, maintained by developer 135ty. It solves the core problem of: how to intuitively view Git changes in the current conversational workspace within the DSH Web interface and conveniently perform commit or push operations.
Core Features¶
-
Floating Capsule Notification
When the Git repository in the directory of the current conversation has uncommitted changes, a capsule will float up in the DSH web interface. It displays the current branch name, the number of files to be committed, and the lines added/deleted (e.g.,⑂ main 6 changes +61 -5). If the workspace is clean or the directory is not a Git repository, the capsule will not appear. -
Commit Message Handling
Commit messages support two methods: manual input or clicking “AI Generate.” If left blank and the commit button is clicked directly, the plugin will automatically invoke the AI to generate a standardized commit message based on the change content.
Commit messages follow the Conventional Commit specification: the first line contains the type and scope (in English), and the subject does not exceed 72 characters. -
Commit and Push
Two main actions are provided: “Commit” and “Commit & Push.” The plugin’s behavior aligns with ZCode’s Git tools, supporting the option to stage all changes (including untracked files) before committing. -
Language and Theme
The plugin interface supports both Chinese and English, following the GUI’s language settings; it also adapts to the interface’s light or dark theme.
Installation and Activation¶
This plugin is not published as an npm package and is distributed only via GitHub. It is recommended to use the pre-compiled Release package to avoid the hassle of local building.
Prerequisites:
* DeepSeek Harness version >= 0.2.0-rc.1
* git is included in the Host’s PATH environment variable
Installation Steps:
1. Run the following command to install the plugin (using the pre-compiled package):
dsh plugin --profile web add https://github.com/135ty/dsh-git-commit-panel/releases/latest/download/dsh-git-commit-panel.tgz
- After installation, the
dsh webprocess needs to be restarted to activate the plugin.
Install from GitHub Source (Build Required):
If you need to install from source or pin a specific version, you can use the following command:
dsh plugin --profile web add github:135ty/dsh-git-commit-panel
Note: Installing from GitHub source will download the source code and build it locally. Due to pnpm’s security policy, the first installation from source requires configuring build authorization in pnpm-workspace.yaml.
Notes¶
- Installation Scope: This plugin can only be installed in the
dsh webor CLI environment. The DSH Desktop client only accepts packages published to npm, so this plugin cannot be installed via GitHub source. - Scope Limitations: The plugin only recognizes the workspace where the current conversation is located. If you switch to another conversation or a non-registered workspace, the capsule will not appear.
- Runtime Environment: The plugin only functions in the local environment and is only valid for registered workspaces. Due to browser security restrictions, it cannot specify arbitrary directories to run git commands.
Summary¶
This plugin seamlessly embeds the Git commit workflow into the DSH workflow through a floating UI component. It utilizes AI to assist in generating standardized commit messages and is suitable for DSH users accustomed to managing code within a browser.