Skip to content

Create worktrees in parallel to reduce startup latency#112

Merged
that-github-user merged 1 commit into
mainfrom
issue-76-parallel-worktrees
Mar 28, 2026
Merged

Create worktrees in parallel to reduce startup latency#112
that-github-user merged 1 commit into
mainfrom
issue-76-parallel-worktrees

Conversation

@that-github-user

Copy link
Copy Markdown
Owner

Summary

  • Replace sequential worktree creation with Promise.all — all worktrees created simultaneously
  • Progress output batched after creation completes
  • Safe because each worktree uses UUID branch names

Generated by thinktank Opus — 5 agents, 4/5 pass, Copeland: Agent #1 at +2.

Change type

  • New feature

Related issue

Closes #76

How to test

npm test  # 131 tests pass
thinktank run "task" -n 5  # worktrees created faster

Breaking changes

  • This PR introduces breaking changes

🤖 Generated with thinktank (Opus)

Replace sequential worktree creation loop with Promise.all. Each
worktree has a unique UUID branch name so parallel creation is safe.
Progress logging batched after all worktrees are created.

Generated by thinktank Opus (5 agents, 4 pass, Copeland: #1 at +2).

Closes #76

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@that-github-user that-github-user merged commit 56602bf into main Mar 28, 2026
4 checks passed
@that-github-user that-github-user deleted the issue-76-parallel-worktrees branch March 28, 2026 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create worktrees in parallel to reduce startup latency for large -n values

1 participant