Jiazliang/dsh-worktree
Jiazliang★ 0JavaScript最后同步: 2026-08-22
Fork-like git worktree for DeepSeek Harness (DSH): create an isolated git worktree from a workspace/session and open a new session in it — optionally forking the conversation so the child inherits all history and works on its own branch.
README 摘要
dsh-worktree DSH(DeepSeek Harness)的"fork 式"git worktree 插件:基于仓库创建独立的 git worktree(独立分支),并把新会话绑定到该 worktree 上打开。两个入口: - 工作区(文件夹)⋯ 菜单 「创建 Git worktree」:建 worktree + 空会话(复制副本图标); - 会话 ⋯ 菜单 「在 Worktree 中分叉」:建 worktree 并分叉该会话 ——新会话继承 全部对话历史,cwd 指向新 worktree(右上箭头图标,区别于"分叉会话"的分支图标)。 工作原理 菜单行的注入采用与 dsh-open-in-vscode 相同的双路径机制:优先注册进原生 sidebar.workspaces.row-menu 插槽(新版构建);当前构建无此插槽时,自动降级为 DOM 注入适配器 (MutationObserver 定位打开的溢出菜单并挂载菜单行)——无需 patch core 包。零 core 包改动:host 通过官方 Typert Remote 网关暴露 gitWorktree/ 端点,forkInto 只用公开服务( sessions / agents / workspaceRegistry / agentPresets / agentDefaultModel + 公开导入 resolveSessionPreset / installModelSelection / inspectApiRemoteSession )复刻 fork 语义。 安装 方式 A:本地目录(开发/自用) 然后在 profiles/web/package.json 的 dsh.profile.bundles 追加 "dsh-worktree" (若 dsh plugin add 未自动追加),最后 重启 dsh web 应用 。 方式 B:GitHub 仓库(发布后) dsh plugin add 会先执行 pnpm add ,成功后自动把声明了 dsh.bundle 的包追加进 dsh.profile.bundles (无需手改 package.json),最后 重启 dsh web 应用 生效。 方式 C:npm(未发布) dsh-worktree 这个 npm 包名已被其他项目占用,本插件暂不发布 npm;请使用 方式 A(本地目录)或方式 B(GitHub 仓库)安装。 发布 发布内容由 package.json 的 files 限定: lib/ 、 cordis.patch.yml 、 dsh.plugin.json 、 README.md 、 LICENSE 。 验证方式 - 工作区 ⋯ 菜单 :「创建 Git worktree」(复制副本图标)→ 建 worktree + …
在 GitHub 查看完整 README →分类
DeepSeek Harness: Everything is a Plugin.
★ 182,325
amruthpillai/reactive-resumeA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
★ 41,477
anywhere-labs/deepseek-harness-desktop为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 17,784