swarm

Fan out parallel background workers and aggregate their results into one report.

Updated Sep 23, 2026
One-click install
npx skills add https://github.com/lucasheriques/pstack --skill swarm-lucasheriques
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: swarm
Source: https://github.com/lucasheriques/pstack/tree/main/skills/swarm
Command: npx skills add https://github.com/lucasheriques/pstack --skill swarm-lucasheriques

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Coordinating multiple parallel AI workers manually is error-prone: slices get missed, race results lack a selection rule, and worker outputs arrive as raw dumps with no evidence. This Skill structures the whole fan-out workflow so parallel coverage, races, and exploration produce one consolidated, evidenced report. ## Core Features & Use Cases - Structured Fan-Out: Frame a done predicate, choose a partition/race/mixed shape, set worker count N, and spawn all workers in one message with worktree isolation. - Standalone Briefs: Each worker gets a self-contained brief with goal, scope, verification method, exact SHAs, and a PASS/ISSUES/BLOCKED reporting format. - Aggregation with Gaps: Drop results missing required SHAs or methods, rerun once, and record explicit gaps or dropouts instead of counting them as passes. - Use Case: You want five workers to each review a different subsystem of a large PR in parallel, then receive a single table of results with one-line evidenced issues and any coverage gaps. ## Quick Start Ask the AI to swarm this task by fanning out parallel workers over separate slices and returning one consolidated report.

Frequently Asked Questions about swarm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run parallel AI agents on a coding task?▼

Use the swarm workflow: frame a done predicate, partition the task into slices or race arms, then spawn all workers in one message as background agents with worktree isolation. The parent waits, aggregates terminal results, and returns one consolidated report.

What is the difference between swarm slices and races?▼

Slices partition work so each worker covers a different scope, while races give N workers identical briefs and select a winner. For races you must declare the selection rule up front: first pass, rank all, or best-of.

When should workers use worktree isolation?▼

Use worktree isolation for any worker that checks out a branch, builds, runs the app, or writes files. Workers sharing the parent's checkout race each other, and remote isolation is reserved for workers that must outlive the session.

What happens when a parallel worker fails or drops out?▼

If a worker drops out, the swarm proceeds with N-1 workers and notes the dropout. Results missing the required SHAs or method are dropped and rerun once; after a second miss the gap is recorded and never counted as a pass.

How are parallel worker results aggregated into a report?▼

The parent reads terminal results, validates evidence requirements, applies the declared race rule when used, and keeps a compact result table. The final report contains the table, one-line evidenced issues, and explicit gaps or dropouts, never raw worker dumps.