Skip to content
Back to full roadmap
topicexpert★ Pro

Swarm Pattern (Many Small Agents)

Many small, simple agents — collective intelligence + dynamic routing.

3 hours1 resources1 prereqs

Instead of few large agents, many small specialized agents. Each does one micro-task well.

OpenAI Swarm: lightweight (300-line) reference impl. A routing agent forwards user msg to the right specialist; the specialist can hand off to another.

Pros: each agent = small model + specific prompt → fast + cheap + easy debug. Cons: routing logic can get complex.

Production: customer support — triage agent → dynamic routing among billing / tech / shipping specialists.

Prerequisites

Resources(1)