Introduction¶
In DeepSeek Harness (DSH), working on multiple development tasks simultaneously often requires operating on the same repository or branch, which can easily lead to conflicts and context confusion. The gord-dsh-worktree plugin addresses this by introducing the Git worktree mechanism, allowing isolated parallel work in independent directories and branches. Maintained by nightosong, it provides a complete management solution from command line to UI, complete with a “Fast mode” preset and a task attention tray.
Core Features¶
- Creation and Management: Supports creating and managing worktrees via command line (
worktree_list,worktree_create,worktree_status,worktree_remove,worktree_prune,worktree_relocate) or UI (Settings → Worktrees). Features atomic creation, safe deletion (automatically ignoring files like .env), and double-click to rename sessions. - Session Isolation: The worktree selector in the New Session row allows you to either launch in the current worktree or create a new worktree and launch the session inside it.
- Change Review: The Changes tab in the sidebar displays uncommitted diffs for the session directory, including file change statistics and specific patches.
- Task Attention Tray (New in 0.6.0): Located below the conversation index on the right side, it tracks running, pending, or finished-but-unviewed chats. Supports drag-to-save positioning, click-to-open, and position reset.
- Fast Mode: A lightweight agent preset that supports batch independent invocations, context-aware error explanation, and read-before-edit/re-read-after-edit workflows.
- Concurrent Tool Calls: Through an optional patch, read-only tools such as
bash,glob, andgrepcan be executed concurrently instead of serially.
Installation and Activation¶
Add the plugin using the official installation command:
dsh plugin --profile web add gord-dsh-worktree@0.6.0
After installation, restart dsh web to load the plugin. Fast mode is declared by the plugin package and will appear in the preset selector once installed.
Usage Examples¶
- Command-line operations:
- List all worktrees:
worktree_list - Create a new worktree:
worktree_create - Relocate legacy worktrees:
worktree_relocate
- List all worktrees:
- UI operations:
- Select a worktree in the New Session row.
- Manage the list, archive, or relocate legacy worktrees in Settings → Worktrees.
- Double-click a sidebar session row to rename it.
Notes¶
- Version Requirements: The plugin requires DeepSeek Harness engine version
^0.1.5-rc.1or higher. - Conflict Handling: Fast mode is declared at the bundle layer. If
cordis.patch.ymlin your profile already contains apreset-fastdeclaration, installing this plugin will cause a conflict (the plugin preset will override or mount it redundantly). - Feature Dependencies: The task attention tray requires support for
uiSession.sessionStatus(version0.2.0-rc.2+). - Legacy Migration: Worktrees created by older versions are stored in
$DSH_HOME/worktree/. They can be migrated into the project directory via “Move into project” in Settings → Worktrees or the commandworktree_relocate.
Summary¶
gord-dsh-worktree provides DSH with standard Git worktree management capabilities, solving the isolation problem of parallel multi-task development. Combined with Fast mode and the task attention tray, it enhances development efficiency and status tracking capabilities.
GitHub Repository | SkillHub Catalog