CrewAI

CrewAI is a popular framework for multi-agent systems built around the metaphor of a crew: you define agents with roles, goals, and backstories, give them tasks, and they collaborate. It's the fastest way to prototype a multi-agent idea. The role metaphor is the signature feature and also the main source of debate: it helps or hurts depending on your use case.

Core concepts

The role metaphor

CrewAI's core idea: each agent is a character. "You are a senior market researcher with 15 years of experience. You are thorough and skeptical." This can make LLM outputs more in-character and more focused. It can also inflate prompts without clear benefit. Measure on your specific use case. Generic role prompts (generic "researcher") rarely help. Specific, grounded ones ("you're a quantitative analyst focused on B2B SaaS pricing") sometimes do.

Where CrewAI shines

Where it doesn't fit

A concrete worked example: market research crew

Crew:
  - Researcher: "find facts, cite sources"
  - Analyst: "interpret what the facts mean"
  - Writer: "produce the final 1-pager"

Tasks (sequential):
  1. Research → find 10 recent trends (Researcher)
  2. Analyze → identify the 3 most important (Analyst)
  3. Write → produce the brief (Writer)

Each agent gets its own prompt tuned to its role. The process runs sequentially. The crew produces a research brief. Three roles took about 30 lines of config.

Production considerations

Pitfalls

What to do with this