/pds:resumefrom pds
Reconstructs swarm state after a pause, crash, or handoff using local checkpoints or GitHub issues as fallback.
Ships in pds. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Rebuilds .claude/swarm/ state (phase, tier, tasks) and native TaskCreate entries so work can continue where it left off. Tries the cheapest, most complete source first and falls back only as needed — most resumes are same-machine and need nothing beyond a local file read.
/pds:resume # auto-discover: local state, then ticket, then label search
/pds:resume 42 # explicit ticket number — skips discovery, goes straight to reconstruction
Claude Code's native Task-tool state (~/.claude/tasks/) and team config (~/.claude/teams/) are local to the machine that created them — no cross-device sync, and per Claude Code's own docs, /resume//rewind do not restore in-process teammates. .claude/swarm/* is gitignored — local-only. The one thing that is durable and cross-machine is the GitHub ticket /pds:ticket maintains. This skill treats the ticket (and, failing that, the archived swarm report) as the recovery source of truth, in priority order from cheapest/most-precise to most expensive/coarsest.
Platform constraint, not a bug: a previous session's in-process workers cannot be reattached, on any path below. This skill reconstructs task and phase state, not live agent processes. Phase 3's normal pull-model redispatch picks the work back up.
Check first, before anything else:
ls .claude/swarm/checkpoint.json .claude/swarm/pause.json 2>/dev/null
If either exists, read it — phase, tier, tasks, and assignments are already there (see the Checkpoint Protocol in agents/orchestrator.md and the pause.json format in /pds:pause). Read .claude/swarm/context.md and .claude/swarm/plan.md for the fuller plan/decision narrative if present. This path needs no network access and recovers full fidelity — prefer it whenever it's available, even if a ticket argument was also passed.
Skip to step 4 (in-flight task handling) once state is loaded.
No local .claude/swarm/ state, but a ticket is known (explicit argument, or resolved via step 5 discovery):
gh issue view <N> --json comments,body,title | jq -r '.comments[] | "\(.createdAt): \(.body)"'
Scan comments newest-first for the most recent pause note (posted by /pds:pause step 5) or phase-transition comment (posted by /pds:ticket section 3). Reconstruct from whichever is more recent:
- [ ] / - [x]). Recreate a native task per unchecked criterion via TaskCreate, using the criterion text as the subject.Accept coarser granularity here. The ticket carries plan-level acceptance criteria, not the fine-grained per-task decomposition the original session had in .claude/swarm/plan.md. A reconstructed task list will usually be coarser than the original — that's the real ceiling on what's durable today, not a bug in this skill. Note this explicitly when reporting the resumed state back to the user.
Write .claude/swarm/phase, .claude/swarm/tier, and a fresh .claude/swarm/checkpoint.json from what was recovered, so subsequent phases and gates see consistent local state again.
If the ticket is closed, or its comment thread shows a Phase 6 completion comment, look for the archive instead of trying to resume a swarm that already finished:
ls docs/swarm-reports/*/ # find the archive matching the ticket's completion comment link
Read plan.md, context.md, and checkpoint.json from the matching docs/swarm-reports/<YYYY-MM-DD-HHmm>/ directory — already git-tracked, already durable. Use this to answer "what happened and why," not to relaunch work. If the user wants follow-up work on a closed ticket, that's a new swarm (/pds:swarm), not a resume.
Whatever the source, any task recovered with status in_progress had an owner (a worker) that no longer exists in this session. Recreate it as pending with owner cleared:
TaskUpdate(taskId="<id>", status="pending", owner=null)
Let Phase 3's normal pull-model self-claiming pick it back up when workers spawn. Do not attempt git-branch inspection to detect partial completion in v1 — rely on the worker's own git hygiene (frequent commits) when it re-claims the task and reads its branch. If this proves insufficient in practice, that's a v2 follow-up, not something to improvise here.
Try in order, stopping at the first hit:
/pds:resume <issue-number> was given. Use it directly./pds:worktree encodes the issue number in branch names:
git branch -a | grep -oE '[0-9]+' # refine against the actual branch-naming pattern in use
pds-active-swarm (applied by /pds:ticket at creation/reuse, removed at Phase 6 teardown) are swarms still in flight:
gh issue list --label pds-active-swarm --state open --json number,title,updatedAt
If more than one candidate surfaces across these, disambiguate via AskUserQuestion with the candidate issue numbers/titles as options (plus "None of these"). Never guess silently when multiple active swarms exist.
.claude/swarm/checkpoint.json — the local file is always higher-fidelity./pds:swarm for "what's next."AskUserQuestion, not a silent pick of the first result./pds:pause — Writes the local pause.json and posts the ticket comment this skill reads./pds:ticket — Owns the ticket, the acceptance-criteria checklist, and the pds-active-swarm label./pds:swarm — The 6-phase workflow that resumes into, once state is reconstructed.docs/adr/0008-task-mobility-via-ticket-not-sub-issues.md — Why this reads the ticket directly instead of mirroring tasks to GitHub sub-issues.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
swarm, resume, state-reconstruction, checkpoint, recovery, github-issues
22 skills in this plugin
/bugfix/bugfix — Test-First Bug Fix ProtocolFixing bugs using a test-first disciplined loop. Use when a bug is reported or discovered and needs a verified fix with minimal blast radius./bump/bump — Version Bump WorkflowBumping project version and updating changelog atomically. Use when releasing a new version — patch, minor, or major./checkpoint/checkpoint — Save PointSave a checkpoint — bump version, commit, push. Use when work is complete and ready to ship without the full finish protocol./contribute/contribute — PDS Contribution WorkflowContributing changes to PDS skills, agents, or workflow. Use before modifying any PDS artifact to follow the whitepaper-alignment checklist./ethos/ethos — Core Development PrinciplesGrounding in core development principles. Use when starting significant work, feeling stuck, or needing to reset decision-making clarity./eval/eval — Skill EvaluationTesting whether skills produce correct agent behavior. Use after modifying a skill, during periodic review, or when model upgrades may affect skill relevance.npx claudepluginhub rmzi/portable-dev-system --plugin pdsOther plugins' skills for the same job