Control moves forward. Context moves only as far as the note.
The agent handoff pattern: how AI agents pass work to each other
An agent handoff is when one AI agent transfers control of a task or conversation to another agent that is better suited to the next step. The OpenAI Agents SDK, LangGraph, Microsoft Agent Framework and Pydantic AI all ship it as a primitive, and it suits triage and routing with two to four agents. Handoffs fail when the handoff note drops the reason behind earlier decisions, when two agents pass a case back and forth, and when nobody outside the chain can tell who owns the work now.
How do agent handoffs work?
An agent decides it is not the right one for the current step and hands control to another. The receiving agent gets the conversation, or a summary of it, and continues. There is no lead in the middle. The OpenAI Agents SDK makes handoffs a first-class primitive alongside agents-as-tools. Microsoft Agent Framework's Handoff orchestration lets "agents transfer control to each other". LangChain documents Handoffs next to Subagents and Router. Pydantic AI calls it programmatic hand-off.
Why do teams pick handoffs?
Handoffs map to how people already work: support triage, then billing, then escalation. Each agent stays small, with a short prompt and a few tools. There is no orchestrator to scale or pay for. And the user often talks to exactly one agent at a time, which keeps the experience coherent.
Where do handoffs break?
The note is the context. Whatever the first agent does not write down, the second agent does not know.
Actions carry implicit decisions, and conflicting decisions carry bad results.
Source: Cognition, Don't Build Multi-Agents, Jun 2025
A billing agent that does not know the triage agent already promised a refund will make a different decision.
Ping-pong. Two agents that each think the other should handle an edge case will pass it back and forth. Without a hop limit this burns tokens until a timeout.
No shared view of ownership. Mid-chain, nobody outside the process can easily answer "who has this now?" That matters once a human needs to intervene.
Handoffs usually stay inside one framework. Handing off from an OpenAI Agents SDK agent to a CrewAI crew means a protocol such as A2A, and the handoff note then crosses a boundary where formats differ.
When do agent handoffs work, and when do they break?
| Works when | Breaks when |
|---|---|
| Lanes are clear (triage, specialist, escalation) | Decisions made early are not written down |
| Two to four agents | Two agents can both claim a case |
| One framework | Humans need to see who owns the work |
| Conversation-style tasks | Handoffs cross frameworks or teams |
| The next step depends on the previous result |
Which tools use agent handoffs?
| Tool | How it coordinates | Good for | Source |
|---|---|---|---|
| OpenAI Agents SDK | Handoffs as a primitive; tracing built in | Python/TS apps | OpenAI docs |
| LangGraph | Handoffs pattern on a state graph | Stateful flows needing durable execution | LangChain docs |
| Microsoft Agent Framework | Handoff orchestration with human-in-the-loop | .NET and Python | Microsoft Learn |
| Pydantic AI | Programmatic hand-off, typed | Typed Python apps | Pydantic docs |
| BAND | Handoffs by @mention in a shared room with memories and an activity timeline | Handoffs across frameworks and to humans | BAND platform |
How does BAND relate to handoffs?
In a BAND room a handoff is an @mention addressed to the next participant. Shared memories and the room activity timeline preserve context. People can approve, redirect or override the work in place. Still define the next owner and a stop condition; a room does not decide these for you.
What do people ask about agent handoffs?
What is an agent handoff?
An agent handoff is when one AI agent transfers control of a task or conversation to another agent that is better suited to the next step.
How do I stop context being lost in agent handoffs?
Pass a structured note (intent, decisions and reasons, open questions, next owner), include the full trace where possible, and use a shared store for facts. See our handoff guide.
Handoffs vs orchestrator: which is better?
Handoffs are simpler when lanes are clear and one agent works at a time. An orchestrator is better when a task needs parallel subtasks and one place to decide when it is done.
Updated November 2026
Not sure which pattern fits?
Six questions, about a minute. You'll get a pattern, a shortlist and the tradeoffs.
Which related questions can you explore next?
- the five multi-agent coordination patterns
- What is AI agent orchestration?
- How does multi-agent orchestration work?
- What is the supervisor agent pattern?
- How do you build human-in-the-loop approvals?
- How do you orchestrate coding agents safely?
- What is A2A?
- What is an agent handoff?
- Supervisor vs swarm: who routes work and who answers the user
- Handoffs vs agents as tools: who owns the reply