Jiazliang/dsh-worktree ↗★ 0

dsh-worktree

Fork-like git worktree for DSH (DeepSeek Harness): create an isolated worktree from any workspace/session and open a new session in it — optionally forking the conversation so the child inherits all history. 适合需要从主工作区分出独立开发线、继承对话上下文并在独立分支上工作的 Git 开发者。

Package
dsh-worktree
Compatibility
Unverified
Harness peer range
^0.1.1-rc.2
Cordis peer range
^4.0.1
Version
0.3.1
License
MIT
Last updated
Aug 23, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Jiazliang/dsh-worktree

使用流程

典型场景:从主工作区分出一条独立开发线

  1. 在侧栏的某个工作区(文件夹)上打开 ⋯ 菜单,点击「创建 Worktree」;
  2. 侧栏出现新工作区,新会话自动打开,cwd 指向独立 worktree(独立分支);
  3. 在该会话中自由工作——修改、提交都只影响这个分支;
  4. 想带着当前对话上下文另起一条线?在会话 ⋯ 菜单点「分叉到 Worktree」, 子会话继承全部对话历史并落在新的 worktree 上;
  5. 任务完成、不再需要该分支时,在该 worktree 工作区的 ⋯ 菜单点「删除 Worktree」, 目录、分支、登记一并清除。

注意:「删除 Worktree」是破坏性操作——未提交的更改会随目录删除而丢弃, 但会话日志会保留(与 DSH 原生「删除工作区」一致,会话落入"未分组")。