Introduction¶
When working with agents or performing daily development tasks in DeepSeek Harness (DSH), the workspace often contains more than one repository, requiring constant switching between sessions, terminals, and file previews. While the official Web client supports Git operations, if you are accustomed to the side-by-side tool windows for “Branch / History / Commit Details” found in IntelliJ IDEA, you often have to rely on command lines or scattered entry points within the browser to fill the gap. GitPanel is a community-maintained DSH client plugin that mounts a full-page, three-column Git interface into the left panel bar, while the guide capsule on the right is solely responsible for opening the panel; the Host side executes read/write operations via local git, and the browser side handles the UI and diff.
What is this¶
| Item | Description |
|---|---|
| Package Name / Version | GitPanel / 0.2.0 (private, repository root is package root) |
| Maintainer | relaxyabc |
| Category | Client (DSH plugin bundle, dsh.manifestVersion: 1, client platform web) |
| Requirements | DSH ≥ 0.1.7-rc.1; A Web client profile; git available in the Host machine’s PATH |
| Directory Page | https://www.skillhub.cn/plugins/relaxyabc/dsh-GitPanel |
| Source Code | https://github.com/relaxyabc/dsh-GitPanel |
The plugin has no runtime dependencies and no build steps: one file for the Host side + several shards for the browser side, ready to run upon delivery. A brief summary: A DSH Web Git management interface similar to the IntelliJ Git tool window.
Core Features¶
The following summarizes the capabilities listed in the README to help you check if it fits your daily workflow.
Repositories & Workspaces¶
- Recursively discovers all repositories and submodule work trees under the workspace (including submodules located outside the parent repository tree), automatically skipping directories like
node_modules,.git,dist,vendor, etc. - Multi-workspace browsing; opening the panel automatically selects the workspace of the current session. The top bar dropdown matches the name and full path of the left list.
- Configurable scan depth (see “Configuration” below); switching repositories does not trigger a rescan.
Branches¶
- Local / remote grouping, collapsible, filterable by name; current branch marked with
HEAD, showing upstream and latest commit description. - Right-click or double-click: Checkout, Create local branch from remote, Delete branch (safe delete by default), New branch from here (from any commit).
- Merge into
and Rebase onto this branch require confirmation first (clean workspace required); on conflict, a yellow banner appears in the panel providing Commit merge / Merge –abort or Rebase –continue / Rebase –abort; conflicted files are listed in the workspace like normal changes, simply stage them after resolving.
Commit History & Diff¶
- The middle column is the history list: committer, date, lane commit graph, message; windowed rendering, continue reading by scrolling to bottom or clicking Load more / Load all; supports filtering by message/hash, author, date, with conditions pushed down to the Host (
--since/--until/--author/--grep, etc.). - Selecting a commit displays full info and file list in the right column; double-clicking a file pops up a left-right two-column diff with change navigation and overview bar; untracked files can also be diffed.
- Commit right-click: Copy hash, Amend message (latest only), Checkout, Cherry-pick, New branch from here, Reset (soft/mixed/hard), Revert commit.
Workspace Changes & Commits¶
- Change list based on
git status --porcelain=v2 -z; checkboxes indicate selection only, with header select-all + “Stage selected / Unstage selected”; Commit / Commit all / Commit & push,Ctrl/Cmd+Enterfor quick commit. - Automatically reads commit templates (
commit.templateor repo root.gitcommit); commit box supports multi-line and Amend mode; Push / Fetch / Pull (Pull requires current branch to have an upstream). - Staging, committing, and pushing only reload relevant data to avoid long “Loading” states for the whole panel.
Submodules & Interface¶
- Lists submodule status, supports init / update / sync (recursive).
- Panel text is bilingual (Chinese/English), following DSH locale; Git command names (Checkout, Cherry-pick, etc.) remain in English; styles use DSH design tokens, adapting to light and dark themes.
Installation & Activation¶
1. Install to Profile¶
dsh plugin passes arguments directly to pnpm. Installing from the default branch main of a public GitHub repository installs a copy:
dsh plugin --profile <name> add github:relaxyabc/dsh-GitPanel
Upgrade using dsh plugin --profile <name> update GitPanel to re-resolve; to pin a version, use github:relaxyabc/dsh-GitPanel#v0.2.0 or #<commit>. Installing via local path creates a link pointing to the repository, taking effect after restarting with code changes, suitable for use while modifying.
2. Write Cordis Patch¶
Insert the following into the profile’s cordis.patch.yml (or use --patch overlay) (this content matches the cordis.patch.yml inside the package):
- insert:
- id: GitPanel
name: 'GitPanel'
3. Restart Profile¶
It will auto-reload when dsh-hmr is enabled.
Typical Usage¶
After installation and restart, you can operate according to the paths described in the README:
- Click the Git icon in the left panel bar → opens the full-page three-column view: Left (Branches + Changes + Commit box), Middle (History), Right (Commit info and file changes for that commit).
- Git in the right sidebar guide capsule → opens the same full-page panel and closes the current tab (layout persists per session).
- The top bar displays the workspace directory and repository (dropdown to switch, hover for full path), current branch chip with ahead/behind indicators; automatically aligns with the current session workspace when the panel is open.
- Fill in the description in the commit message box and press
Ctrl/Cmd+Enterto commit; dangerous operations (hard reset, delete branch, delete file) have confirmation dialogs.
Host and browser communicate via authenticated Fetch routes, e.g.:
POST /api/local-git
{ "op": "state", "args": { "workspaceRoot": "E:/ws", "path": "alpha" } }
Errors are returned with 200 + ok: false; clear errors are reported when the path exceeds the workspace fence.
Configuration¶
Configure on GitPanel in the “Installed” group on the plugin page (takes effect immediately upon saving, no restart required):
| Config Item | Type | Default | Description |
|---|---|---|---|
discoveryDepth |
number(1–8) | 3 |
Recursion depth for repository discovery |
wholeFileDiff |
boolean | false |
When true, diff displays the whole file |
filePreviewFix |
boolean | true |
Fixes dsh-resource:// file preview provider not found issue on Chromium (see DSH discussion #6437) |
filePreviewFix only handles dsh-resource:// addresses; it can be turned off once upstream is fixed. If Office / PDF preview reports n.toHex is not a function, it relates to new engine APIs required by pdf.js on older browsers; browser upgrade is needed, which is outside the scope of this plugin’s address fix.
Scope & Notes¶
Who it is for: Developers who are already developing within a DSH Web client profile, want to perform branching, history, staging, and committing via a GUI, and are accustomed to an IDE-style three-column layout.
Permissions & Security: The Host side uses execFile(git) within the DSH process, paths are fenced by resolveInside; the plugin still accesses local Git and workspace files with current dsh process permissions. You should read the source code and license on GitHub before installing (the repository is a private package description, subject to the actual LICENSE in the repository) to ensure it complies with your security policy.
Environment: Requires a Web client profile and local git callability; DSH version must be 0.1.7-rc.1 or higher.
The DSH ecosystem emphasizes “Everything is a plugin”; community directories like SkillHub are independent of DeepSeek / High-Flyer and are not official app stores.
Conclusion¶
GitPanel mounts an IntelliJ-style Git tool window into the DSH Web client in the form of a bundle: multi-repository and submodule discovery, branch merge/rebase, filterable history, workspace commits and push/pull, as well as configurable diff and repository scan depth. If you are developing using the browser side in a profile, you can install it into your profile using the installation command from the official README and open the three-column panel via the left column Git icon or the right guide entry.
- Directory Page: https://www.skillhub.cn/plugins/relaxyabc/dsh-GitPanel
- GitHub: https://github.com/relaxyabc/dsh-GitPanel