dsh-enterworktree: Create Git Worktree and Launch Isolated Sessions in DSH
`dsh-enterworktree` is a DSH workflow host plugin maintained by scccy that registers the `enter_worktree` tool, serving as a counterpart to Claude Code's `/enterworktree`. Due to the read-only nature of `session.header.cwd`, the plugin creates or reuses a git worktree under a nested or sibling layout. It then initiates an isolated session pointing to this path via `ctx.remote.session.create` and returns the `sessionId` for the Web GUI to open. It supports parameters such as `branch`, `base`, `path`, `layout`, `openSession`, and `inPlace`. The bundle allows for configurable `layout`, `dotworktreesDir`, and `autoOpenSession`. Installation is performed via `plugin_manager install_bundle` (GitHub or npm). Requires `dsh-api-remotes` for automatic session creation; licensed under MIT, requires Node >=20.
Read More