Skip to content
BhaiCode Docs
BhaiCode Docs

Subagents Swarm Overview

Multi-agent coordination architecture inside BhaiCode.

Complex software engineering tasks require different skill sets: architectural design, rapid feature implementation, deep refactoring, and code review. BhaiCode coordinates these roles through the Subagents Swarm.


Swarm Structure

Core Agents

AgentRoleFocus
BhaiLead Orchestrator & BuilderDirect full-stack coding, conversational pair programming, tool calls, debugging
PlannerSystem ArchitectRequirements breakdown, relational database modeling, step-by-step roadmaps
ExecutorHeavy RefactorerMulti-file code surgery, framework migrations, test suite 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 Coordination Works

You talk directly with Bhai:

  1. Bhai evaluates task complexity and scope.
  2. For architectural or multi-phase tasks, Bhai delegates plan formulation to Planner.
  3. For deep refactoring or migrations, Bhai hands off the multi-file transformation to Executor.
  4. Subagents report results back to Bhai, who presents the final changes in the visual diff viewer.
Was this page helpful?