VSCode-style Source Control page in the DSH Web right sidebar: a paged commit lane graph with ref markers and per-commit diffs, grouped working-tree changes with stage/discard/unstage, a commit box with amend and AI-generated messages, a side-by-side and unified diff page, GitHub repository and pull request creation through the gh CLI, and bidirectional HTTPS/SSH remote switching.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-source-control
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:xzy-nine/dsh-source-control
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
A DeepSeek Harness (dsh) plugin that adds a Source Control page to the DSH Web GUI's built-in right Sidebar: the commit graph, the working-tree changes list, and a commit box. Its controls come from DSH's own components, so it looks and behaves like the rest of the Harness. The repository is bound automatically to the current session's workspace; no manual repo selection is needed.

Features
- Commit graph: a lane graph of commits and ref markers, with automatic paging, hover cards, in-place changed-file expansion, and right-click checkout, branch, and tag actions.
- Changes and commits: the working-tree change list is grouped and can be staged or discarded, and the commit box supports Enter to commit, amending the last commit, and AI-generated messages.
- Diff page: side-by-side or unified views, word wrap, and git-hunk-only rendering.
- GitHub integration: create and push a repository, and create pull requests, through the
ghCLI, degrading gracefully when it is missing, logged out, or short of scopes. - Remote protocols: a remote address can be switched between HTTPS and SSH in both directions, checking the local SSH status before switching to SSH.
- Text logs: Android logcat threadtime format, one file per startup, grouped by day, kept 15 days with a 15 MB daily cap.
- Feedback: submit an issue from the settings Feedback tab or the feedback button in the repositories header; opt in to attach logs and the tool packs a zip, creates the issue, and the user drags the zip into its comment box.
- Safety: destructive actions ask for confirmation, failures explain themselves in a dialog, and completed actions report as a light notice.
The complete description of every feature is in 功能说明 (Chinese only).
Entry points
Both entries come from this plugin and open the same page:
| Entry | Behaviour |
|---|---|
| Guide entry capsule | Open the right Sidebar's + control, then pick the Source Control capsule |
| Session header icon | Opens the page, or focuses the open one |
Switching to another sidebar page or workspace and coming back leaves the page as it was — it neither reloads nor loses its expanded state.
Install
dsh plugin --profile web add dsh-source-control
# restart `dsh web`; the right Sidebar's `+` → guide page shows Source Control, and the session header gains an icon
Development
pnpm install
pnpm run verify-all # documentation gates
pnpm lint # static checks
pnpm test # build, duplication gate, and unit tests
Code structure and build conventions are in 代码结构 and 构建与测试 (Chinese only).
License
This project's own code is MIT. See LICENSE.
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-git-graph★ 10696
Git branch selector and Git graph for the dsh web GUI: switch branches and explore branch-lane and commit history from the conversation header. Retired by the author in favour of the official workspace-changes plugin: the published npm package stays installable but is no longer developed.
Akimiya-z/codex-guard#dsh★ 131
Pre-submit pull-request hygiene checks inside DeepSeek Harness: scans the current diff for TODO leftovers, hardcoded secrets, and non-conventional commit subjects.
xbzbing/dsh-git-panel★ 65
IDE-style Git panel in the DSH Web GUI: a resident tab with a three-column overview (branch/tag list, searchable commit-history graph, commit detail with changed-file tree and message) and a changes page (stats bar, uncommitted list with per-file stage/unstage/discard, commit box with amend); side-by-side diffs carry lazy highlight.js syntax highlighting, on-demand between-hunk context expansion and word-level intra-line emphasis, with image files shown as before/after panes; plus a zsh-style branch marker in the input bar. Every git command runs as an argv array through the host subprocess service, cwd locked to the repo root.
Cerbur/clutch-dsh#clutch-dsh-worktree★ 50
Adds a Worktree view to DSH Web UI that groups Sessions by Git worktree while keeping DSH as the source of truth.
KannaKuron/dsh-ide-git★ 41
JetBrains-style Git tool window for the sidebar: branch tree with ahead/behind badges, commit graph with text/author/date/path filters, per-file line diff, changes list and commit box, plus branch, tag and stash actions, merge, rebase, cherry-pick, reset and fetch/pull/push.
Lenonss/DSH_VsCodeMode★ 36
VSCode-style editing experience for DeepSeek Harness: a Monaco-based central file editor (tabs, Ctrl+P quick open, status bar) and interactive diff review of agent edit/write results with per-change Keep/Undo, rollback and archiving, persisted across restarts.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.