mixin-ai/dsh-git-branch-switcher
DeepSeek Harness web plugin: git branch pill in the session header with UI branc
dsh-git-branch-switcher puts a Git branch pill in the DeepSeek Harness session header that shows the current branch of the session's workspace (only for git-managed workspaces) and lets you switch branches straight from the UI. Clicking the pill opens a branch panel listing local branches with the current one highlighted; clicking any branch runs git checkout and the pill updates immediately. Detached HEAD is shown as the short commit hash with an explanation; the pill auto-refreshes every 30s (picking up terminal-side switches) plus a manual refresh button, and checkout failures (e.g. conflicting local changes) surface git's own error message. Colors use the shell's --dsw-* tokens for light/dark readiness, and git runs under the same sandbox policy as the session's shell. Host half: a gitBranch Typert Remote service (status/branches/checkout) running git through the shell service.
Install
dsh plugin --profile web add "github:mixin-ai/dsh-git-branch-switcher#main"GitHub install per README (EN primary with 简体中文): dsh plugin --profile web add "github:mixin-ai/dsh-git-branch-switcher#main", then restart the Web profile (dsh --profile web). npm 404 verified 2026-09-04. Alternative source checkout: git clone + dsh web --patch ./dsh-git-branch-switcher/cordis.patch.yml. The plugin is listed under Settings → Plugins after install.
Compatibility
DeepSeek Harness Web (session header slot); git-managed workspaces; detached-HEAD support (short commit hash + explanation); 30s auto-refresh plus manual refresh; git runs under the same sandbox policy as the session's shell; theme-aware (--dsw-* tokens).
Details
- Repo: mixin-ai/dsh-git-branch-switcher
- Category: Coding & Development
- Stars: 0
- Version: git github:mixin-ai/dsh-git-branch-switcher#main
- Last push: 2026-08-14
- First seen: 2026-08-14
Recent updates
No npm release (404 verified 2026-09-04); README documents the session-header pill and branch panel.
FAQ
- How do I switch branches?
- Click the branch pill in the session header to open the panel, then click any local branch — the plugin runs git checkout and the pill updates immediately.
- Does it detect terminal-side switches?
- Yes — the pill auto-refreshes every 30 seconds (plus a manual refresh button), so branches switched outside the UI are picked up.
- Is it safe with uncommitted changes?
- Checkout failures (e.g. conflicting local changes) surface git's own error message, and git runs under the same sandbox policy as the session's shell.
Alternatives
wloops/dsh-git-worktree · LaoYueHanNi/dsh-git-worktree