whitelonng/dsh-worktree

whitelonng★ 0JavaScriptLast synced: 2026-08-15

Open on GitHub

README excerpt

dsh-worktree A DeepSeek Harness (DSH) plugin: a git worktree slot pool that lets multiple sessions (conversations) work on the same repository in parallel without stepping on each other — with a constant branch count that never grows . The design borrows from TalkCody's worktree pool: a fixed number of slots, a fixed set of branches, reused instead of recreated. Problems it solves Scenario Without the pool With the pool Multiple sessions editing one repo Same working tree, silent lost updates Each session gets a physical worktree One branch per conversation Hundreds/thousands of branches pile up Branches stay fixed at dsh-slot-0..N-1 Forgot to merge, opened a new session Old branch becomes history junk acquire guard refuses to clobber unmerged commits Pool exhausted — Structured occupancy report; the model relays it and the user decides Core mechanics - Fixed slots : pool size poolSize (default 3). Slot dirs live at /.worktrees/pool-{n} , branches are always -{n} (default dsh-slot-0/1/2 ). - Reuse, not recreate : re-acquiring a free slot does reset --hard main && clean -ffd in place — much faster than worktree add on large repos. - Release ≠ lose work : wt release only hands the di…

View full README on GitHub →
Tools / Devdeepseek-harnessdeepseek-harness-plugindsh-plugindsh-plugins

Category