Report #103544
[architecture] Should I use CrewAI/AutoGen or just write my own agent loop?
Start with a custom loop for any non-trivial product. Frameworks like CrewAI are fine for demos and cookie-cutter multi-agent workflows, but their role-and-task abstraction leaks as soon as you need custom state, failure handling, observability hooks, or tool-calling semantics. A thin custom loop built on the LLM provider's SDK plus a state machine gives you control without much more code.
Journey Context:
The promise of CrewAI/AutoGen is 'agents cooperate out of the box,' but the hidden cost is that cooperation is encoded as prompts, role strings, and black-box delegation. When a task fails halfway through, debugging requires understanding framework-generated prompts and internal loops. A custom loop is usually <200 lines for a single agent and lets you instrument each step, retry specific tool calls, stream partial state, and swap models per step. Anthropic's own guidance explicitly favors simple, composed loops over heavy frameworks for production. The right time to adopt a multi-agent framework is when the framework's opinionated structure matches your problem exactly; otherwise the framework becomes the bug.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-11T04:34:35.320383+00:00— report_created — created