KHG420/git-worktree

KHG420★ 2JavaScriptLast synced: 2026-08-15

Open on GitHub

DeepSeek Harness plugin: one click binds each conversation to its own isolated git worktree + branch, so parallel agents work on one repo without interference — every project's worktrees auto-managed in the sidebar workspace tree, backed by 9 git tools.

README excerpt

dsh-git-worktree 面向 DeepSeek Harness 的 对话 ↔ 工作树绑定 插件:让多个会话在同一项目上并行工作, 每个会话绑定一个独立 git 工作树 + 分支 ,一键创建、互不干扰。 DeepSeek Harness plugin: bind every conversation to its own isolated git worktree + branch in one click, so parallel agents work on one repo without interference — binding manager panel + 9 git tools. - 绑定 / Binding — 会话在创建时即绑定到专属工作树:工作树 + 工作区 + 会话一次成型(绑定关系可推导、可展示、可清理)。 - Agent 工具 / Agent tools — 9 个工具( git session binding 、 git repo status 、 git worktree 、 git branch ),每个会话都可以调用。 9 tools ( git session binding , git repo status , git worktree , git branch ) every conversation can call. - 左侧工作区树 / The sidebar workspace tree — 唯一的管理界面:每个项目自动检测全部 git 工作树并显示为嵌套子文件夹(主工作树 = 项目文件夹本身,标记 主工作树 ),工作树副文件夹上可新建会话(出生即绑定)或 删除工作树 (含绑定会话提示/归档)。 The single management surface: every project auto-detects all its git worktrees as nested folders (the main worktree IS the project folder, marked 主工作树 ); a worktree subfolder can start a conversation (born bound) or remove the worktree (with bound-conversation warning/archive). 绑定是什么 / What a binding is DSH 中,会话的工作目录(cwd)在创建时 冻结 ,工作区归属要求"会话 cwd == 工作区路径"。因此绑定只能在创建会话的那一刻发生—— 把会话建在专属工作树里 ,绑定关系即成立: A DSH session's cwd is frozen at creation and workspace mem…

View full README on GitHub →
Agentsai-agentai-agentscredisdeepseekdeepseek-harnessdshdsh-plugintypescript

Category