Create a handoff document to transfer work context to another session
Creates a thorough work context summary document to seamlessly transfer tasks between agent sessions.
/plugin marketplace add uw-ssec/rse-plugins/plugin install ai-research-workflows@rse-pluginsYou are tasked with writing a handoff document to transfer your work context to another agent in a new session. The handoff must be thorough but concise — compact and summarize your context without losing key details of what you're working on.
Collect all necessary information to write the handoff. Run these in parallel when possible:
Git state:
git status and git diff --stat)Workflow artifacts:
Search for existing workflow documents in the .agents/ directory:
.agents/research-*.md (research documents).agents/plan-*.md (plan documents).agents/experiment-*.md (experiment documents).agents/implement-*.md (implementation documents).agents/handoff-*.md (previous handoff documents)Session context:
From the gathered context, identify:
.agents/ documents are relevant to this workfile:line references)Generate the filename:
handoff-YYYY-MM-DD-HH-MM-<slug>.mdYYYY-MM-DD-HH-MM is the current date and time<slug> is a brief kebab-case description of the workhandoff-2025-06-15-14-30-auth-system-refactor.mdRead the handoff template:
${CLAUDE_PLUGIN_ROOT}/skills/research-workflow-management/assets/handoff-template.mdFill out all sections:
file:line references, not vague descriptionsSave the document:
.agents/handoff-YYYY-MM-DD-HH-MM-<slug>.mdAfter saving, present a concise summary to the user:
## Handoff Created
**File:** `.agents/handoff-<filename>.md`
**Current Phase:** [phase]
**Status:** [brief status of work]
### Quick Summary
[2-3 sentence summary of what was done and what's next]
### For the Next Session
Start by running:
> Read the handoff document at `.agents/handoff-<filename>.md` and resume the work described within.
Or to continue with the workflow:
> /[recommended-command] [relevant arguments]
path/to/file.ext:line references that the next session can follow. Only include code blocks when describing an error being debugged or a critical pattern./command to run next./handoffGenerate a structured handoff document that another Claude session (or your future self) can consume immediately to continue where you left off.
/handoffProperly end a swarm session - release reservations, sync state, generate continuation prompt