Picking a Multi-Agent Framework Now That AutoGen Is Archived

Autonomous AI agents using CrewAI and AutoGen to coordinate research, planning, collaboration, and multi-step workflow execution

Table of Contents

Key Takeaways

  • AutoGen is no longer a choice for new work. Microsoft archived the repository on 20 November 2026 and ships no further fixes; its direct successor is Microsoft Agent Framework.
  • Prove a single agent fails before adding a second. Split the work only when roles need different tools, permissions or validation, or when one context window cannot hold the job.
  • Put deterministic code around the agents. CrewAI Flows and Agent Framework workflows both let ordinary code own routing, state and approvals while agents handle the ambiguous steps.
  • Agents propose, services execute. Tool gateways with least privilege, idempotency keys and hard stopping limits keep a confused or manipulated agent from repeating or widening its mistakes.
  • Judge the system by cost per successful workflow. Count only cases that reach an accepted outcome, and include human review and tool charges in the cost.

You have a process that eats hours of skilled time every week: a refund investigation, a supplier quote review, a response to a request for proposal. Someone on your team has a notebook demo where three or four AI agents pass the work between them, and it looks convincing. Now you have to decide whether to build it properly, on which framework, and with what controls before it touches real customer or financial data.

That decision changed in November 2026. Microsoft archived AutoGen, its open-source multi-agent framework, and points new users to Microsoft Agent Framework instead. This article compares CrewAI, AutoGen and its successor at the level of how they represent roles, state and stopping rules, then covers the orchestration patterns, guardrails and measurements that decide whether a multi-agent workflow survives production. Framework details were checked against each project’s documentation in November 2026.

Do you actually need more than one agent?

Autonomous AI agent and multi-agent framework showing specialized agents coordinated by an orchestration layer

An autonomous agent is a model in a loop: it reads the goal and the current state, picks a permitted tool, looks at the result and decides what to do next until it finishes or hits a limit. A multi-agent framework lets several of these loops share a job, each with a narrower role, while an orchestration layer decides who runs when and what counts as done.

Both framework vendors and model providers say the same thing about where to start. Microsoft’s Agent Framework documentation puts it bluntly: if you can write a function to handle the task, write the function instead of using an agent. Anthropic’s engineering guide to building agents, published in December 2024, recommends finding the simplest solution that works and adding complexity only when it measurably improves results.

Take a refund investigation. It needs the order record, delivery proof, payment status, the refund policy, a fraud screen and a reply to the customer. One agent can attempt all of it, but it then needs read access to orders, payments and the fraud tool, plus write access to the ticketing system, and its context fills with material from every step. Splitting it gives you an order agent that only reads orders and deliveries, a policy agent that only reads the policy, and a review step that checks the two agree before anything reaches a person for approval.

ApproachExecution MethodBest-Suited WorkflowsPrimary Limitation
Traditional automationPredefined rules and fixed stepsPredictable, repetitive operationsLimited adaptability to unexpected inputs
Single AI agentOne agent interprets goals and uses toolsFocused tasks requiring flexible reasoningCan become difficult to manage as responsibilities expand
Multi-agent systemSpecialized agents coordinate interconnected responsibilitiesComplex workflows spanning different domainsAdditional coordination, latency, and monitoring requirements

The case for a second agent is a boundary you can name: different permissions, a different knowledge source, a check that should not be done by the same model that produced the answer, or a context window that overflows. “It feels more organized” is not one of them. Each extra agent adds model calls, latency and another place for errors to start.

Founder and Enterprise Decision Signals

01

Workflow Complexity

Consider multiple agents when distinct stages require different knowledge, tools, or decision-making responsibilities.

02

Operational Volume

Repeated high-effort workflows may justify investment in orchestration, monitoring, and integration infrastructure.

03

Data and Integration Readiness

Agents need reliable access to approved business information. Fragmented or inaccurate data can undermine even a sophisticated architecture.

04

Governance Readiness

Organizations should establish permission boundaries, approval processes, and accountability before introducing autonomous operational actions.

