wloops/dsh-git-worktree
Domi-grade git worktree isolation and delivery: permanent worktrees under .dsh-worktrees, ready-for-review / apply / finish / discard lifecycle with conflict handling and safe cleanup (ported from Domi's production system).
dsh-git-worktree separates agent construction from delivery: the agent edits and tests only inside an isolated Git worktree, the user inspects a reversible Local Preview, and the Host saves only the current task delta — unrelated Local work is never swept in; if safety cannot be proven, writes stop and recovery evidence is preserved. Each managed task gets its own Git Worktree, Workspace and unique owner Session, grouped under its original Local project in a sidebar with branch icons and status badges (ordinary Local sessions keep official behavior). A Ready state lets the user choose Preview changes, Confirm and save, or another explicit action; changes reach Local without an immediate commit and can be rolled back safely; final delivery creates one commit for the accumulated task delta. Checkpoints remain inside the managed worktree and still collapse into one final delivery. Recovery handles Local drift, conflicts, preview_detached states, restarts and interrupted cleanup; many worktrees can run concurrently while each Local acceptance stays serialized.
Install
dsh plugin --profile web add dsh-git-worktreenpm dsh-git-worktree 0.7.2 verified 2026-09-03 (repository field → github.com/wloops/dsh-git-worktree; README.en edition primary, zh README.md for the same project). Install: dsh plugin --profile web add dsh-git-worktree or pinned dsh plugin --profile web add github:wloops/dsh-git-worktree#v0.7.2. This is an experimental Session Target plugin: each coding task gets an independent checkout, Workspace and Session, so agent construction state never leaks into the user-controlled Local checkout. Independently maintained community plugin — not an official DeepSeek project.
Compatibility
DeepSeek Harness (experimental Session Target plugin); git worktrees; full usage guide in docs/USAGE.en.md.
Details
- Repo: wloops/dsh-git-worktree
- Category: Tools & Capabilities
- Stars: 1
- Version: npm dsh-git-worktree 0.7.2
- Last push: 2026-08-17
- First seen: 2026-08-15
Recent updates
Per-task git worktree + Workspace + owner Session; reversible Local Preview; task-only single-commit delivery; checkpoint-and-continue; drift/conflict/restart recovery; project-grouped sidebar.
FAQ
- Why work in a worktree at all?
- An agent editing Local directly can mix task changes with existing staged/unstaged/untracked work, and multiple tasks may compete for one checkout. Isolated worktrees separate construction from delivery.
- How does a change reach my Local checkout?
- The user inspects a reversible Local Preview and explicitly confirms; only the current task delta is saved as one final commit.
- Is this an official DeepSeek plugin?
- No — it is an independently maintained community plugin and does not imply official endorsement, partnership or authorization.
Alternatives
Eleven-is-cool/dsh-worktree · JFWaskin/dsh-git-nexus · sunjc1994-dsh-session-manager