Both configs below run today on a Mac with tmux and Claude Code installed. The first is a worktree-based feature swarm; the second is a multi-pane research swarm. They illustrate the two patterns from the comparison table; pick whichever matches your work.
Config 1: 4-agent feature swarm with git worktrees. One repo, four parallel branches, four Claude Code sessions in adjacent tmux panes. Every agent has its own working tree so they cannot stomp each other. This is the Cursor "8 parallel agents" pattern, done locally with plain tools.
# Setup: create 4 worktrees off main
cd ~/code/myapp
for branch in auth-refactor billing-v3 search-rewrite onboarding-fix; do
git worktree add "../myapp-$branch" -b "$branch" origin/main
done
# Run 4 Claude Code agents in a 2x2 tmux layout, one per worktree
tmux new-session -d -s swarm -c ~/code/myapp-auth-refactor
tmux send-keys -t swarm "claude" Enter
tmux split-window -h -t swarm -c ~/code/myapp-billing-v3
tmux send-keys -t swarm "claude" Enter
tmux split-window -v -t swarm:0.0 -c ~/code/myapp-search-rewrite
tmux send-keys -t swarm "claude" Enter
tmux split-window -v -t swarm:0.1 -c ~/code/myapp-onboarding-fix
tmux send-keys -t swarm "claude" Enter
tmux select-layout -t swarm tiled
tmux attach -t swarm
From there, give each agent its prompt. When they finish, you have four branches ready to review, rebase, or merge - in any order. To run this from ClawTab instead of by hand, create four jobs (one per worktree path), set them to the same tmux window, and turn on auto-yes for the ones doing well-defined work.
Config 2: 6-agent overnight swarm, mixing read-only reviews with same-repo writers. Three agents review different repos read-only; two more agents share the same project folder but each gets instructed to work in its own git worktree, so they can write in parallel without colliding; a sixth tracks dependencies across all repos. Scheduled to run before standup.
# ~/.config/clawtab/jobs.yaml - simplified illustrative shape
# --- Read-only reviewers in different repos (no worktree needed) ---
- name: review-frontend
job_type: claude
tmux_window: nightly-swarm
cron: "30 7 * * 1-5"
path: ~/code/frontend
prompt: ~/.config/clawtab/prompts/review-open-prs.md
auto_yes: true
secret_keys: ["GITHUB_TOKEN"]
- name: review-backend
job_type: claude
tmux_window: nightly-swarm
cron: "30 7 * * 1-5"
path: ~/code/backend
prompt: ~/.config/clawtab/prompts/review-open-prs.md
auto_yes: true
secret_keys: ["GITHUB_TOKEN"]
- name: review-infra
job_type: claude
tmux_window: nightly-swarm
cron: "30 7 * * 1-5"
path: ~/code/infra
prompt: ~/.config/clawtab/prompts/review-open-prs.md
auto_yes: true
secret_keys: ["GITHUB_TOKEN"]
# --- Two writers in the SAME project, each in its own worktree ---
# Both jobs point at ~/code/myapp; the prompt tells each agent to
# create and work inside its own worktree so writes don't collide.
- name: myapp-test-gen
job_type: claude
tmux_window: nightly-swarm
cron: "30 7 * * 1-5"
path: ~/code/myapp
prompt: ~/.config/clawtab/prompts/test-gen-in-worktree.md
auto_yes: true
- name: myapp-lint-fix
job_type: claude
tmux_window: nightly-swarm
cron: "30 7 * * 1-5"
path: ~/code/myapp
prompt: ~/.config/clawtab/prompts/lint-fix-in-worktree.md
auto_yes: true
# --- Dependency tracker across all repos ---
- name: dep-audit
job_type: claude
tmux_window: nightly-swarm
cron: "30 7 * * 1-5"
path: ~/code
prompt: ~/.config/clawtab/prompts/dep-audit.md
auto_yes: true
The trick for the two same-folder writers is in the prompt. Each one starts with a short worktree-setup preamble that creates a fresh worktree off main, scoped to the agent's job, and instructs the agent to do all of its writes there:
# ~/.config/clawtab/prompts/test-gen-in-worktree.md (excerpt)
First, set up an isolated worktree for this run:
WT=../myapp-test-gen-$(date +%Y%m%d)
git worktree add "$WT" -b "test-gen/$(date +%Y%m%d)" origin/main
cd "$WT"
Do all subsequent file writes inside this worktree only. When you finish,
push the branch and open a draft PR. Do not touch the parent checkout.
The lint-fix prompt has the same preamble with its own branch name. Both agents start from ~/code/myapp, immediately move into their own worktree, and write in parallel without ever seeing each other's intermediate state. When they finish, two draft PRs are waiting alongside the three review summaries and the dependency audit.
Six parallel Claude Code sessions, six outputs in the same tmux window at 07:30. Push notifications fire if any agent hits a question that auto-yes cannot answer. The same pattern works for nightly dependency bumps, scheduled lint sweeps, and weekly architecture audits - swap the prompt, keep the shape. The worktree-setup preamble is a useful primitive in its own right: anywhere you want two agents to share a project root without colliding, drop it in the prompt and the rest takes care of itself.
For more shapes (migration swarm, refactor + test + lint pipeline, multi-provider compare), the 10+ parallel agents guide walks through several proven patterns. For a side-by-side against Cursor's cloud worker model and Devin's autonomous setup, see the 2026 AI coding agent comparison.