Agent Handoff

Simple Definition

An agent handoff is the moment one AI agent, or one session of an agent, passes unfinished work to another. Done well, it comes with a short handoff note so the next agent can continue without redoing work or reversing decisions it does not know about.

Plain-English Explanation

Agents hand off work all the time: a session hits its context limit and a fresh one takes over, a planning agent passes a task to a coding agent, an overnight agent leaves work for a daytime one, or a person switches from Claude Code to Codex halfway through a feature. The receiving agent starts with an empty head. Whatever the first agent learned and did not write down is gone.

A handoff note fixes that. It is the agent equivalent of a shift-change report in a hospital: short, structured, and focused on what the next person needs to act safely.

Some agent frameworks also use “handoff” more narrowly, for one agent passing control of a conversation to a specialist agent, such as a triage agent routing a customer to a billing agent. The same rule applies: the receiver needs the relevant context, not the whole transcript.

What a Good Handoff Includes

  • Current objective: what the task is for, in one or two sentences.
  • Completed work: what is done, with commit hashes or file names.
  • Decisions: choices already made and why, so the next agent does not undo them.
  • Verified facts: things that were checked, and how (“tests pass on main as of commit a1b2c3”), kept apart from assumptions.
  • Relevant files: where the work lives.
  • Remaining tasks: the next steps, in order.
  • Blockers: what stopped progress, such as a failing test or a missing credential.
  • Uncertainty: open questions and guesses, clearly marked as such.

Example

A coding agent has spent two hours migrating a payments module and is close to its context limit. It writes HANDOFF.md: the goal (move refund logic to the new API client), done (three of five endpoints, commits listed), a decision (kept the old retry policy because the new client’s default retries non-idempotent calls), a verified fact (unit tests pass; integration tests not run), files involved, two remaining endpoints, a blocker (sandbox API key missing for the refunds endpoint), and an uncertainty (“the currency rounding in refund.ts may differ from the old client; not checked”).

The next agent reads it, then checks it against the project before trusting it: runs the tests, confirms the listed commits exist, and looks at the current state of the files. A handoff note is a claim about the past; the repository is the current truth. If someone pushed changes in between, or the note was wrong, the files win.

Persistent agent state is the saved condition of a task that the same agent resumes from; a handoff is the deliberate transfer to someone else, and the note is often written from that saved state. An agent brief is written before work starts and defines the job and its limits; a handoff is written mid-task and records progress. A context file holds standing project rules that apply to every session, not one task’s status.

Why It Matters

Most multi-agent failures look like communication failures: duplicated work, a reversed decision, or an assumption that hardened into a “fact” as it passed from one agent to the next. Separating verified facts from guesses, and checking the note against the real files, stops errors from compounding across handoffs.

Continue learning

Explore related guides, tools, workflows, and prompts that help you go deeper into this topic.

See AI terms in action

Browse practical AI workflows that use the concepts in this glossary.

Last updated: