dsh-enterworktree:在 DSH 裏創建 git worktree 並開隔離 session

dsh-enterworktree 是 scccy 維護的 DSH 工作流宿主插件,註冊 enter_worktree 工具,對標 Claude Code 的 /enterworktree。因 session.header.cwd 只讀,插件在 nested 或 sibling 佈局下創建或複用 git worktree,並通過 ctx.remote.session.create 開啓指向該路徑的隔離 session,返回 sessionId 供 Web GUI 打開。支持 branch、base、path、layout、openSession、inPlace 等參數,bundle 可配置 layout、dotworktreesDir、autoOpenSession。安裝使用 plugin_manager install_bundle(GitHub 或 npm)。需 dsh-api-remotes 才能自動開 session;MIT 許可,Node >=20。

閱讀全文