Handoff to New Thread
Analyze our entire conversation and prepare a handoff for a new Claude Code session.
Goal for new thread: $ARGUMENTS
Instructions
- •Create the handoff context by analyzing what we've discussed
- •Create directory if needed:
mkdir -p ~/.claude/handoff - •Write to file at
~/.claude/handoff/HANDOFF.md - •Copy to clipboard using
cat ~/.claude/handoff/HANDOFF.md | pbcopy - •Cleanup:
rm ~/.claude/handoff/HANDOFF.md
Handoff Document Structure
Write the following to ~/.claude/handoff/HANDOFF.md:
markdown
# Handoff Context Generated: [ISO 8601 timestamp] ## Goal $ARGUMENTS ## What We Were Working On [Brief description of the main task/feature] ## Current State - **Completed**: [What's done and working] - **In Progress**: [What's partially implemented] - **Blocked/Issues**: [Known problems or blockers] ## Key Files [List file paths that are relevant, formatted for easy @-mentioning] - `path/to/file1.ts` - `path/to/file2.ts` ## Important Decisions [Key technical or architectural decisions made and why] ## Context & Notes [Any other important context the new thread needs] ## Next Steps [Prioritized list of immediate actions aligned with the goal above]
Output
After writing the file, copying to clipboard, and cleaning up, output ONLY:
code
Handoff copied to clipboard Next steps: 1. Run /clear to reset this conversation 2. Paste (Cmd+V) in your new Claude Code session to continue