Compact the current conversation into a structured handoff document for a fresh agent to continue without needing the full conversation history.
-
Scan before writing — run these in parallel before drafting anything:
- Check git status and branch:
git status --short && git branch --show-current - Check any open todos from the conversation (TodoRead if available, or summarize from context)
- Note the working directory
- Check git status and branch:
-
Write the handoff document — save to a temp file: