# Make sub-agents return a fixed handoff

> Today I Learned: Make sub-agents return a fixed handoff

Canonical: https://short.inc/today-i-learned/a-fixed-handoff-from-sub-agents

Date: 04 nov 26
Author: Zeno Popovici

"Done! Everything works."

I don't trust that sentence from a person, and I trust it even less from an agent. When one agent hands work to another, the report that comes back is all the first one gets. If the report is a cheerful summary, the one thing you needed to know is not in it.

So every sub-agent gets the same form to fill in:

```text
Return exactly this:

Branch:      <name>
Behaviour:   <what works now, in one or two sentences>
Files:       <changed files>
Checks:      <commands you ran, and their results>
Deviations from the plan: <each one, with the reason, or "none">
Unresolved:  <what you could not do, or "none">
```

The last two fields are why the form exists. An agent will never tell you on its own that it skipped step 4. Give it a field called *Deviations* and it writes it down.

Also, keep parallel agents away from the same files. Two agents editing one file create a merge problem that neither of them can see. You're the one who gets to find it.
