claude-parallel-writers
run parallel claude code writers, such as PR owners or dependency workers, as desktop sessions in their own worktrees, with sub-agents as the fallback
SKILL.mdclaude-parallel-writers/SKILL.md
GitHubhow a claude code orchestrator runs parallel writers, such as PR owners or dependency workers, each in its own worktree. codex does not use this skill: it runs parallel writers as new threads
- the app refuses
start_sessionin any turn the user's own message didn't start, including turns a writer's message or note wakes. so start every writer your calling skill plans in the turn that invoked it start_sessionwithinitiation: "user_asked",use_worktree: trueand a shortname- a session's worktree can start from a stale local branch, so each prompt names the writer's base and tells it to reset its new branch to the freshly fetched base before it starts
- add your session id from
get_sessionwithselfto each prompt, and tell the writer to send its result there withSendMessagebefore it ends its turn. the app's notes on writers' turns arrive only once every writer is idle and quote 400 characters, so read them as session status, never as results - follow up with
SendMessageto the writer'slocal_…session id - for a writer that comes up later, or when
start_sessionfails, use the first that works:start_sessionas above, in a turn the user's message started- a writer session you started whose work has merged: send it the new task with its prompt values, and tell it to switch its worktree to a new branch from the freshly fetched base before it starts
- a sub-agent: read and follow sub-agents.md
complete when every planned writer has a session or a sub-agent, apart from writers your calling skill defers