DeepSeek Harness Plugin

xzy-nine/dsh-source-control

Stars ★ 1 Downloads (30d) 2,923 Category Git & Code Review Added 2026-10-17 npm dsh-source-control

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.

中文文档

Source Control page: repositories, changes, and commit graph

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 gh CLI, 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.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.