Preface¶
When you use agents in DSH to modify code, changes usually land in the workspace of the current session. To see which files changed, check files to stage them, and write a Summary for the commit, a common approach is to switch to the terminal and run git status, git add, and git commit, or to open another desktop Git client. DSH’s right-hand sidebar already hosts persistent tabs such as “Files / Docs / Chat”; bringing Git operations into the same sidebar lets you share the workspace context with the current session—when you switch sessions, the panel follows the repository, without needing to pick a directory again.
Below is a community plugin, dsh-lite-git (maintained by Ckarefulon), which provides a changes list, stage-by-check, commit and push, discard to a trash, and diff preview inside DSH’s built-in right sidebar. The plugin is categorized as a client-side plugin; you can find its entry on the SkillHub directory page. The source code and documentation are in the GitHub repository (MIT, current package version 0.7.0).
What This Is¶
dsh-lite-git is a Git panel for DeepSeek Harness (DSH): its interaction style is close to GitHub Desktop, installed as a tab in DSH’s right sidebar. The panel is designed for a narrow column (the right column is at least about 300px), with files shown in a single column, and the commit area defaults to a one-line Summary, with an expandable Description.
Compared with “operating git only in the terminal,” checking items maps directly to git add / git restore --staged. Compared with a standalone Git GUI, what it binds to is the workspace of the current DSH session, not an arbitrary folder you manually opened in the client.
Core Features¶
The capabilities in the documentation can be summarized into the following categories (all depend on the local git and system credentials; the plugin does not store credentials).
Changes and Staging¶
- The list detects modified, added, deleted, renamed, and untracked files, and shows
+n −nline counts. - Checking is
git add; unchecking isgit restore --staged; half-staged files show a half-checked state, and clicking toggles between “stage all / unstage all.” - The header offers a three-state select-all; conflicted files do not participate in select-all or auto-check.
- On refresh: newly appeared changes in the list are auto-checked; files already in the list keep your previous selection. On first open or after a commit, if the index is empty then everything is checked; if the index is not empty, existing selections are left unchanged.
Commit and Remote¶
- Summary is required and must be a single line; Description is expanded via the small arrow on the right.
- Commit commits only the checked items (already written to the index).
- Commit and Push commits first, then pushes; if the push fails, the panel states “Committed xxx, but push failed,” without misreporting a commit failure.
- The context button changes with state: when there are unpushed local commits it is Push; when there is no upstream it is Publish; otherwise it is Fetch.
- Before pushing, it runs
git fetch --prune; if local is behind remote, it refuses to push and shows the number of commits behind.autoFetchMscontrols automatic fetching when the panel is visible (default 300000 ms;0disables it).
Discard, Trash, and diff¶
- For a single file or “Discard All”: by default the current diff is archived to the plugin’s trash; the confirmation dialog has an option “Delete permanently” to skip the trash.
- The trash is a separate tab, recording the commit a diff was taken based on; entries can be viewed, restored (after restoring, the file appears checked in the list), or deleted.
- Double-clicking a file row opens a diff tab in the right column, and always reuses the same diff tab; from the diff page you can open the file on the host machine with the system default program, Notepad, etc., and you can add editors via the
openWithconfiguration.
Summary Script and More¶
- In the panel you can edit a “Summary-filling script,” which runs with the repository root as the working directory; its output is used as the Summary, and content after a line containing only
---becomes the Description. The script runs automatically each time the panel regains focus, but it does not overwrite a Summary you typed manually. - If the workspace itself is a Git repository it is auto-bound; otherwise you can choose from the workspace scan results or enter a path. The state directory defaults to
<DSH_HOME>/dsh-lite-git/(falling back to~/.dshifDSH_HOMEis not set).
Prerequisites¶
| Requirement | Notes |
|---|---|
DSH >= 0.2.0-rc.2 |
Right sidebar tab API |
Node >= 22 |
Host-side dependency |
Local git |
Found from PATH by default; can be specified with gitPath |
| Credentials | Push uses the system git credential helper; the plugin can push only after a terminal push succeeds |
Installation and Enablement¶
Official install command (you need to restart DSH after installation):
dsh plugin --profile <your profile> add dsh-lite-git
Open the right sidebar in a session; an onboarding card “Git Changes” appears, click it to enter the panel.
Starting from 0.7.0, the package name changed from dsh-gitbar-lite to dsh-lite-git. If you previously installed the old package, uninstall the old id first and then install the new one:
dsh plugin --profile <your profile> remove dsh-gitbar-lite
For local development, you can install via a link:
dsh plugin --profile desktop add link:/absolute/path/dsh-lite-git
Uninstall:
dsh plugin --profile <your profile> remove dsh-lite-git
Typical Usage¶
- In a DSH session bound to a Git repository, open the right sidebar and go to Git Changes.
- In the changes list, check the files you want to stage (consistent with terminal
git status). - Fill in the Summary (Description can be expanded); if needed, configure or run the in-panel Summary script, for example to get the version number from
CHANGELOG.md:
grep -m1 '^## ' CHANGELOG.md | sed 's/^## //'
- Click Commit or Commit and Push; use Push / Publish / Fetch when you need to sync the remote.
- Double-click a row to view the diff; for mistaken changes you can use the per-row discard or “Discard All,” and by default the diff goes into the trash so you can review or restore it.
Common configuration items (changes take effect immediately from the settings page, no restart needed) include gitPath, timeoutMs, autoFetchMs, maxDiffBytes, trashLimit, summaryScript, openWith, etc.; see the “Configuration” section in the repository README for their meanings.
Use Cases and Notes¶
Who it suits: developers who frequently modify the same workspace repository inside DSH sessions and want to switch to the terminal less or open a second Git window less; scenarios that require stage / commit / push / simple diff in a narrow sidebar.
Permissions and security: the plugin invokes local git through the DSH host side and runs with the current DSH process permissions; before installing, you should read the source code and the MIT license and confirm it matches your environment policy. The plugin does not read or write secrets in $DSH_HOME, and does not store credentials by itself.
Ecosystem note: DSH uses an “everything is a plugin” extension model; SkillHub is a community directory site and has no official affiliation with DeepSeek / High-Flyer; this article does not constitute official endorsement.
Closing¶
dsh-lite-git brings GitHub Desktop–style check-to-stage, commit, push, discard, and diff preview into DSH’s right sidebar and binds to the workspace of the current session, reducing back-and-forth between chat, terminal, and external Git clients.
- Directory page: https://www.skillhub.cn/plugins/Ckarefulon/dsh-lite-git
- Source code and full documentation: https://github.com/Ckarefulon/dsh-lite-git