CrewAI Best Practices
Ten practices for scoping roles, tasks, and tools so a crew converges reliably. Use them as a design rubric before kickoff and as a PR checklist after the first verbose runs.
Search across all documentation pages
Ten practices for scoping roles, tasks, and tools so a crew converges reliably. Use them as a design rubric before kickoff and as a PR checklist after the first verbose runs.
expected_output as an acceptance test. If a human could not grade it, neither can your eval harness.context and structured intermediate notes. Do not hope the next agent "remembers."kickoff(inputs=...) placeholders. Keep evergreen constraints in role text; keep ticket specifics in tasks.max_iter, timeouts, retries, product budgets). Prompt wishes are not stop conditions.Items 1-10 are the core "converge reliably" practices promised in the section summary. Items 11-15 extend them into operations.
Clear expected_output plus host-enforced caps. Most thrash is unbounded work against a fuzzy definition of done.
When roles need different tools, trust levels, or success metrics you can name. Otherwise use one agent.
No. Enable memory when cross-run learning helps, with pinned storage and reset strategy for tests.
Crews still need scoped roles/tasks/tools inside routes. Chat sessions add session ids and history discipline on top.
Same foundations, plus a sharp manager goal, distinct workers, and budget for review tokens.
Read role strings, task contracts, tool allowlists, process choice, and caps before reading clever helper code.
Golden intermediate shapes, max tokens/time, and a tiny crew smoke test with mocked tools when possible.
Whenever cost, latency, or failure rates rise. Agent count is a product decision, not a permanent architecture trophy.
No. They reduce incidents; the debugging cheatsheet still matters when loops appear.
Section close-out, crew README templates, and ADRs that introduce a new multi-agent workflow.
No. Structure and contracts matter more than file format. Config helps review at scale.
Stack versions: Pins from the category manifest (verify at build): OpenRouter (~315+ models, July 2026 pricing/fees); LangGraph 1.0+; CrewAI 1.14+; Microsoft Agent Framework 1.0; Vercel AI SDK 6; Pydantic AI (latest); LlamaIndex (latest); OpenAI Agents SDK (latest + MCP); MCP (Linux Foundation governance); A2A (HTTP+SSE+JSON-RPC 2.0); Solana
@solana/web3.js+@solana/spl-token.
Reviewed by Chris St. John·Last updated Jul 16, 2026