A good first candidate is a recurring workflow that costs real coordination time, has acceptance criteria you can check, and does little damage if a draft is wrong. Prove it there, then widen the scope.

The parts every multi-agent workflow needs

Whatever framework you choose, the same six pieces have to exist somewhere. The model handles the uncertain reasoning; ordinary software decides what is authorized, records what happened and checks the result.

A measurable objective, broken into tasks

“Manage customer operations” is not an objective. “Review this support request, verify the order, decide whether it meets the refund policy and prepare a recommendation” is. Some of the resulting tasks are fixed by the application; others can be chosen at run time by a planning agent. Keeping the skeleton fixed stops the model from redesigning your business process mid-run.

Roles with their own permissions

A role is defined as much by what it may not touch as by what it does. The agent that retrieves documents does not need permission to change the records it reads. Separating these capabilities limits the damage from a wrong decision and lets you test each component on its own.

Orchestration and dependencies

The orchestrator decides which tasks run, in what order and under which conditions. In an invoice review, the invoice lookup and the supplier lookup can run in parallel, and reconciliation starts only when both return valid results. If a document is missing, the workflow branches to an exception path instead of letting the next agent guess.

A tool gateway that validates every call

Tool calling is what makes an agent useful: database queries, document search, CRM lookups, calculations. The model only proposes the call. The gateway checks that the order ID is well formed, that this workflow may read that record, and that the parameters are within limits, regardless of what the model asked for.

Shared state and structured handoffs

Conversation history is not a business record. Agents should hand over typed results, not paragraphs: a document review step returns a document ID, extracted fields, missing requirements, source references and a status. The next agent then works from facts that have already been checked, and you can validate the handoff against a schema before anything acts on it.

Information LayerPurposeExample
Short-term contextSupport the current reasoning taskRecent agent messages
Persistent workflow stateTrack execution progress and approvalsCompleted validation steps
Knowledge retrievalProvide relevant reference materialApproved company policies
Authoritative business recordsRepresent actual operational informationOrder, invoice or customer records
Audit historySupport accountability and investigationTool calls and approval decisions

Retrieval keeps prompts small: the agent gets the relevant policy passages rather than the whole handbook, and the application records which sources it saw and whether it was allowed to see them.

Completion criteria the application checks

A fluent answer is not a finished workflow. Completion should mean the required documents were reviewed, the numbers were verified and the needed approvals exist. If a check fails, the workflow retries that one task, asks for the missing input or escalates to a person, within a retry limit.

A Typical Multi-Agent Workflow Architecture

01

Business Objective / Incoming Event

A business goal or incoming event initiates the workflow.

02

Orchestration and Task Planning Layer

Coordinates tasks, dependencies and agent responsibilities.

03

Research, Analysis and Specialist Agents

Specialized agents handle research, analysis and domain-specific tasks.

04

Authorized Tools, APIs and Shared Workflow State

Agents exchange information with approved tools, APIs and shared state.

↕ Bidirectional interaction between agents and tools
05

Validation and Policy Checks

Outputs and proposed actions are checked against business requirements and policies.

06

Human Approval When Required

Sensitive or restricted actions are reviewed before authorization.

07

Authorized Execution and Audit Record

Approved actions are executed and relevant workflow activities are recorded.

Note: Illustrative architecture. The precise execution order and approval requirements depend on workflow complexity, business policies and integration constraints.

How CrewAI organizes the work

CrewAI models a workflow as a team. Each agent has a role, a goal, tools and a model. Each task describes the work and the expected output. A Crew groups agents and tasks and runs them under a process.

The documentation lists two processes. In a sequential process, tasks run in list order and each output becomes context for the next; the context attribute lets you choose exactly which earlier outputs a task receives. In a hierarchical process, tasks are not pre-assigned: a manager, created from a manager_llm or supplied as a manager_agent, plans, delegates, reviews outputs and decides when the work is complete.

