Prepare handoff to successor agent when approaching context limits
/plugin marketplace add arevlo/claude-code-workflows/plugin install arevlo-swarm@claude-code-workflowsCreate continuation context and spawn successor agent.
## Usage
## When to Use
- Guardian shows CRITICAL alert (70%+ estimate)
- PreCompact hook fires (80%)
- Responses slowing significantly
- Proactively before long implementation phases
## Steps
### 1. Export Final State
Prompt user:
Wait for user confirmation that export was saved.
### 2. Generate Continuation Prompt
From the export and current working memory, create:
Save to: `.claude/swarm/handoff/continuation-prompt-{timestamp}.md`
### 3. Spawn Successor Agent
Use Task tool with subagent_type: "general-purpose"
Prom.../handoffWrite or update a handoff document so the next agent with fresh context can continue this work.