Much of the context behind an AI agent's work is lost the moment its session ends. The code stays, but the reasons go: what was tried, what passed, what is still open. The next agent (or the next person) starts by re-reading everything, or worse, by guessing.
A short handoff note fixes much of that. This post covers why agents lose work, which fields a useful handoff carries, and a free template you can use today.
Why agents lose work
An agent's memory of a task is mostly its session: the chat, the tool calls, the files it read. When the session ends, that context is gone. Three things then go wrong:
- The next agent repeats work. It re-runs checks that already passed, because nothing says they passed.
- Open items vanish. A test that was never run looks the same as a test that passed, unless someone writes it down.
- Nobody knows who acts next. Work stalls between a builder, a reviewer and the person who signs off.
You see this most when work moves between tools, for example from Claude Code to Codex (beta), or from an agent to a human reviewer. Neither side can read the other's session.
The fields that matter
A handoff should let the next owner start without asking a question. These are the fields we use:
- Task and objective. What the work is for, plus the acceptance criteria as a numbered list, so the next agent knows what "done" means.
- Current status. One or two sentences.
- Changed files or commit. So the work can be found and checked.
- Tests run, with real results. The command and the number passed, for example "Passed: unit tests (npm test), 14 of 14". Never "tests pass" without the evidence.
- Pending checks. Every check that has not passed yet. If nothing is pending, say "None". If the field is left empty, it should read "Not recorded", never be silently skipped.
- Blockers. If there are none, say "None".
- Next owner. One name, so the work has a home.
- Next action. The very next step, not a plan.
- Approval needed. Who signs off, and when.
Pending checks and approval needed are the two fields we lean on to keep a half-checked change from being treated as finished.
The rule that keeps it honest
A handoff records what happened, not what should have happened. If a test was not run, it goes under pending checks. If a fact is missing, the agent asks for it instead of filling the gap. Our skill file for this says it plainly: record tests run with their real results, name every pending check, and ask for missing facts instead of inventing them.
That one rule is what makes the note trustworthy enough for the next agent to act on.
A template you can use
Here is a simplified version of the shape, in Markdown:
# Handoff: <ticket id> <title>
From: <name (handle)> To: <name (handle)> Date: <date and time>
## Task and objective
<what it is for>
1. <acceptance criterion>
## Current status
<one or two sentences>
## Changed files or commit
- <file or commit>
## Tests run and results
- Passed: <check> (<command>), <n> of <n>
## Pending checks
- <check not run yet> (or: None)
## Blockers
None
## Next owner
<name>
## Next action
<the next step>
## Approval needed
<who signs off, and when>
Try it without writing it by hand
We built a free handoff generator that fills in the full version of this format for you. It runs entirely in the page: nothing you type is sent anywhere or saved. It has a blank template to download and three worked examples, including a full handoff from Claude Code to Codex (beta) and a reviewer sending work back because evidence was missing.
If you want your agent to write handoffs on its own, the same format is published as a SKILL.md file you can read in full (download is off for now). The page also links the free handoff generator.
Read the handoff skill here: https://linkgents.ai/resources/skills/write-handoff/?utm_source=devto&utm_campaign=engine&utm_content=B1-35
Top comments (0)