Swarm Process many independent items in parallel. builds a table handle; fans work out across rows and merges results back. One row = one unit of work — swarm handles batching automatically. Flow 1. Create. Build a table from a source — files, a glob pattern, or pre-parsed records. One row per item. Returns a handle. 2. Run. Dispatch an template across rows. Results are merged back into the table. Returns . 3. Aggregate. Use and plain JS to count, filter, or summarize. Do not spawn additional subagents for aggregation. 4. Retry. Re-run with to reprocess only failed rows. Choosing a source / —…