Several task and agent settings matter more in production than in a demo:

  • output_pydantic or output_json forces a task to return a typed structure, which is how you get the structured handoffs described above.
  • guardrail runs your own validation function on a task’s output before it passes on; guardrail_max_retries defaults to 3.
  • human_input (off by default) has a person review the agent’s final answer for that task.
  • async_execution lets independent tasks run without blocking the crew.
  • On agents, max_iter defaults to 20 and allow_delegation to false, while max_rpm and max_execution_time have no limit unless you set one. Set them.

Flows: where your code stays in charge

Crews organize agent collaboration; Flows organize the application around them. A Flow is ordinary Python with decorators: @start marks entry points, @listen runs a step when another finishes, and @router returns a label that sends execution down one branch. State can be a free-form dictionary or a Pydantic model with typed, validated fields. @persist saves state (SQLite by default) so a run can resume under the same ID, and @human_feedback, added in CrewAI 1.8.0, pauses a Flow to collect a person’s verdict and routes on it.

In practice this means a Flow can validate an incoming request with plain code, start a Crew only for the document analysis, check the Crew’s typed output, and route to approval or an exception queue. The agents never control the whole process, which is usually what you want when reliability matters more than autonomy.

Example: a proposal response crew

A request for proposal arrives with technical requirements, commercial terms and strict submission rules. Today it takes a salesperson, a technical specialist and a reviewer. A crew for it might look like this:

Agent RoleAssigned ResponsibilityExpected Output
Requirements analystExtract mandatory requirements and deadlinesStructured requirement checklist
Knowledge retrieval agentRetrieve approved capabilities and supporting documentsEvidence mapped to requirements
Proposal drafting agentPrepare responses using validated evidenceStructured proposal draft
Quality review agentIdentify missing answers and unsupported claimsReview report and correction requests
Workflow controllerCheck completion and route for approvalReview-ready proposal package

Note what it does not do: submit. Its value is a complete, evidence-backed draft, with pricing commitments and the final submission left to people. The workflow controller row is best written as a Flow step in code, not as another agent.

AutoGen’s conversation model, and what replaced it

AutoGen started as a Microsoft Research project and made a different bet: agents coordinate by exchanging messages. Its AgentChat layer offered ready-made teams, such as RoundRobinGroupChat (agents take turns), SelectorGroupChat (a model picks the next speaker) and Swarm (agents hand off to each other), on top of an event-driven Core runtime.

That model suits investigations where the next step depends on what was just found. Picture an incident review: a diagnostic agent pulls monitoring data, an infrastructure agent checks recent configuration changes, an analysis agent proposes causes, and a reviewer sends it back for more evidence when a theory does not fit the data. The output is a likely cause, the evidence, open questions and suggested fixes. Any actual infrastructure change stays behind a separate, authorized control.

The weakness of open conversation is that it may not converge. AutoGen’s answer was composable termination conditions, among them MaxMessageTermination, TokenUsageTermination, TimeoutTermination and TextMentionTermination, combined with OR so a run stops on whichever limit comes first, or with AND when every condition must hold. Whatever framework you use, copy that idea: every loop gets a message cap, a token cap and a clock.

AutoGen status as of November 2026

Microsoft archived the AutoGen repository on 20 November 2026. It is now read-only, and the README states that Microsoft provides no bug fixes, security fixes, new features or support.

New users are directed to Microsoft Agent Framework, and Microsoft publishes a migration guide from AutoGen. The README also advises against production use. Teams running AutoGen in production should plan that move and review their dependencies for security exposure in the meantime.

The design lessons in this section still apply; the package itself should not be the base for a new system.

Microsoft Agent Framework in brief

Microsoft describes Agent Framework as the direct successor to both AutoGen and Semantic Kernel, built by the same teams. It keeps AutoGen’s simple agent abstractions, adds Semantic Kernel’s session state, middleware and telemetry, and introduces workflows: graphs of executors (agents, functions or sub-workflows) connected by typed edges. Workflows can pause for outside input through request and response events, which is how human approval is built, and can save checkpoints so a long-running process resumes after a failure. Ready-made builders cover sequential, concurrent and Magentic-style orchestration. As of November 2026 it supports .NET and Python, with Go in public preview.

CrewAI, AutoGen and Agent Framework side by side

Asking which framework “supports more agents” misses the point; all three coordinate many. The useful question is how each represents roles, state and control, and whether it will still be maintained in two years.

FactorCrewAIAutoGenMicrosoft Agent Framework
Core ideaRole-based agents and tasks grouped into CrewsAgents coordinating through messages in teamsAgents plus graph workflows of typed executors and edges
Deterministic controlFlows with start, listen and router stepsGraphFlow and team settingsWorkflows with conditional, parallel and nested paths
Built-in orchestrationSequential and hierarchical processesRound-robin, selector and swarm teamsSequential, concurrent and Magentic builders
State and recoveryTyped Flow state; @persist to resume a runAgent and team state; persistence left to the applicationSession state; workflow checkpoints and resume
Human approvalhuman_input on tasks; @human_feedback in FlowsUserProxyAgent, or a handoff that stops the team for user inputRequest and response pauses inside workflows
Stopping rulesmax_iter, max_execution_time, guardrail retriesComposable termination conditionsBounded loops and workflow-level limits
Maintenance (November 2026)Actively releasedArchived 20 November 2026Actively developed successor to AutoGen

CrewAI is the quicker fit when the process already has named roles and deliverables and your team works in Python. Agent Framework fits teams on .NET or Azure, or those who want explicit graph workflows with checkpoints from the start. An AutoGen prototype is a reason to read the migration guide, not to keep building.

The two styles also combine. A structured workflow can contain a conversational investigation step, and a conversational system still needs fixed validation and approval points around it.

Orchestration patterns that match real processes

The pattern you choose shapes cost, latency and how failures spread more than the framework does. Anthropic’s guide names similar patterns (prompt chaining, routing, parallelization, orchestrator-workers and evaluator-optimizer); the business versions look like this.

  • Sequential. Contract review: extract, analyze clauses, summarize risk. Easy to trace where an error began; slower when steps that could run in parallel are forced to wait.
  • Parallel. Procurement: price analysis, contract terms and vendor checks at the same time, then a reconciliation step. Shorter elapsed time, but more simultaneous model and API load.
  • Hierarchical. A manager agent assigns work when incoming requests vary too much for a fixed sequence. Cap how many tasks it may create, or cost and run time become unpredictable.
  • Evaluator loop. One agent drafts, another checks against stated requirements and asks for targeted fixes. A model evaluator misses things, so add deterministic checks and source verification where you can.
  • Conditional routing with approval. Routine cases go through on read-only steps; exceptions go to a specialist queue. Treat the human checkpoint as a workflow state: suspend, show the evidence, resume only when a decision is recorded.
Orchestration PatternBest ApplicationImportant Control
SequentialDependent document-processing stagesValidate each completed stage
ParallelIndependent research and information retrievalSynchronize and reconcile results
HierarchicalDynamic task delegationRestrict delegation scope
Evaluator loopDrafting and quality improvementSet acceptance criteria and retry limits
Conditional routingException handling and approvalsUse explicit business policies

Guardrails that stop runaway agents

Multi-agent systems fail in ways fixed automation does not. An agent misreads the goal, picks the wrong tool or keeps asking for revisions. Worse, an early mistake can grow more convincing as later agents repeat and build on it. These controls belong in the application, not in the prompt.

Budgets and termination you enforce

Every run needs limits on agent turns, retries, wall-clock time and tokens, and a defined state it enters when a limit is hit: failed, or escalated with what it found so far. Do not let an agent’s own “I’m done” end the run. The application checks the acceptance criteria independently.

Least privilege and prompt injection

Agents read emails, web pages, uploaded files and database text, and any of it can carry instructions planted by someone else. OWASP lists prompt injection first in its 2025 Top 10 for LLM applications (LLM01) and separates direct injection, typed by a user, from indirect injection hidden in content the model ingests. Its mitigations map directly onto agent design: give the model the minimum privileges its task needs, mark external content as untrusted, and require human approval for high-risk actions. The same list names Excessive Agency (LLM06), which is what you get when a retrieval agent quietly inherits permission to send email or edit accounts.

Separate reasoning from execution

Agents can classify, recommend and prepare transaction parameters. The transaction itself should go through an application service that checks authorization, input limits and approvals. That way a model-generated instruction never becomes a valid business action on its own, and you have one place to keep audit records and block duplicates.

Idempotency and safe recovery

Suppose an agent creates a support ticket and the connection drops before the confirmation arrives. A blind retry creates a second ticket; with a payment it charges twice. A common fix comes from payment APIs. Stripe’s idempotent requests, for example, take a client-generated key (up to 255 characters, ideally a random UUID), and in the v1 API store the result of the first request and return that same result to any retry with the same key. Give every side-effecting tool call an operation ID derived from the workflow run and step, and store workflow state so an interrupted run resumes from its last checkpoint instead of starting over.

Traces you can audit

You should be able to answer, for any run, what each agent tried, which tools it called with what parameters, which evidence it used, and why it escalated. Log those events without copying sensitive data into the trace. The same records drive debugging, security reviews and routing improvements.

From prototype to operational access

A demo uses tidy data, few integrations and hand-picked tasks. Production brings inconsistent records, simultaneous requests, changing policies and someone accountable for every outcome. A rollout that holds up usually follows this order:

  1. Map the current process from trigger to outcome: what people look up, which rules they apply, which exceptions they hit. Mark which steps need judgment and which are fixed rules; the fixed ones become code, not prompts.
  2. Build a single-agent baseline with a few read-only tools and run it against real past cases. Add agents only where the baseline shows a concrete problem, such as conflicting permissions or overloaded context.
  3. Write a contract for each agent: inputs, permitted tools, output schema, completion test and escalation rule. A supplier review agent, say, returns supplier IDs, extracted terms, source references, discrepancies and a status, and output that fails the schema is rejected before anything acts on it.
  4. Test the ugly cases before granting write access: ambiguous inputs, missing documents, contradictory evidence, tool outages and documents written to mislead. Measure whether the whole workflow reaches the right outcome, not whether each agent sounds convincing.
  5. Expand permissions in steps, from read-only, to drafts a person approves, to limited automatic actions, as the metrics justify each step.
  6. Re-run the test set on every change to models, prompts, tools or routing, and watch traces for slow handoffs and repeated failures.
 Evaluation framework for autonomous multi-agent systems showing workflow success rate, task accuracy, grounding accuracy, tool-call failures, latency, cost, and safety metrics

Intermediate outputs can all be correct while the process still fails, so measure the workflow end to end as well as per component:

Performance MetricWhat It MeasuresWhy It Matters
Workflow success ratePercentage of eligible cases reaching an accepted outcomeShows end-to-end effectiveness
Task accuracyCorrectness of intermediate agent outputsIdentifies unreliable components
Grounding accuracyWhether factual claims are supported by approved evidenceReduces unsupported recommendations
Tool-call failure rateFailed or invalid interactions with external systemsHighlights integration problems
Escalation rateCases requiring human involvementHelps assess practical autonomy
Execution latencyTime required to complete a workflowMeasures operational responsiveness
Cost per successful workflowOperating expenditure for accepted outcomesMeasures financial efficiency
Unauthorized action attemptsAttempts to exceed defined permissionsIdentifies governance and security risks

Read these together. A falling escalation rate is bad news if wrong decisions rise with it, and a lower token bill means little if fewer cases complete.

What a run really costs

Every extra agent adds model calls, messages and validation steps. The biggest avoidable cost is usually context: passing the full conversation to every agent instead of a short typed result. Next come using a large model for simple classification or extraction, repeating identical retrievals and tool calls, and letting revision loops run without a cap. Fixed calculations, field validation and permission checks belong in code. For the pricing side, see our guide to controlling generative AI token costs.

Workflow Cost Formula

COST PER SUCCESSFUL WORKFLOW
Cost per successful workflow = Total workflow operating cost Number of successfully completed workflows

Total Operating Cost Can Include

01

Model inference and token consumption

02

API and external tool charges

03

Infrastructure and data storage

