Agent Handoff
Agent handoff is the structured state dump that transfers task context from one agent to a human or another agent without context loss. It packages the reframed goal, plan status, current world state, decisions, artifacts, and next steps into a scannable artifact the receiver can act on in under thirty seconds. The handoff turns every pause into a checkpoint instead of a cliff. It lives inside existing workflows so nobody switches tabs or digs through logs. Linear AI bakes it directly into issues. Cursor drops it as a markdown file in the repo. The handoff connects to every other pattern in the agent UI stack. Skip it and even the best plan surface or progress stream collapses the moment the task crosses a boundary. The best handoffs feel like a senior designer handed off a ticket to an engineer. They anticipate every question the receiver will ask and answer it in advance. They reduce resumption cost to near zero. This is high leverage design work that most teams treat as an afterthought until their first production failure.
Agent handoff is not a vague chat message that says the task got stuck. It is not the raw unfiltered tool call log vomited into a text box. It is not a separate dashboard disconnected from the actual work surface. It is not a generic retry button paired with zero additional context. It is not the agent's internal monologue translated into slightly cleaner sentences. Products that shipped these half measures in 2024 trained users to never trust agents with real work. The fix sits in deliberate structure. Force the agent to curate its activity into a tight readable format every single time it pauses. Anything less wastes the entire autonomy layer.
Concrete examples show exactly how the pattern ships in production tools. Linear AI in 2024 nailed it by treating every AI generated issue as a living handoff document. The agent parses a vague brief into title description labels subtasks and acceptance criteria the user can edit. As it works it posts structured comments that update priority fields attach code diffs and suggest linked PRs. When it hits a policy gate it leaves sections labeled Current State Work Completed Decisions Made and Next Actions with three concrete buttons the engineer can click. A teammate opens the ticket cold and absorbs everything in twenty seconds. No extra tools. No lost context. The handoff lives where the work already lives which makes it invisible and powerful at the same time.
Cursor took a code native approach in its agent releases that year. For any refactor exceeding five steps the agent generates an agent_handoff.md file checked straight into the branch. The file opens with the original user goal then lists every planned step with status icons. Completed steps include test output and benchmark numbers. Blocked steps list exact file locations line numbers and suggested edit targets. A For the human section translates model reasoning into plain directives like run this test suite before merging. Developers report cutting code review time in half because the handoff doubles as documentation. Future git blame traces the thinking instead of a black box.
Devin from Cognition pushed the pattern into full workspace theater. The handoff is not a document. The entire workspace becomes the artifact. The plan surface doubles as a persistent log with every step lit green or red. The embedded browser freezes at the exact DOM state with overlaid annotations on clicked elements. The terminal preserves the last twelve commands with outputs. A side panel holds generated assets and decision rationales. By the middle of 2024 Cognition added collapsible sections after early users complained about overload. The result works for hour long feature builds where a lightweight comment would fail. The human steps into a fully staged environment instead of reconstructing it.
ChatGPT Operator handled browser tasks with visual timelines. When the agent pauses for confirmation or policy it produces a replay card containing screenshots at every major step a table of extracted data and exact URLs visited. Each entry links to the live sandbox so the human can resume from that precise moment or take manual control. The visual format matches the medium. A text only handoff for web navigation would lose fidelity on layout changes or error states. Operator forces designers to select handoff format during initial pattern selection rather than bolting it on later.
Bolt and v0 both tightened their handoffs after launch feedback. Bolt now generates a project brief card that captures chosen architecture styling decisions with tailwind examples state management choices and a prioritized list of known issues rated by severity. v0 maintains versioned checkpoints inside the canvas with clear labels for what each agent pass changed and what remains unpolished. These examples prove even visual generation tools need rigorous handoff surfaces when output heads to production codebases or design systems.
The pattern scales to agent to agent transfers. A research agent finishing market analysis produces a markdown summary for humans plus embedded YAML blocks the next coding agent can parse directly. Dual format keeps both human and machine readers in sync without forcing one to suffer for the other. Every strong example shares three traits. The handoff takes under thirty seconds to scan. It preserves exact state instead of summarizing it. It lives inside the primary workflow instead of in a sidecar.
Use agent handoff on any task that spans more than five minutes modifies more than two files or drops below eighty percent confidence. Use it at every policy gate every human decision point and every session boundary. Use it automatically so the agent never asks permission to summarize its own work. Design the handoff surface right after the plan surface and progress stream because the three form a connected system. Treat it as load bearing infrastructure instead of a nice to have summary.
Skip detailed handoffs during rapid single session exploration where the user watches the progress stream live. Skip them on throwaway tasks where context loss costs nothing. Never skip them at the end of long runs simply because the model claims completion. The human always needs the distilled artifact to verify integrate and extend the work.
A strong agent handoff is the artifact that proves your agent was designed by someone who actually ships software instead of someone who just demos it.
Read the full guide
Related terms
Keep exploring
AI Agent UI
AI Agent UI is the control surface for autonomous AI workers that take a goal, generate an editable plan, execute tools, and report live progress while giving users clear override and recovery options. It treats the agent as a supervised employee rather than a chat partner.
Error Recovery
Error recovery is the UI surface that activates when an agent step fails. It surfaces the exact failure point, preserves all prior state, and offers concrete buttons for retry, edit, manual takeover, backtrack, or handoff so the task moves forward instead of dying.
Task Framing
Task framing is the structured input pattern that converts a user's casual goal into a complete set of editable parameters before an agent begins planning. It forms the foundation of trustworthy agent UIs by eliminating assumptions that lead to misaligned execution.
Plan Surface
The structured editable list that shows every step an agent plans to take before it executes a single action. It turns invisible model reasoning into a reviewable contract the user can modify inline or reject outright.
Progress Stream
The progress stream is the real-time structured log of every tool call, file edit, command output, and state change an agent makes so the user can supervise instead of guess.