AI Agent Hub
Back to plugins
⚙️

dsh-worktree

Workflow Updated 2026.08.14

Run the following command in DeepSeek Harness:

dsh plugin install CSY656/dsh-worktree

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install CSY656/dsh-worktree inside DeepSeek Harness to install this plugin; the source repository is https://github.com/CSY656/dsh-worktree

About this plugin

Harness subagents already isolate messages, permission policies, and tool sets, yet they all share the same working tree — one child's writes can directly affect another's. dsh-worktree fills that gap with git worktrees: every subagent runs in its own directory under /.dsh/worktrees/, sharing the repository object store while keeping its working tree fully private. The ctx.worktree service covers the full lifecycle of creating, restoring, listing, and removing worktrees, with strict slug validation, fail-closed change detection, automatic config and hooks-path inheritance on creation, and per-repository mutation serialization with idempotent concurrent acquires. Human operators get /worktree create, list, and remove slash commands, and stale temporary worktrees are swept periodically. The plugin suits developers running multi-subagent parallel tasks in Harness and plugin authors who need isolated filesystems for children without hand-rolling git logic — a single acquire() call yields a private environment.

Use Cases

  • Run parallel subagent tasks in Harness without working-tree conflicts
  • Build isolated filesystem sandboxes for subagents via the ctx.worktree service API
  • Experiment with feature branches in throwaway worktrees, then merge or discard cleanly

Best For

  • Developers running multi-subagent parallel tasks in Harness
  • Plugin authors who need filesystem isolation for child agents
  • CI engineers and script authors who want to manage git worktree lifecycles programmatically