04

Human review and exception handling

05

Monitoring and maintenance expenditure

This metric helps determine whether additional agents improve overall business economics rather than merely increasing automation activity.

As a hypothetical illustration: if running a workflow for a month costs $600 across models, tools, hosting and review time, and 800 cases reach an accepted outcome, the cost is $0.75 per successful case. These are made-up numbers, not a framework price or a forecast. The useful comparison is that figure against the fully loaded cost and error rate of the process it replaces.

Where Miracuves fits

Most of the effort in a production agent system sits outside the framework: the tool gateway, workflow state, approval screens, connectors to your existing systems, and the test set that tells you when a change made things worse. That is the part Miracuves builds through its AI agent development service. We start from one workflow with clear acceptance criteria, build the baseline, and add agents, permissions and automatic actions only as the measurements support them. Scope and timeline depend on the workflow, the integrations and your security requirements, and we agree them after reviewing the process with you.

MIRACUVES
Build autonomous AI agents that coordinate complex multi-step business workflows.
Combine CrewAI or AutoGen-style orchestration, specialized agents, tool access, API integrations, task routing, shared context, approval checkpoints, memory, monitoring, retries, and human escalation in one production-ready AI workflow system.
Custom AI Agent Development
Discuss agent orchestration, tool integrations, memory, approvals, observability, failure recovery, customization, and your AI automation roadmap.

Frequently Asked Questions

Is AutoGen still maintained?

No. Microsoft archived the AutoGen GitHub repository on 20 November 2026, making it read-only, and its README says Microsoft provides no bug fixes, security fixes, new features or support. New users are pointed to Microsoft Agent Framework, which Microsoft calls the direct successor to AutoGen and Semantic Kernel, and a migration guide covers moving existing AutoGen code.

Should I use CrewAI or Microsoft Agent Framework?

CrewAI suits Python teams whose process already has clear roles and deliverables, with Flows keeping routing and state in code. Agent Framework suits teams on .NET or Azure, or those who want graph workflows with checkpoints and built-in pause points for human approval. Both are actively developed as of November 2026, so the deciding factors are your language, hosting and the control model you prefer.

When do you need multiple AI agents instead of one?

When you can name a boundary that one agent handles badly: steps that need different permissions, different knowledge sources, an independent check on another agent’s output, or more context than one model call can hold. If a single agent with a few read-only tools passes your test cases, or a plain function can do the job, adding agents only adds cost and latency.

How do you stop AI agents from looping forever?

Enforce limits in the application, not the prompt: caps on agent turns, retries, tokens and wall-clock time, plus a defined state the run enters when a limit is hit. CrewAI agents default to 20 iterations, and AutoGen offered combinable termination conditions such as message and token limits. The application should also check completion criteria itself rather than trusting an agent that says it is done.

How do you protect AI agents from prompt injection?

Treat every email, web page and uploaded file an agent reads as untrusted data. Give each agent only the tools and permissions its task needs, route actions with side effects through a service that validates parameters and authorization, and require human approval for high-risk steps. These follow the mitigations OWASP lists for prompt injection, the first risk in its 2025 Top 10 for LLM applications.

How much does it cost to run a multi-agent workflow?

It depends on model choice, how much context each agent receives, tool charges and human review time. Measure it as total operating cost divided by the number of cases that reach an accepted outcome. As a made-up example, $600 a month across 800 successful cases is $0.75 per case, which you then compare with the full cost of the manual process it replaces.

Disclaimer

Miracuves is an independent software development company. We are not affiliated with, connected to, sponsored by, or endorsed by any company or product named in this article.

Why this name

Terms such as “X Clone” are used descriptively. It is how the software industry refers to building a platform with functionality comparable to a known service, and how clients search for it.

Who built this

The entire design and codebase of our products is built by our own team. Our products contain no code, design, graphics, or content originating from any third-party website or applications.

Trademarks

All third-party names and marks referenced in this article are the property of their respective owners, referenced solely to identify the services discussed.

Tags

Connect

This field is for validation purposes and should be left unchanged.
Your Name(Required)