Advanced

Agent System

Multi-agent coordination for complex tasks

~5 min read

0

Agent-related tools

0

Agent system files

0+

Implementation LOC

Sometimes a task is too complex for a single Claude to handle efficiently. The agent system lets Claude spawn 'helper Claudes' — independent sub-agents that work on specific parts of the problem in parallel.

Think of it like a project manager delegating tasks. The main Claude (manager) breaks down the work, sends specific instructions to each sub-agent (team members), and collects their results. Each sub-agent has its own conversation context, tools, and can even spawn further sub-agents.

Agent Spawning #

How sub-agents are created and managed

Multi-Agent Patterns #

Different coordination strategies for different tasks

Fan-Out / Fan-In

M
↓↓↓
M

Main agent spawns N sub-agents for independent subtasks, then collects all results. Perfect for parallel search, multi-file analysis, or running tests across modules.

Pipeline

A
B
C
D

Output of one agent becomes input to the next. Used for multi-stage workflows: research → plan → implement → review.

Swarm Teams

L
1
2
3

TeamCreate builds a persistent group of agents with a lead agent. Members communicate via SendMessage. For ongoing collaborative work.

← → arrow keys to navigate