Preface¶
When developing agents or scripts in DeepSeek Harness (DSH Desktop), the workspace is often a Git directory: modifying code, switching branches, committing, and pushing are high-frequency actions. If you have to switch to a terminal or an external Git client every time, the session context is interrupted. The community plugin dsh-codex-parity (maintainer LingYingNX) does exactly one thing: it adds a standalone “Git” entry to the left of the workspace pill in the session header. Clicking it opens a lightweight menu that executes real Git operations under the cwd recorded in the current session. Its style is similar to the Git panel on the Codex side, rather than wrapping another complete IDE.
What is this¶
dsh-codex-parity is a plugin for DSH Desktop. It registers host RPC and Web client UI slots via Cordis patches, with zero npm runtime dependencies and no build step required to install the release package. The plugin does not inject DOM or poll; the Git button is rendered by the host on the left side of the workspace pill according to slot order.
| Item | Description |
|---|---|
| Repository | LingYingNX/dsh-codex-parity |
| Directory Page | skillhub.cn/plugins/LingYingNX/dsh-codex-parity |
| Version (package.json) | 0.1.0 |
| License | MIT |
| Engine Requirements | Node >=22; DSH >=0.2.0-rc.2 <0.3.0 |
The DSH ecosystem emphasizes “everything is a plugin”; community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer. Please review the source code and license yourself before installing.
Core Features¶
The entry is a “Git” button (icon + text, separated from the right-side button group) located to the left of the workspace pill in the session header. The top of the menu summarizes the current branch and total additions/deletions, e.g., main +154 -117.
Menu capabilities (from README, verified):
- Commit: Pops up a dialog to fill in the commit message, executes
git add -A, and then commits. - Push: Pushes the current branch; if there is no upstream, it prompts that one needs to be established manually first.
- Switch Branch: Searches and switches local branches; the current branch is marked with a checkmark and shows the number of uncommitted files.
- Create and Switch: Inputs a new branch name, creates it based on the current branch, and switches to it.
- Initialize Git: Available when the directory is not yet a repository; this item is greyed out if it is already a repository.
When not in a Git repository, Commit, Push, and Switch Branch are greyed out, and only “Initialize Git” is available (the initialization item is at the bottom of the menu).
The interface font is uniformly Source Han Sans Light (falling back to the Source Han Sans regular family, then the system sans-serif), and the panel font size is 1.2 times the base size.
Architecture Overview¶
Two halves with divided responsibilities, no build dependencies:
| File | Responsibility |
|---|---|
dist/formal-host.mjs |
Git RPC: ping, gitState, gitCommit, gitPush, gitBranchSwitch, gitBranchCreate, gitInit |
dist/formal-client.cjs |
Git button, menu, branch and commit dialogs, operation toasts |
The working directory is taken from the cwd in the session header; all Git commands are executed in that directory. The client registers shell.overlay (toast) and conversation.session.header.utilities (Git entry); the latter is rendered in ascending order with kind: list. The native workspace pill (open-in-app) has order: -10, and the Git button has order: -20, so it lands immediately to the left of the pill. The menu and dialogs are floating layers attached to document.body with inline position: fixed positioning.
Installation and Uninstallation¶
Installation uses the tarball in the release directory (replace the path with your local clone or downloaded <plugin directory>):
dsh plugin --profile desktop add <插件目录>\release\dsh-codex-parity.tgz
Uninstallation:
dsh plugin --profile desktop remove dsh-codex-parity
Note: The above commands are from the repository README; please do not splice forms like dsh plugin add github:owner/repo yourself based on the plugin name, unless the official documentation states otherwise.
Typical Usage¶
- Open the target session in DSH Desktop and confirm that the workspace
cwdin the header points to the directory you want to operate on. - Click Git to the left of the workspace pill to view the branch name and
+/-summary at the top. - When you need to commit, select “Commit”, fill in the message, and confirm (the plugin will run
git add -Afirst). - When you need to sync with the remote, select “Push”; if prompted that there is no upstream, set the upstream for the current branch in a terminal or external tool before pushing.
- When you need to switch lines, select “Switch Branch” or “Create and Switch”; if the directory is empty or not a repository, use “Initialize Git” first.
For the development side maintaining from source, the README provides:
npm test # Offline tests
node scripts/pack.mjs # Repackage release tarball
Use Cases and Notes¶
Suitable for: Developers who frequently perform lightweight Git operations within a single DSH Desktop session and want the entry to be on the same screen as the workspace pill.
Notes:
- The plugin executes real
gitcommands in thecwdwith the permissions of the current DSH process. Before installation, you should readdist/formal-host.mjsand the RPC implementation to ensure it complies with your security policy. - Pushing depends on the Git credentials and remote configured on the local machine; if there is no upstream, it needs to be established manually, and the plugin will not set it automatically.
- The DSH version must fall within the range of
engines.dshinpackage.json, otherwise there may be compatibility issues.
Conclusion¶
dsh-codex-parity consolidates commit, push, branch switching, and repository initialization into a single Git button in the session header, reducing the need to switch back and forth between the Harness and external Git tools. To learn more, visit the SkillHub Directory Page and the GitHub Repository.