dsh-git-desk
v0.31.0
Published
Git desk for DeepSeek Harness: a right-sidebar Git workbench with full-file side-by-side diffs, block staging, commits, history, branches, stash, and sync.
Downloads
2,612
Maintainers
Readme
Git desk for DeepSeek Harness

Git in the DeepSeek Harness right sidebar: full-file diffs, block staging, commits, history, branches, stash, and sync.
Git desk adds a Git tab beside the conversation. It follows the session's working directory, including a linked worktree, and finds every repository under the workspace. The diff shows the whole file on both sides. Stage a file or one block, then commit, merge, rebase, stash, or read history without leaving the window. Git runs on the host, so the browser never shells out.
Contents
- Install
- Open the panel
- What you can do
- Screenshots
- Settings
- Keyboard shortcuts
- Privacy and security
- Limits
- Troubleshooting
- Development
- Documentation
- License
Install
You need DeepSeek Harness, either the desktop app or dsh web, Git 2.31 or newer on PATH, and a repository to open. An install from the command line also needs the dsh and pnpm binaries.
From the plugin manager. Open Plugins, press Add plugin, enter dsh-git-desk, and press Install.
From the command line. Run this against the profile you boot:
dsh plugin --profile web add dsh-git-deskFrom a checkout. Clone the repository and link the folder instead of the registry package:
git clone https://github.com/P4rthPat3l/dsh-git-desk.git
cd dsh-git-desk
dsh plugin --profile web add link:$PWDThe install adds the bundle to dsh.profile.bundles, so DeepSeek Harness loads it at boot. Restart the app so the host half loads, then reload the window for the client bundle. If the tab is still missing, check that dsh-git-desk is listed under Plugins > Installed and that the running app uses the profile you installed into.
The install also turns off the Harness rows that ship their own Git surfaces, so this panel is the only one: the experimental change request bundle (change request panel, reviews, local changes view, and the New worktree option) and the worktree tool. This rides the plugin's own cordis.patch.yml, so nothing is edited by hand. The patch composes after those bundles because an install appends to the end of the profile; a profile that later adds one of those bundles after this plugin keeps that row and the loader logs a warning. The per-turn changed-files card stays: its recorder is also the service the file-deliverable cards need.
Open the panel
Git is a tab in the session view strip beside Chat and Trajectory, so it opens full width without the right sidebar. While that tab is open the message composer is hidden, because the panel is a workbench rather than a place to type; Chat is one tab away. The same panel also opens in the right sidebar from the Git button in the session header, from the Git changes card in the Start guide, or from the sidebar tab strip; pressing the header button again collapses the column.
The panel belongs to the session. Switching sessions shows that session's checkout, and a session started with a worktree shows the worktree, marked Worktree. When the workspace holds several repositories, the header picker scopes changes, history, stashes, and sync to one of them.
What you can do
| Area | What it does |
| --- | --- |
| Changes | Conflicts, Staged, and Unstaged groups with add and delete counts. A file with both staged and local changes appears in both. Filter and stage or unstage from a row, or run the whole section from its header. |
| Selection | Cmd-click, or Ctrl-click elsewhere, toggles files; Shift-click selects a range in one section. At two or more files a bar stages, unstages, or discards the selection in one request, and the diff header discards one file. |
| Diff | The whole file on both sides, split or unified, with syntax colors from the file's CodeMirror grammar and the host token palette. The staged diff compares HEAD with the index, and the unstaged diff compares the index with the working tree. Unchanged lines are never collapsed. |
| Change navigation | The toolbar shows the current change and the total, such as 2/5, and the arrows move to the previous or next one. A rail on the diff scrollbar marks every change: green for an addition, red for a deletion, blue for a modification. |
| Block staging | The left arrow in an unstaged block stages it. The right arrow in an unstaged block reverts it to the staged version after a confirmation. The right arrow in a staged block unstages it. |
| Commit | Message, amend, and skip hooks. Ticking amend loads the last commit message, still editable. Ctrl/Cmd+Enter commits from the message field. The button stays disabled until something is staged and no conflict remains. |
| AI commit message | The sparkle menu writes a message from the staged patch and the last five commit subjects, or creates a branch and commits it. The model and the instructions come from Settings > Git. |
| Branches | Search, switch, create from HEAD, or check out a remote branch with tracking. A branch row's menu merges it into the current branch, rebases the current branch onto it, or deletes a local branch; merge and rebase have a replay preview, confirmed abort and skip, and a banner to finish the operation, and an unmerged delete needs a second confirmation. |
| Sync | Fetch, pull, and push with ahead and behind counts. Pull is fast-forward only; when local changes block it, it stashes them, retries, and restores them with the index intact. |
| History | Graph lanes, refs, author, relative time, commit detail, changed files, and the commit's diff. Commit actions undo the last unpushed commit, revert, cherry-pick, or reset soft, mixed, or hard; a disabled row states the reason. |
| Stash | Stash selected files from the diff header or the selection bar, or choose files in Stashes. Apply, pop, or drop the result. |
| Conflicts | The working tree text with markers and branch-named Take controls. Commit stays blocked while the conflict group is not empty. |
| Repositories | Every repository in the workspace plus its linked worktrees, one header picker, and Initialize when the workspace has no repository. |
Every icon-only control has a native tooltip and an accessible name. The panel takes its colors from the host theme, so it follows light and dark.
Screenshots

