AutoGen to Agent Framework Migration: What Actually Breaks
AutoGen is archived. Follow this autogen to agent framework migration guide to fix tool wrappers, sessions, and orchestration before your agents break.
By Babul Jack
Microsoft archived the AutoGen GitHub repository on November 20, 2026, and now tells new users to build on Microsoft Agent Framework (MAF) instead. If you have AutoGen running in production, the fastest safe path is a targeted autogen to agent framework migration: swap model clients, convert FunctionTool wrappers to @tool functions, add explicit sessions, and remap your group-chat orchestration before your multi-agent code silently changes behavior.
AutoGen's GitHub page now carries a banner: "This repository was archived by the owner on Nov 20, 2026. It is now read-only," and the project README explicitly says it is "no longer actively maintained by Microsoft" and that the team "continue[s] to advise against production use." That is not a vague deprecation notice — it is a dead end for anyone who needs security patches, bug fixes, or new model-provider support.
In client projects I've seen this pattern before: a research-grade framework gets adopted for a demo, the demo becomes a product, and eighteen months later the vendor moves on. AutoGen was always labeled as built "for research and experimentation," and Microsoft says so again in the archive notice. The difference this time is that there's a named, documented successor built by the same people, which makes migrating a planning exercise rather than a framework gamble.
What Microsoft Agent Framework actually is
Microsoft Agent Framework is described in its own docs as "the direct successor" to both AutoGen and Semantic Kernel, "created by the same teams," combining "AutoGen's simple abstractions for single- and multi-agent patterns with Semantic Kernel's enterprise-grade features such as session-based state management, type safety, filters, telemetry, and extensive model and embedding support." It adds a new graph-based Workflow engine for explicit multi-agent execution paths, something neither predecessor had in the same form.
MAF supports Microsoft Foundry, Azure OpenAI, OpenAI, Anthropic, AWS Bedrock, GitHub Copilot and Ollama as model providers, and speaks A2A, AG-UI and MCP for interoperability, according to Microsoft's own release-candidate announcement. It ships as agent-framework on PyPI for Python and Microsoft.Agents.AI on NuGet for .NET, with a Go SDK in public preview as of late 2026.
How to plan the migration in 2026
Step 1: Inventory what you actually use
Before touching code, list every AutoGen class your app depends on: AssistantAgent, FunctionTool, RoundRobinGroupChat, SelectorGroupChat, Swarm, MagenticOneGroupChat, and any custom model clients. Microsoft's official migration guide maps each one directly to an MAF equivalent, so this inventory becomes your task list.
Step 2: Swap the model clients first
Model client setup changes shape even when the provider stays the same. AutoGen's AzureOpenAIChatCompletionClient becomes MAF's OpenAIChatClient configured with azure_endpoint and a credential object; OpenAI's OpenAIChatCompletionClient carries the same class name in MAF but with a simpler constructor that reads the API key from the environment. Anthropic and Ollama clients are marked "planned" rather than shipped in the current MAF migration guide, so check current support before you cut over a provider you rely on.
Step 3: Convert tools and expect multi-turn by default
AutoGen wraps functions in FunctionTool; MAF uses a @tool decorator that infers the schema automatically. The bigger behavior change is default turn handling:
# AutoGen — single-turn unless you raise max_tool_iterations
agent = AssistantAgent(
name="assistant",
model_client=client,
tools=[my_tool],
max_tool_iterations=1
)
# Agent Framework — multi-turn by default, keeps calling tools
# until it can produce a final answer
agent = client.as_agent(
name="assistant",
instructions="You are a helpful assistant.",
tools=[my_tool],
)
If your AutoGen agent relied on stopping after one tool call, test this carefully — MAF's Agent "automatically iterates through tool calls" per Microsoft's own comparison table, and an agent that used to stop can now keep working, calling tools, and spending tokens until it decides it's done.
Step 4: Make state explicit with sessions
AutoGen's AssistantAgent keeps conversation history as implicit internal state. MAF's Agent object is stateless by design; you create an AgentSession and pass it into every run() call to carry history forward. This is a deliberate design choice for multi-tenant and serverless deployments, where you don't want conversation state pinned to one object in memory.
Step 5: Remap group chat to workflow builders
This is where most of the real engineering work lives. AutoGen's orchestration classes map to new MAF builder patterns:
AutoGen
Microsoft Agent Framework
RoundRobinGroupChat
SequentialBuilder
SelectorGroupChat
GroupChatBuilder
Swarm
HandoffBuilder
MagenticOneGroupChat
MagenticBuilder
MAF's orchestration model is a typed, graph-based Workflow that "routes data along edges and activates executors when inputs are ready," replacing AutoGen's event-driven core and high-level Team abstraction. If your current code leans on AutoGen's distributed runtime, note that MAF "focuses on single-process composition today" and lists distributed execution as planned rather than shipped.
Step 6: Run both side by side before cutting over
Microsoft publishes runnable AutoGen-vs-MAF sample pairs in the agent-framework GitHub repo specifically so each sample "runs AutoGen first, then AF" in a single execution for direct output comparison. Use that pattern on your own highest-risk workflows — the ones with group chats, tool approval loops, or checkpointing — before you remove the old code path.
Is Microsoft Agent Framework production-ready yet?
As of late 2026, MAF has passed Release Candidate for both .NET and Python, meaning the API surface is stable and the features planned for 1.0 are complete, according to Microsoft's own devblog. Treat Release Candidate as "stable enough to build against, still worth pinning versions and watching changelogs," not as a guarantee that every integration you need already exists — Anthropic and Ollama client support, for example, were still listed as planned rather than shipped in the migration guide at the time of writing.
What this means if you're choosing a framework from scratch
If you're starting new multi-agent work today rather than migrating existing AutoGen code, the calculation is simpler: AutoGen is no longer a viable choice for anything shipping to production, so the real decision is between Microsoft Agent Framework and non-Microsoft options like LangGraph or CrewAI. We cover that broader comparison, including where each framework's orchestration model and observability story actually diverges, in our AI agent framework comparison.
If your agents also need to talk to each other across vendor boundaries rather than just orchestrate internally, pair this migration with a look at how MAF's A2A support fits alongside MCP — we break down when you need one, the other, or both in A2A protocol vs MCP.
Checklist before you ship the migration
Inventory every AutoGen class in use (agents, tools, group chat types, model clients)
Replace FunctionTool wrappers with @tool-decorated functions
Add explicit AgentSession objects anywhere conversation history mattered
Re-test tool-calling limits — MAF's multi-turn default can change cost and latency
Remap group chat classes to the matching Builder pattern from the table above
Run AutoGen and MAF side by side on your riskiest workflows before cutover
Confirm your model provider (especially Anthropic or Ollama) has shipped, not just planned, support
Re-run your evaluation suite against the new agent before a full rollout — if you don't have one yet, see our AI agent evaluation framework guide
If you'd rather hand this off, this is exactly the kind of migration work we take on through AI agent development — mapping existing multi-agent logic onto a supported framework without breaking the behavior your product depends on.
Frequently asked questions
Is AutoGen completely dead?
The GitHub repository is archived and read-only as of November 20, 2026, and Microsoft says it's no longer actively maintained. Existing code keeps working, but there will be no further fixes, security patches, or new provider support from Microsoft going forward.
Can I keep running AutoGen in production?
You can, but Microsoft's own documentation says AutoGen "was developed for research and experimentation" and the team "continue[s] to advise against production use" even before the archive. Running an unmaintained framework in production means you own every future bug and security issue yourself.
How long does a typical AutoGen to Agent Framework migration take?
It depends entirely on how much orchestration logic you have. A single-agent tool-calling app can often migrate in a day using the official class mapping. A multi-agent system with custom group chat patterns, checkpointing, and human-in-the-loop steps is a multi-week project because the orchestration model itself changes from event-driven to graph-based.
Does Microsoft Agent Framework support the same model providers as AutoGen?
Mostly, but not entirely as of late 2026. OpenAI, Azure OpenAI and Microsoft Foundry are fully supported, but Anthropic and Ollama clients were still marked "planned" rather than shipped in Microsoft's official migration guide, so check current status before migrating a provider-specific integration.
What's the single biggest behavioral risk in this migration?
The default multi-turn tool-calling behavior. AutoGen's AssistantAgent is single-turn unless you raise max_tool_iterations; MAF's Agent keeps calling tools automatically until it decides it has a final answer. Any workflow that assumed "one tool call, then respond" needs explicit testing after migration.
Key takeaways
Microsoft archived the AutoGen GitHub repository on November 20, 2026, and it is now read-only with no further maintenance.
Microsoft Agent Framework is the official, same-team successor to both AutoGen and Semantic Kernel, and has reached Release Candidate for .NET and Python.
The migration has two parts: a mostly mechanical API swap (model clients, @tool decorators, explicit sessions) and a genuinely different orchestration model (event-driven Team vs. graph-based Workflow).