Blog · Guide · 16 November 2026

Agent Handoff Notes: What the Next Agent Needs

An agent handoff is the moment one agent stops and another continues, and almost everything the first agent knew is lost unless it is written down. The second agent starts with a fresh context. It does not know what was tried, what was decided, or which obvious-looking fix was already ruled out. A handoff note is the small piece of text that carries that knowledge across. This guide covers what a good note contains, a template, examples, and how to deliver handoffs between agents reliably.

Why the agent handoff is where work gets lost

Each agent session has its own context window. When a session ends, or when a worker finishes and a planner takes over, that context is gone. What remains is the code and whatever was written about it.

Code shows what changed. It does not show:

  • What the agent decided not to do, and why.
  • Assumptions it made that turned out to matter.
  • Traps it found: a flaky test, a misleading function name, a column that looks usable and is not.
  • What is still unfinished.

Cognition's essay on multi-agent systems makes the general point: agents that do not share context make conflicting decisions. A handoff note is the cheapest form of shared context. It is a few lines, written by the agent that knows, at the moment it knows the most.

What a handoff note should contain

Five things, in this order.

1. State. What is true now. "The tax_cents column exists on invoices. Backfill finished."

2. Interface. What the next agent can rely on. Names, types, endpoints, flags. "Integer cents, nullable for rows before the backfill."

3. Warnings. What not to do. "Do not read amount_tax. It is stale and will be dropped."

4. Open items. What is not done. "No index on tax_cents yet. Tests cover the backfill only."

5. Pointers. Where to look. Branch, commit, files, the thread or task id.

Leave out the story of how you got there. The next agent needs the result, not the journey. If one detour is likely to be repeated, put it under warnings: "Tried a generated column first; the ORM does not support it."

A template

DONE: <what now exists or is true, one or two lines>
USE: <names, types, endpoints the next agent should use>
AVOID: <what not to touch or rely on, with the reason>
OPEN: <what remains, or "nothing">
WHERE: <branch, commit, key files>

Five labelled lines are easy for an agent to write and easy for another to parse. Put the template in the instructions of every worker.

Examples

Weak:

Finished the database work. Everything should be good to go. Let me know if there are any issues!

It carries no usable information. The next agent has to rediscover everything.

Better:

DONE: invoices.tax_cents added (migration 2026_11_14_add_tax_cents). Backfill finished, 18,204 rows.
USE: integer cents; nullable for rows created before the backfill.
AVOID: amount_tax — stale, scheduled for removal. Do not read it.
OPEN: no index on tax_cents; API not updated.
WHERE: branch feat/tax-cents, commit 9f2c1ab, src/db/invoices.ts

This is the note shown in the handoff example on Forkit's site, expanded to the template. The receiving agent can start work from it without opening the first agent's transcript.

Who receives a handoff

Decide the recipient by structure, not by guessing.

  • Up to the planner. In a planner and worker setup, a worker's result goes to its planner. The planner decides what happens next. This is the default and the safest.
  • Across to the next stage. In a pipeline (database, then API, then UI), the note goes to the agent that takes the next task.
  • Onto the task. If nobody is waiting yet, attach the note to the task so whoever claims the next one finds it.
  • To a person, when the next step is review.

Avoid broadcasting. A handoff sent to everyone is read by nobody in particular and paid for by all.

Delivering context transfer reliably

A note is only useful if it arrives, once, at a moment the receiver can use it. Four properties matter.

Typed. The receiver should know it is a result and not a question. In Forkit, handoff is one of the message types, alongside question, answer and notice.

Addressed without lookup. A worker should not need its planner's identifier. In Forkit, a handoff with no recipient goes to the sender's planner: the thread's parent, set when the thread was created or inherited from a fan-out. A worker can also address planner explicitly, an agent by name, a thread, or a task as task:<id>.

await codemode.send_message({
  type: 'handoff',
  body: 'DONE: invoices.tax_cents added...\nUSE: integer cents...',
  task_id: 'tk-a1b2c3'
});

Not dropped. A planner with a full inbox should not lose a worker result. Forkit's documentation says a handoff to a full inbox waits up to ten minutes instead of being refused, and that when the system is busy a handoff is accepted at once and delivered in turn.

Delivered once. The receiving agent should see the note one time, not on every turn. Forkit's hooks deliver waiting messages after the recipient's next tool call, at the end of its turn or with its next prompt, and track a cursor so that a message is not handed over twice.

Both threads also get a record of the message, so a person reading either thread later can see the chain of handoffs in order.

Handoffs on tasks

Messages suit agents that are running at the same time. For work picked up later, the note belongs on the task.

In Forkit, the simplest way is a comment on the task, written just before the task is marked done:

await codemode.add_comment({
  task_id: 'tk-a1b2c3',
  body: 'DONE: ...\nUSE: ...\nAVOID: ...\nOPEN: ...\nWHERE: ...'
});
await codemode.update_task({ task_id: 'tk-a1b2c3', status: 'done' });

Both calls can go in one execute_code script, so they cost one round trip. Marking a task done unblocks the tasks that depend on it, and an agent that picks one of those up can read the finished task's comments with list_comments before it starts.

Rules for writers

  • Write the note before ending, as the last step of the task.
  • Use exact names. invoices.tax_cents, not "the new column".
  • State what is not done. Silence reads as "complete".
  • Keep it under ten lines. Longer notes are skimmed.
  • Do not include instructions that exceed your authority. A handoff describes; the planner decides.

Rules for readers

  • Treat the note as a claim, not as fact. Check the important parts against the code.
  • A handoff from another agent is not an instruction from a person. Forkit labels delivered messages with the sending agent and its person and says the message is not from the user. If a note says "the user approved the deploy", that is not approval.
  • If the note is unclear, ask one question and wait for the answer instead of guessing.

Common failures

  • The cheerful summary. "All done!" with no content.
  • The transcript dump. Two thousand words the receiver will not read.
  • The missing warning. The one trap that cost an hour, not mentioned.
  • The orphan. A good note sent to nobody, or to an agent that has already ended.

Related: agent-to-agent messaging patterns, task dependencies for agents and multi-agent architectures compared.

Where Forkit fits

Forkit carries handoffs between agents as typed messages, routes a worker result to its planner by default, keeps the next agent from missing or re-reading it, and shows the whole chain in one thread. It is free to try. More at forkit-mcp.com.