AgenticBook
Back to Handbook
Chapter 01 · Framework ReviewIssue 02 · November 2026

LangGraph vs CrewAI vs OpenAI Agents SDK vs Microsoft Agent Framework

A source-backed production selection guide. One important status change: Microsoft’s AutoGen repository is now archived and no longer maintained, so this comparison treats it as a migration path rather than a new-project recommendation.

Framework fit and pilot questions

Framework fit and pilot questions
CandidateStart here whenProve this in a pilot
LangGraphYou need low-level, stateful orchestration for long-running workflows.Can you checkpoint, interrupt, resume, and inspect state after a worker restart?
CrewAIRole-based Crews and explicit event-driven Flows match the work.Can deterministic Flow steps constrain autonomous Crews at the right boundaries?
OpenAI Agents SDKTools, handoffs, guardrails, sessions, and tracing fit a lightweight agent runtime.Do provider support, session storage, tool controls, and tracing meet your requirements?
Microsoft Agent FrameworkYou build in Python or .NET and need workflows, checkpointing, human review, or OpenTelemetry.Can your team operate its workflow and provider choices outside the happy path?
AutoGenArchivedYou are maintaining an existing system or studying its historical patterns.What is the migration plan? The upstream repository is archived and recommends Microsoft Agent Framework for new work.

01

Choose by workflow shape, not by agent count

Multiple agents are an implementation choice; a reliable workflow is the product requirement.

Begin with the task’s control needs: how long it runs, whether it pauses for approval, what must survive a deploy, and which actions have side effects. LangGraph describes itself as low-level infrastructure for stateful workflows and durable execution. CrewAI separates autonomous role-based Crews from event-driven Flows. The OpenAI Agents SDK provides a lighter agent abstraction with tools, handoffs, guardrails, sessions, and tracing. Microsoft Agent Framework combines agent and workflow patterns across Python and .NET. These are different operating models, not interchangeable labels for the same architecture.

  • Use a deterministic workflow for known steps; add model decisions only where ambiguity has user value.
  • Start with one agent unless delegation measurably improves quality or latency.
  • Treat AutoGen as an existing-system/migration concern: its official repository now says it is archived, unmaintained, and not recommended for production use.
Editor's takeaway

The best first question is not ‘Which framework has the most features?’ It is ‘Which state transitions and failure boundaries must my team own?’

02

Run the same failure-oriented pilot

A hello-world demo tests model access. A production pilot tests interruption, recovery, and auditability.

Implement one representative workflow in each serious candidate with the same model, tools, prompt, data, and acceptance tests. Include a read-only lookup, a write action behind approval, a transient tool error, and a process restart between steps. Record whether the workflow resumes from a durable checkpoint, whether a retry repeats a side effect, and whether the trace explains every model and tool decision. Do not compare raw latency until the implementations perform equivalent work.

  • Keep the test task and dependency versions in a committed fixture.
  • Measure task success, unsafe actions, repeated calls, recovery rate, p50/p95 latency, and cost per successful task.
  • Run at least one negative test: missing permission, malformed tool output, and an expired deadline.
Editor's takeaway

A useful framework benchmark is a reproducible failure test with a documented environment, not a star count or an attractive sample app.

03

Make the choice reversible

Framework APIs change; your business rules and authorization boundaries should not be trapped inside them.

Keep domain tools behind typed interfaces that your application owns. Persist your own task identifiers and business state, and make tool writes idempotent. Capture framework, model, prompt, and tool versions in each trace. For an existing AutoGen deployment, inventory its agent patterns and integrations first, then use Microsoft’s migration guidance to map them to the current framework; avoid treating a package swap as a complete migration plan.

  • Pin a tested release and re-run the pilot before upgrading.
  • Keep provider credentials and tenant authorization outside framework-generated prompts.
  • Document a rollback path and the data format required to resume in-flight work.
Editor's takeaway

Choose the framework your team can debug and replace. The durable asset is your workflow contract and evaluation set—not framework-specific message objects.

Primary sources

First-party repositories and documentation used for this chapter. Check the upstream README and release notes before implementation.

More chapters