When developing with DeepSeek Harness (DSH), we frequently need to switch between multiple repositories, branches, and worktrees, ensuring each session runs in the correct isolated environment. The Composer area is typically used only for input, lacking intuitive status display and a quick entry point for creating isolated environments. dsh-worktree-bar adds a dynamic status bar above the Composer and provides a checkbox for creating Git worktrees when starting a session.
This is a plugin for the DeepSeek Harness Web UI, maintained by Hermannmayer. The core problems it solves are: how to quickly prepare an isolated development environment before a session begins, and how to monitor the currently running workspace, branch, and file diffs in real-time during the conversation. The plugin is a standalone bundle that does not depend on other runtime environments.
Core Features¶
- Context Status Line: Displays the repository, workspace, branch name, and diff statistics for uncommitted and untracked files above the Composer for the current session.
- Session Startup Checkbox: Shows a checkbox before the first prompt. Checking this box creates a linked Git worktree and places the subsequently opened blank session within that worktree.
- Project-Level Preparation: Through a configuration file in the project root directory, defines directories that need to be linked (such as virtual environments), files that need to be copied (such as configs), and initialization commands (such as
npm install).
Installation and Activation¶
Before installing, ensure that Node.js 20 or higher is installed, and the DeepSeek Harness version is no lower than 0.1.7-rc.1. Install using the following command:
dsh plugin --profile desktop install Hermannmayer/dsh-worktree-bar
After installation, restart the Harness or reload the page to see the new status bar.
Typical Usage¶
- Create Session: Check the
worktreecheckbox on the start screen, and the system will prepare the environment based on project configuration and open a new session. - View Status: During the conversation, the status line above shows the current branch (e.g.,
mainorworktree-calm-otter) and worktree path. Hover over+N -Mto view specific diff file counts. - Remove Worktree: During the conversation, click the branch name menu in the status line and select “Remove worktree…” to delete the worktree created by this plugin (uncommitted changes will be prompted to be discarded).
Applicable Scenarios and Notes¶
This plugin is suitable for scenarios requiring strict isolation of the development environment, or where project dependencies involve local caches/virtual environments. Before installing, it is recommended to review the source code and MIT license to confirm compliance with project standards. Note: Since the plugin is a standalone bundle, modifications to client code require a page refresh to take effect, and modifications to host code require a Harness restart. Removing a worktree requires confirmation, and if there are uncommitted changes, they will be prompted to be directly discarded.
With this plugin, you can obtain a clear status view and a convenient worktree operation entry point above the Composer area, simplifying the Git worktree usage workflow. For more information, please refer to GitHub or the SkillHub Directory.