Manages Git worktrees in DeepSeek Harness with branch deletion controls and scoped workspace management.
Install
# from npm (prebuilt)
dsh plugin --profile web add @xzhi/dsh-simple-worktree-plus
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:GitHub-Xzhi/dsh-simple-worktree-plus
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
English | 简体中文
@xzhi/dsh-simple-worktree-plus is a Git Worktree management plugin for DeepSeek Harness.
This project continues the open-source work of alpacachen/dsh-worktree. Thank you to the original project for the Worktree creation, Workspace registration, and isolated-session foundation.
The Plus edition extends deletion policies, management entry points, and per-Workspace management for easier multi-branch task work and cleanup.
Install
dsh plugin --profile web add @xzhi/dsh-simple-worktree-plus
Restart dsh web and refresh the page after installation or upgrade.
Usage
- Create a Worktree from a new session in a Git Workspace.
- Use Worktree Management in the sidebar to view Worktrees across all Workspaces.
- Right-click a Workspace and select Worktree Management to scan only that Workspace.
- When deleting a Worktree, use the confirmation options to delete its Git branch as well.
Plus features
| Feature | Description |
|---|---|
| Branch handling on deletion | Optionally delete the corresponding Git branch when deleting a Worktree. |
| Delete branch by default | Also delete the Git branch is enabled by default. |
| Force-delete unmerged branches | Use git branch -D for unmerged branches; enabled by default and should be used carefully. |
| Top-bar entry | Opens Worktree Management beside the top Workspace picker. |
| Sidebar entry | Opens Worktree Management immediately above Settings in the sidebar. |
| Scoped Workspace management | Right-click a Workspace to open Worktree Management scoped to that Workspace only. |
| Deletion default preferences | Configure the default checkbox states used the next time a deletion dialog opens. |
| Independent plugin identity | Uses the @xzhi/dsh-simple-worktree-plus package and DSH plugin identity. |
Warning
Force-deleting an unmerged Git branch permanently removes commits that are only on that local branch. Push, merge, or otherwise back up important work before deleting it.
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-git-graph★ 10406
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★ 132
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★ 51
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★ 46
Adds a Worktree view to DSH Web UI that groups Sessions by Git worktree while keeping DSH as the source of truth.
DamonKoy/dsh-web-ui#dsh-git-graph★ 31
Git branch selector and Git graph in the conversation header of the dsh web GUI.
Lenonss/DSH_VsCodeMode★ 31
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.