Contrast CrewAI role-driven model with LangGraph state-driven graph
CrewAI is described as 'role-driven' and LangGraph as 'state-driven.' Unpack what that means in terms of the core abstraction each one asks you to think in, and explain how that difference shows up in the kind of bugs each framework makes hard or easy.
CrewAI gives you Agent + Task + Process; LangGraph gives you State + Node + Edge. The first invites role-bleed bugs, the second invites state-merge bugs.
Picture two ways to organise a kitchen. CrewAI is the brigade kitchen: each cook has a title (saucier, pastry chef, expediter), a backstory of training, and a list of dishes they own. You write the menu by saying who cooks what in what order. LangGraph is a dish-assembly line on a conveyor belt: a tray (the state) carries the dish from station to station, each station reads the tray, adds something, and passes it on, and a switch decides which station gets it next. Brigade kitchens go wrong when two cooks step on each other's roles. Conveyor belts go wrong when two stations write to the same spot on the tray and clobber each other.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
6 min: CrewAI's persona model + LangGraph's state-machine model + the bug categories each invites + production failure modes + when each fits + migration pattern.
Real products, models, and research that use this idea.
- CrewAI's reference research-crew template (researcher + analyst + writer) is the canonical persona-orchestration example; ships in the CrewAI docs.
- LangGraph's create_react_agent and supervisor patterns power LangChain's own agent reference implementations in 2026.
- Devin (Cognition AI) reportedly uses a LangGraph-style state machine under the hood for its long-horizon coding work.
- Linear's AI features use LangGraph for the multi-step issue-triage flow where state needs to persist across user interrupts.
- Klarna's customer-support agent stack uses a hierarchical pattern more similar to CrewAI's persona orchestration for first-line routing.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhen would you actually pick CrewAI over LangGraph for production?
QWalk through a concrete LangGraph reducer bug you have seen or could imagine.
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Picking CrewAI for a pipeline that is really a state machine, then fighting role descriptions to encode branching logic. The shape of the work should pick the framework, not vice versa.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.