DigestOps

How do you run several agents in parallel?

30 posts

Playbook

Practitioners run several agents in parallel by using hierarchical model orchestration, isolated worktrees for task execution, or peer-to-peer communication protocols.

  1. Hierarchical model orchestration

    Use a primary model like Opus to delegate specific coding tasks to sub-agents like DeepSeek , or use Sonnet 5.5 for background feature building in isolated worktrees while Haiku 5.5 handles telemetry at 340 tok/s and Opus 5.5 acts as a review supervisor . 15

  2. Worktree-based parallel execution

    Execute tasks in isolated Git worktrees to prevent context bleed or branch collisions [4, 5], such as running 18 worktree executors alongside 2 planning and 2 review sessions . 245

  3. Peer-to-peer agent communication

    Implement a flat multi-agent structure where agents communicate via a Unix socket and a BUN server using a protocol with tools to list, send commands, send prompts, and wait for responses . 3

  4. Defined loop management

    Manage five to ten agents in parallel by setting clear stopping conditions, such as goal-based loops that stop after 5 tries , or using an orchestrator that wakes every 5 minutes to direct work . 910

  5. Specialized PR review

    Deploy specialized agents to review pull requests, with 5 to 11 independent agents reviewing each PR for tasks like security scanning or accessibility . 8

Choosing between approaches

Hierarchical orchestration can be contrasted with flat peer-to-peer collaboration 3. Adding sub-agents may be unnecessary if a bloated system prompt can be fixed with skills or tool search instead 6.

Not covered yet

The material does not specify the maximum number of agents that can be run before performance degrades or resource limits are hit.

Drawn from the top 10 posts for this question; the numbers match the list below · updated 2026-11-27
Type

Posts

20 more posts to see