swarm
Installation
SKILL.md
Swarm
Process many independent items in parallel. create builds a table handle;
run fans work out across rows and merges results back. One row = one unit
of work — swarm handles batching automatically.
Flow
- Create. Build a table from a source — files, a glob pattern, or pre-parsed records. One row per item. Returns a handle.
- Run. Dispatch an
instructiontemplate across rows. Results are merged back into the table. Returns{ completed, failed, skipped, failures }. - Aggregate. Use
rows()and plain JS to count, filter, or summarize. Do not spawn additional subagents for aggregation. - Retry. Re-run with
filter: { column: "<col>", exists: false }to reprocess only failed rows.