Skip to content
New to BhaiCode? Install the desktop app in under a minute, or build in your browser with Cloud Studio.
BhaiCode Docs
BhaiCode Docs
Subagents Swarm › Subagents Swarm Overview

Subagents Swarm Overview

How Bhai, Planner, and Executor divide complex tasks inside BhaiCode.

Complex software work needs different skills: architecture, fast implementation, careful refactoring, and review. BhaiCode coordinates those roles as a Subagents Swarm — one conversation on your side, specialist agents behind it.

Swarm structure

AgentRoleFocus
BhaiLead orchestrator and builderFull-stack coding, pair programming, tool calls, debugging
PlannerSystem architectRequirements breakdown, data modelling, ordered roadmaps
ExecutorHeavy refactorerMulti-file surgery, framework migrations, test generation
ExplorerCodebase scoutRead-only symbol tracing, dependency mapping, file discovery
AuditorSecurity auditorVulnerability scanning, secret leaks, performance bottlenecks
ReviewerCode reviewerLint compliance, import hygiene, code cleanliness

How a task moves through the swarm

You talk to Bhai

You describe the goal in English or any supported Indian language. Bhai reads the workspace and estimates scope.

Bhai plans or hands off

Multi-phase or architectural work goes to Planner. Deep refactors and migrations go to Executor. Explorers and auditors run alongside when the task needs them.

Subagents report back

Results return to Bhai, which presents the consolidated change in the diff viewer for your review.

Delegation is automatic — you never address a subagent directly. If you want a specific approach, say so in your prompt to Bhai.

Was this page helpful?