Resume
Resume an interrupted parallel session
Claude CodeGeneric
---
description: Resume an interrupted parallel session
arguments:
- name: check
description: Only check for resumable sessions without resuming
required: false
---
Resume a previously interrupted parallel session. Automatically detects agents that need resuming and restarts them from their last checkpoint.
## How It Works
1. **Session Detection:**
- Checks for `.parallel-session/session.json`
- Identifies agents with status: interrupted, failed, or crashed
2. **Recovery Points:**
- Uses git commits as checkpoints
- Reads agent phase from state files
- Generates context-aware resume prompts
3. **Auto-Resume:**
- Recreates worktrees if missing
- Stashes uncommitted changes
- Spawns new Claude agents with resume context
- Starts orchestrator to monitor completion
## Check Mode
To check without resuming:
```bash
# In the main worktree
cd ../main
# Check if there's a resumable session
.claude/skills/parallel-executor/resume.sh --check-only
Returns JSON with resumable session details.
Resume Steps
Execute the resume script:
# From main worktree
.claude/skills/parallel-executor/resume.sh
The script will:
- Scan session state - Find interrupted/failed agents
- Show recovery plan - Display what will be resumed
- Restart agents - Spawn with resume context
- Monitor completion - Start orchestrator
What Gets Preserved
- Git commits - All previous work that was committed
- Phase progress - Where each agent was in the RALPH methodology
- Task context - Original task, scope restrictions
- Log history - Appended to existing logs
When to Use
- Terminal was closed while agents were running
- System crashed or rebooted
- Agent hit an error and stopped
- Session was interrupted (Ctrl+C)
Limitations
- Uncommitted changes are stashed (not lost, but need manual recovery)
- Agents restart from phase, not exact line of code
- API/network issues may require manual intervention
Manual Recovery
If auto-resume fails:
Check session state:
cat ../.parallel-session/session.json | jqCheck individual agent:
cat ../.parallel-session/agents/<name>.json | jqView logs:
tail -100 ../logs/<name>.logManual cleanup:
rm -rf ../.parallel-session
Maintain Resume?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[Resume on getagentictools](https://getagentictools.com/loops/kingpinzs-in-the-main-worktree?ref=badge)