FlashingChen/dsh-worktree ↗★ 2
dsh-worktree
适用于 DeepSeek Harness 的 Codex 风格永久 Git 工作区插件,提供代理工具、/worktree 命令及会话上下文。
AI 分析
核心用途是管理持久化的 Git 工作区。适合需要在多个代码分支或独立工作区中并行执行任务的开发人员与 Agent 协作场景。
安裝
此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗
說明文件
閱讀完整 README ↗Usage
Agent tools
worktree_create {name, baseCommit?}— create a permanent detached worktree of the repository containing the current session (default base: current HEAD). Returns the worktree path, repo root, and base commit.worktree_list— list registered worktrees with live git state (exists, HEAD, branch).worktree_remove {name, force?}— remove a registered worktree (--forcealso discards uncommitted changes). Refuses to remove the worktree the current session is working inside.
Chat command
/worktree # list (same as /worktree list)
/worktree list
/worktree create []
/worktree open # print path/state + register as workspace
/worktree remove # (close/delete accepted as aliases)
Session context
When a session's workspace is inside a registered permanent worktree, the agent is told once: which worktree, of which repo, at which base commit, plus the management commands.