Run Parallel Claude Code Sessions with agent-orchestrator: One Agent Per Feature Branch
The Problem
My Claude Code workflow was sequential. I could only work on one feature at a time:
1. Start Claude Code session2. Work on feature A3. Complete feature A (maybe 2 hours)4. Close session5. Start new session for feature B6. Work on feature B7. Complete feature B8. Repeat for feature C...
Total time: Sum of all feature timesCan't parallelize anythingThis was slow. Features that could run independently had to wait for each other.
The Solution: agent-orchestrator
I found agent-orchestrator on the Reddit thread about best Claude Code tools. It runs parallel Claude Code sessions across git worktrees.
main branch├── worktree/feature-a → Claude session 1 (working on auth)├── worktree/feature-b → Claude session 2 (working on dashboard)├── worktree/feature-c → Claude session 3 (working on tests)└── CI pipeline watches all worktrees
All three run at the same timeEach Claude session works in its own isolated directory. CI runs tests for each independently.
What It Enables
- Multiple Claude Code sessions simultaneously- Each session in its own git worktree- Feature A + Feature B + Feature C at same time- CI integration for automated testing/deploymentWhy Git Worktrees
Git worktrees are the key mechanism:
# Create a worktree (isolated directory for a branch)git worktree add ../feature-a feature-branch-a
# Each worktree is an independent directory# Claude Code session runs in that directory# No merge conflicts during developmentBenefits:
- Isolated codebases per feature
- No merge conflicts during development
- Each Claude has clean context
- Parallel commits possible
How It Works
Architecture
main branch │ ┌───────────────┼───────────────┐ │ │ │ worktree/A worktree/B worktree/C │ │ │ Claude #1 Claude #2 Claude #3 │ │ │ "Add auth" "Build UI" "Write tests" │ │ │ └───────┬───────┴───────┬───────┘ │ │ CI Pipeline CI Pipeline (tests for A) (tests for B) │ │ Merge Merge (when ready) (when ready)Conceptual Commands
# Create worktrees for parallel featuresagent-orchestrator create feature-a feature-b feature-c
# Each worktree gets its Claude session# You tell each session what to do:# Session A: "Implement authentication API"# Session B: "Add dashboard UI components"# Session C: "Write E2E tests for checkout"
# Monitor all sessionsagent-orchestrator status# Output:# Feature A: 45% complete, 2 tests passing# Feature B: 30% complete, building components# Feature C: 10% complete, writing test skeleton
# CI auto-runs tests per worktree# Merge when readyagent-orchestrator merge feature-aWhy This Matters
Speed. Instead of waiting for feature A to finish before starting feature B:
Sequential (old way):Feature A: 2 hoursFeature B: 1.5 hoursFeature C: 1 hourTotal: 4.5 hours
Parallel (with agent-orchestrator):Feature A, B, C run simultaneouslyTotal: ~2 hours (time of longest feature)
Double or triple your throughputClarification: Claude Code’s Native Worktree Support
One Reddit user asked: “agent-orchestrator? Claude Code already handles git worktrees?”
The difference:
Claude Code native worktrees:- Can work in a worktree- Manual session management- Sequential switching between features
agent-orchestrator adds:- Automatic session spawning per worktree- CI pipeline integration- Coordination between parallel agents- Management dashboard for all sessionsClaude Code can use worktrees, but agent-orchestrator manages them automatically and runs sessions in parallel.
Common Mistakes
| Mistake | What Happens | Fix |
|---|---|---|
| Too many parallel sessions | Context window overload | Start with 2-3 max |
| Not coordinating shared dependencies | Merge conflicts | Plan features with clear boundaries |
| Forgetting worktrees share git history | Push conflicts | Each feature on separate branch |
| Assuming parallel = faster for coupled features | Still sequential | Use parallel only for independent work |
Best Practices
I learned these from the Reddit discussion:
- Start with 2-3 sessions - More than that and context windows become unwieldy
- Pick independent features - Don’t parallelize features that depend on each other
- Coordinate shared code - If multiple sessions touch shared files, plan carefully
- Use CI for safety - Let automated tests catch integration issues
The Reddit thread noted agent-orchestrator has 6.4k GitHub stars by ComposioHQ.
Summary
agent-orchestrator parallelizes Claude Code development. One agent per feature branch in isolated git worktrees. Double your throughput by working on multiple features simultaneously. Ideal for independent features; coordinate carefully for coupled changes.
Final Words + More Resources
My intention with this article was to help others share my knowledge and experience. If you want to contact me, you can contact by email: Email me
Here are also the most important links from this article along with some further resources that will help you in this scope:
Oh, and if you found these resources useful, don’t forget to support me by starring the repo on GitHub!
Comments