factory-swarm

factory-swarm is a skill for Claude Code from watt-mind/factory. It costs 47 tokens per session (1,419 once invoked), scanned A, original, Apache-2.0.

A workflow for sending several helper workers to work in parallel on separate parts of a task or on competing solutions, then collecting and combining their results.

In plain words
What is it for?
Use it for parallel code changes, alternative implementations, coverage work, or investigations that need one consolidated report.
Why use it?
It speeds up exploration and reduces the need to manage parallel workers individually while requiring each result to include a clear outcome and evidence.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Codex.

Part of the core plugin — 38 skills, 22 commands, 5 agents, 1 hook shipped together

Good fit Use it for parallel code changes, alternative implementations, coverage work, or investigations that need one consolidated report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/watt-mind/factory/factory-swarm
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add watt-mind/factory --skill factory-swarm
Clone the repo
git clone --depth 1 https://github.com/watt-mind/factory

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 38 skills, 22 commands, 5 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for factory-swarm

README.md
[![agentmods](https://agentmods.dev/badge/skills/watt-mind/factory/factory-swarm/github.svg)](https://agentmods.dev/skills/watt-mind/factory/factory-swarm)
Your own site
<a href="https://agentmods.dev/skills/watt-mind/factory/factory-swarm"><img src="https://agentmods.dev/badge/skills/watt-mind/factory/factory-swarm/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for factory-swarm

Your own site · 80×15
<a href="https://agentmods.dev/skills/watt-mind/factory/factory-swarm"><img src="https://agentmods.dev/badge/skills/watt-mind/factory/factory-swarm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,419 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.01419
Opus 5.5 $0.00019 $0.00568
Sonnet 5.5 $0.00009 $0.00284
Haiku 4.5 $0.00005 $0.00142

Measured 11d ago against content hash 1c81f2d7bfb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

factory-swarm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/core/skills/factory-swarm/SKILL.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Factory Swarm

Fan out N parallel workers, enforce SHA/method discipline, aggregate terminal results, and return one consolidated report. Adapted from pstack's swarm for Factory's T3Code-native orchestrator, harness-native subagents, and factory swarm CLI runner.

Open a checklist with one entry per phase before launching anything:

  1. Frame
  2. Fan out
  3. Aggregate
  4. Report

Per-Node Configuration (~/.factory/swarm.yaml)

factory swarm reads ~/.factory/swarm.yaml on the active node (falling back to $FACTORY_ROOT/config/swarm.example.yaml):

  • defaults.worker: default worker profile (opus -> claude-opus-5-5) used for partitioned slices unless overridden.
  • profiles.race: cross-harness race arms (gpt-sol via codex, fable via claude, carbon via agy), with argon and pi fallback available.

Inspect the node's resolved worker roster anytime with:

factory swarm config

Backend Selection (T3Code-native vs. Harness Subagents vs. CLI Runner)

  1. T3Code-native (preferred when inside T3Code): If T3Code Orchestrator MCP tools (orchestrator_capabilities, delegate_task, task_cancel, t3_thread_wait, t3_thread_read) are available in the session:
    • Call orchestrator_capabilities once per thread before your first delegate_task.
    • Fan out all N workers via delegate_task (mode: "async") — never use create_threads or t3_thread_launch for worker fan-out (those create top-level threads, reserved for explicit user requests).
    • Follow delegate_task's next behavior: end your turn for reactive wakeup rather than polling task_status or looping on t3_thread_wait.
    • Each new review or re-check is a fresh delegate_task, never t3_thread_send to a finished child; cancel replaced or extra delegates with task_cancel (never t3_thread_interrupt).
    • Worktree interaction: delegate_task only accepts isolation: "shared" | "worktree" (no worktreePath param). For repos with bin/worktree-up.sh, run bin/worktree-up.sh <ISSUE-ID> sequentially in the coordinator and pass isolation: "shared" with worktree: <abs-path> spelled out in task, or initialize per-worktree ports/DB inside an isolation: "worktree" checkout.
  2. Harness-native subagents (same-harness interactive): When running partitioned slices inside a single harness (claude, codex, agy, cursor) without cross-vendor race arms, you may use the harness's native swarm / invoke_subagent / run_workflow tools with isolated worktrees (workspace:"share" or bin/worktree-up.sh).
  3. CLI runner (factory swarm run): For cross-harness races or headless/terminal fan-outs across codex, claude, agy, and pi, run factory swarm run.

Read the full file on GitHub · 97 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 97 lines · 47 tokens per session scan A 1c81f2d7bfb3

Subscribe to this mod's changes

factory-swarm is a skill published in the GitHub repository watt-mind/factory (24 stars, last pushed today), licensed Apache-2.0. It adds 47 tokens to every session and 1,419 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-19.

Related

factory-swarm compared with skills from other repositories

factory-swarm next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
factory-swarmwatt-mind/factorySkill24todayApache-2.0A47Claude Code
agent-user-toolsruvnet/rufloSkill83ktodayMITA16Claude Code
slackpaperclipai/paperclipSkill118kyesterdayMITA25Claude Code, Codex
agentmailpaperclipai/paperclipSkill118kyesterdayMITA30Claude Code, Codex
V3 CLI Modernizationruvnet/rufloSkill83ktodayMITA35Claude Code
ritualghostwright/phantomSkill1.5k5mo agoApache-2.0A18Claude Code
overheardghostwright/phantomSkill1.5k5mo agoApache-2.0A24Claude Code