Changes lists each group with its count. The row controls stage or unstage one file, the section header runs the whole section, and the commit box sits under the list.

A split diff of one file. Both sides show the whole file, the arrows step through changes, and the rail on the scrollbar marks every block.

History keeps the commit list, the selected commit's detail and files, and the commit menu. An unavailable action states its reason under the label.

The actions on a branch row: check out, merge into the current branch, or rebase the current branch onto it.

Settings > Git holds the model and the instructions used by the AI commit message actions.
Settings
Settings > Git has two fields:
- AI model picks the provider and model for the commit message actions. The first option, Same as Composer, follows the model selected in the Composer, including later changes.
- Commit instructions shapes the wording of the message. The title line keeps the
type(scope): summaryform and a short body is welcome. Restore default puts the shipped text back.
Both are stored in this browser. The panel also stores its column widths, diff layout, and repository pick there, and a second browser profile starts from the defaults.
Keyboard shortcuts
Four panel actions are in the native shortcut editor, at Settings > General > Edit shortcuts or Ctrl/Cmd+/. They start unassigned; record a key to use one.
| Action | What it does | | --- | --- | | Open or collapse the Git panel | Opens the tab, or collapses the column when the panel is the visible tab. | | Stage all changes | Stages every unstaged file. | | Commit staged changes | Commits with the message in the field. | | Write the commit message with AI | Fills the message field from the staged patch. |
A panel action is refused with a reason while the Git tab is closed or the action cannot run, so a recorded key never acts on a stale view.
Privacy and security
- The browser never runs Git. It calls one authenticated host channel,
/git-rpc, and the host runs Git with an argv array, no shell, and a timeout. - The host validates every repository path and refuses an unrelated checkout. A worktree of a workspace repository is the one path outside the workspace folder that it accepts.
- The AI actions send the staged patch and the last five commit subjects to the model only when you pick a menu row. Reviewing and staging send nothing to a model.
- Preferences are written to this browser's
localStorage. No credential is stored, and the model fields hold identifiers only.
Limits
- Stash is file-level; hunk-level stash is not implemented.
- Conflicts resolve by whole side or in the editor. There is no three-pane merge editor.
- Merge and rebase do not fetch automatically, and the panel never force pushes. A rebase of pushed commits has to be pushed outside the panel.
- Multi-select has no arrow-key navigation. Tab reaches each row, Ctrl/Cmd+Space toggles one, and Shift+Space extends the range.
- Discard has no undo. It is refused for a conflict, during another operation, and for a rename whose old path holds an unselected file. An untracked nested repository is left in place.
- Symlinks, non-UTF-8 text, and text files over 5 MB are treated as binary.
- Block arrows are hidden on a rename; use the file controls.
- Large diffs are not virtualized. A side over 4,000 lines or 200,000 characters renders without syntax colors.
- Worktrees are listed and followed, but the panel cannot create, remove, or prune them.
- Interactive rebase, squash, tags, blame, pull requests, submodules, and LFS are out of scope.
- While this plugin is installed, the session header hides the built-in change request button because both use a branch glyph. Its panel keeps its tab and opens from the tab strip.
Troubleshooting
| Symptom | What to do |
| --- | --- |
| The Git button is missing | The client bundle did not load. Restart the app and reload the window, then confirm the bundle under Plugins > Installed. |
| Git is not installed | Install Git, make it available on PATH, and press Refresh. |
| Not a Git repository | Press Initialize repository at the workspace root, or pick an existing repository in the header. |
| A branch says it is checked out in another worktree | Another worktree holds it. Switch to it there, or prune the worktree in Git. |
| Merge or rebase is refused | A merge, rebase, revert, or cherry-pick is already running. Finish or abort it from the banner above the tabs. |
Development
The plugin has two halves. The host is TypeScript in src/host, compiled with tsc into dist, which is the package entry. The browser half is bundled with esbuild from src/client into client.js, plus a lazy client.highlight.js chunk that holds the CodeMirror grammars. The shapes the two halves exchange live in src/contract.ts.
npm install
npm run typecheck # tsc over src/host and src/client
npm test # built bundle in jsdom, compiled host entry in Node
npm run build # compile dist/ and rebuild client.jsThe built output is committed because the profile links this folder and DeepSeek Harness imports it without a build step. Edit src/, run npm run build, and never edit dist/ or client.js by hand.
Documentation
- Implementation notes: architecture, the endpoint table, and the verification runs.
- FEAT-001, Git integration: terms, contracts, business rules, and acceptance criteria for the panel.
- FEAT-002, panel preferences and key bindings: the settings page and the shortcut commands.
- FEAT-003, merge and rebase: operations, guards, and failure behavior.
License
MIT. See LICENSE.
