Skip to content

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:

Sequential workflow bottleneck
1. Start Claude Code session
2. Work on feature A
3. Complete feature A (maybe 2 hours)
4. Close session
5. Start new session for feature B
6. Work on feature B
7. Complete feature B
8. Repeat for feature C...
Total time: Sum of all feature times
Can't parallelize anything

This 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.

Parallel workflow with agent-orchestrator
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 time

Each Claude session works in its own isolated directory. CI runs tests for each independently.

What It Enables

agent-orchestrator capabilities
- 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/deployment

Why Git Worktrees

Git worktrees are the key mechanism:

Git worktree basics
# 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 development

Benefits:

  • Isolated codebases per feature
  • No merge conflicts during development
  • Each Claude has clean context
  • Parallel commits possible

How It Works

Architecture

agent-orchestrator workflow
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

Using agent-orchestrator
# Create worktrees for parallel features
agent-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 sessions
agent-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 ready
agent-orchestrator merge feature-a

Why This Matters

Speed. Instead of waiting for feature A to finish before starting feature B:

Speed comparison
Sequential (old way):
Feature A: 2 hours
Feature B: 1.5 hours
Feature C: 1 hour
Total: 4.5 hours
Parallel (with agent-orchestrator):
Feature A, B, C run simultaneously
Total: ~2 hours (time of longest feature)
Double or triple your throughput

Clarification: Claude Code’s Native Worktree Support

One Reddit user asked: “agent-orchestrator? Claude Code already handles git worktrees?”

The difference:

Native vs agent-orchestrator
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 sessions

Claude Code can use worktrees, but agent-orchestrator manages them automatically and runs sessions in parallel.

Common Mistakes

MistakeWhat HappensFix
Too many parallel sessionsContext window overloadStart with 2-3 max
Not coordinating shared dependenciesMerge conflictsPlan features with clear boundaries
Forgetting worktrees share git historyPush conflictsEach feature on separate branch
Assuming parallel = faster for coupled featuresStill sequentialUse parallel only for independent work

Best Practices

I learned these from the Reddit discussion:

  1. Start with 2-3 sessions - More than that and context windows become unwieldy
  2. Pick independent features - Don’t parallelize features that depend on each other
  3. Coordinate shared code - If multiple sessions touch shared files, plan carefully
  4. 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