Start with the simplest level of parallelism

A multi-agent workflow does not automatically make work faster. First determine whether the task has independent parts, whether ownership can be separated, and how each result will be checked.

When parts depend strongly on one another, clarify the specification and keep one session. Agent count is not an efficiency metric.

LevelUse whenTrade-off
One sessionSmall sequential changeLowest coordination cost
Plan modeDiscovery must precede editsSame-session control
SubagentIsolated research or checkReturns findings to main context
WorktreeParallel file changesIsolates branch and working copy
Agent teamSeveral independent streamsHighest synchronization cost

Five questions before launch

  • Are the workstreams genuinely independent?
  • Can ownership be split by files, modules, or layers?
  • Does each result have its own verification criterion?
  • Are tests or another safety net available?
  • Is there time to inspect intermediate results and decide?

Decision record

Parallelism decision
Task: <bounded task>
Independent streams: yes / no
Ownership split: <modules or paths>
Shared-state risk: low / medium / high
Verification per stream: <checks>
Human checkpoint: <decision point>
Choice: one session / subagent / worktree / team

Canonical lesson source · JavaRush

Open JavaRush material