AI Agent Hub
Back to plugins
🖥️

dsh-git-branch-switcher

Client Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install mixin-ai/dsh-git-branch-switcher

Paste the following prompt into your AI chat to install this plugin:

Run the install command in your DeepSeek Harness terminal to add this plugin; the source code is available at https://github.com/mixin-ai/dsh-git-branch-switcher

About this plugin

Switching Git branches inside a DSH Web session used to mean staring at the terminal, typing checkout, and then wondering which branch you are actually on afterward.

dsh-git-branch-switcher tucks that workflow into the session header. A small branch pill sits in the top-right corner so you always know where you stand. Click it to open a panel listing local branches, with the current one highlighted by a checkmark. Click any branch and the checkout fires immediately; the pill updates the same instant. The list auto-refreshes every 30 seconds so terminal-side switches appear without manual intervention. Detached HEAD states show the short commit hash with a helpful note, and failed checkouts surface Git's own error message verbatim. Every color is driven by the --dsw-* theme tokens for seamless light and dark mode, and all git commands run under the session's sandbox policy with strict shell escaping to prevent injection.

Developers who hop between branches frequently and want to stay inside the DSH Web UI without breaking flow will find this a one-click solution.

Use Cases

  • Quickly switch between local Git branches within a DSH Web session
  • View and sync terminal-side branch changes without leaving the Web UI
  • Clearly identify the current commit in detached HEAD states

Best For

  • Developers who switch between branches frequently
  • Users who prefer a pure Web interface for DSH workflows
  • Security-conscious teams that need injection-safe git operations