dsh-simple-worktree-plus
Agent 与会话 活跃维护

dsh-simple-worktree-plus

GitHub-Xzhi/dsh-simple-worktree-plus

支持一条命令创建、切换和清理 git worktree,让不同分支在独立目录中并行开发;在原版基础上补齐自动命名路径、批量删除和状态查看,配置精简,装好即用。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
460 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:GitHub-Xzhi/dsh-simple-worktree-plus
git clone https://github.com/GitHub-Xzhi/dsh-simple-worktree-plus.git
git clone git@github.com:GitHub-Xzhi/dsh-simple-worktree-plus.git
README.md main

DSH Simple Worktree Plus

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.