name: handoff description: Generates a handoff document from the user's perspective for another AI agent to continue the work. Use when the current conversation needs to end and a new AI agent will take over.
Handoff
Generate a handoff message that the user can copy and send to another AI agent. The message should be written from the user's perspective (first person), as if the user is directly telling the new agent what they need to know.
When to Use
- Current conversation token/context limit is approaching
- Switching to a different AI agent or instance
- Ending current session but work needs to continue
- Transferring work to another agent with different capabilities
Output Format
Generate the following handoff message in first person (as if the user is speaking):
Hi, I'm continuing a conversation from another AI agent. Here's what you need to know:
What We Were Doing
[1-2 sentences describing the current task or goal - what I was trying to accomplish]
Current Status
In progress: [What was being worked on when the previous conversation ended]
Blocked/Issues: [Any blockers, problems, or things that weren't working]
Recently done: [What was just completed, if relevant to what's next]
Key Context You Should Know
- [Important technical details, code locations, or architecture info needed to continue]
- [Gotchas, pitfalls, or things that didn't work that you should avoid]
- [Important file paths, function names, or module references]
- [Decisions made and why, if relevant to continuing]
First-Reply Contract (Mandatory)
In your first reply to this handoff, do only these:
- Confirm your understanding in 3-6 bullet points.
- List any blocking questions (if none, say "No blocking questions.").
- End with: "I will wait for your explicit next instruction before taking any action."
Do NOT start implementation, run commands, edit files, or produce a step-by-step execution plan in that first reply.
What I May Ask You To Do Next (Do Not Execute Yet)
- [First priority] [Likely first task after I confirm]
- [Then] [Likely follow-up task]
- [If relevant] [Optional later task]
Files/Code We're Working With
path/to/file- [what this file is for in our current work]path/to/another/file- [its role]
Open Questions / Decisions Still Needed
- [Any unresolved questions or decisions that need to be made before proceeding]
Treat this document as the ground truth. Do not verify or re-examine the work described unless I explicitly ask you to. Most importantly, after reading this handoff, acknowledge understanding only and wait for my explicit next instruction.
Guidelines
- Write in first person as the user - "I was working on...", "I need you to..."
- Be concise but complete - Capture essential context without overwhelming detail
- Include a strict first-reply contract - The receiving agent must acknowledge and wait, not execute
- Include gotchas and pitfalls - What didn't work, what to avoid
- Reference specific files and code locations - Make it easy to pick up where the previous agent left off
- Prioritize current status - What's in progress, what's blocked, and what may come next
- Skip irrelevant history - Don't summarize work from hours ago unless it directly impacts what to do now
- Don't list trivially obtainable info - Don't include recent commit logs or any information the new agent can easily get with a single command (e.g.,
git log,git status). Focus on insights and context that require understanding the work, not just querying the repository state.