CrewAI: when a crew of agents beats one big prompt (and when it doesn't)
CrewAI organises role-playing agents into crews and flows. What it's good for in automation work, how it compares with TradingAgents for a trading-research job, and the overhead to budget for.
Repo: crewAIInc/crewAI · MIT
CrewAI is one of the tools in my AI toolbox, and it's the one I reach for when a job naturally splits into roles. Its pitch is simple: a framework for orchestrating role-playing, autonomous AI agents.
The four ideas
- Agents have a role, a goal, a backstory, a model and optional tools.
- Tasks are units of work with a description and an expected output, assigned to an agent.
- Crews are teams of agents that work through tasks, either in sequence or under a manager agent.
- Flows are event-driven workflows with state and branching that can call crews as steps.
That vocabulary maps cleanly onto how businesses already describe work: a researcher gathers, a writer drafts, an editor checks.
Where crews earn their keep
- Content pipelines — research → outline → draft → fact-check, each with its own instructions and tools.
- Lead and market research — one agent pulls data, another summarises, a third scores against criteria.
- Anything with a natural reviewer — a second agent whose only job is to find problems catches a surprising amount.
Where one prompt wins
Crews cost more: more calls, more tokens, more latency, more places to go wrong. For a task one well-structured prompt can handle — classify this, extract that — a crew is overkill. My rule: if I can't name a distinct role with a distinct tool or source, it's one agent.
CrewAI vs TradingAgents for the scanner
When I wanted an agentic layer on top of my squeeze scanner, CrewAI and TradingAgents were the two candidates. CrewAI would have meant designing the roles myself. TradingAgents already ships a trading-desk structure — analysts, bull and bear researchers, a trader and a risk team — so for that specific job the ready-made desk won. For general business automation, CrewAI's flexibility is the point.
Making crews reliable
- Give every task an expected output that's structured, not "a summary".
- Validate between steps. The same structured-output discipline applies: code checks each hand-off.
- Cap the loops. Agents that can delegate can also delegate forever.
- Log every step. When the final answer is wrong, you need to see which agent went off the rails.
Crews are a team. Like any team, they need a clear brief and someone checking the work.
Some links in these notes are affiliate links. If you buy through one, I may earn a commission at no extra cost to you. I only link to tools I use or would recommend.