Agent Task Handoff
When delegating work to a sub-agent or across sessions, make the handoff self-contained.
Handoff package must include:
-
Goal: What the sub-agent must produce (one clear sentence).
-
Context: The minimum background the agent needs — no more, no less.
-
Constraints: Explicit rules (don't modify X, use library Y, output format Z).
-
Inputs: File paths, API endpoints, or data the agent needs to start.
-
Success criteria: How to verify the result is correct.
For parallel agents:
-
Clearly state which parts of the codebase/data each agent owns.
-
Define how outputs will be merged back.
Anti-pattern: Sending a vague "continue where we left off" with no context — sub-agents start from zero.