factory-swarm

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

A command for starting several helper workers at once, dividing a task into parts or competing attempts, and returning one combined report.

In plain words
What is it for?
Use it to split development tasks, run parallel alternatives, gather required evidence such as commit identifiers, and clean up temporary work areas.
Why use it?
It avoids manually coordinating each worker and provides a single result after the parallel work is collected and checked.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter.

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

Good fit Use it to split development tasks, run parallel alternatives, gather required evidence such as commit identifiers, and clean up temporary work areas.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/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.

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/commands/watt-mind/factory/factory-swarm/github.svg)](https://agentmods.dev/commands/watt-mind/factory/factory-swarm)
Your own site
<a href="https://agentmods.dev/commands/watt-mind/factory/factory-swarm"><img src="https://agentmods.dev/badge/commands/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/commands/watt-mind/factory/factory-swarm"><img src="https://agentmods.dev/badge/commands/watt-mind/factory/factory-swarm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 367 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.00021 $0.00367
Opus 5.5 $0.00008 $0.00147
Sonnet 5.5 $0.00004 $0.00073
Haiku 4.5 $0.00002 $0.00037

Measured 12d ago against content hash 8e2d640bcecc, 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 12d 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/commands/factory-swarm.md · 13 lines

What it actually says

Fan out N parallel workers for the requested task using shared/skills/factory-swarm/SKILL.md and factory swarm (or T3Code Orchestrator MCP tools when inside T3Code).

  1. Frame: State the done predicate, choose partition, race (first-pass | rank-all | best-of), or mixed, lock exact commit SHAs/measurement methods if applicable, and isolate writable outputs.
  2. Fan out: Launch all N workers in parallel via T3Code (delegate_task with mode: "async", after calling orchestrator_capabilities once per thread; never create_threads/t3_thread_launch), harness-native swarm, or factory swarm run --json (configured by ~/.factory/swarm.yaml or config/swarm.example.yaml), requiring PASS, ISSUES, or BLOCKED verdicts with evidence. End your turn for reactive wakeup; cancel replaced delegates with task_cancel.
  3. Aggregate: Drop any result missing required SHAs/method and respawn once (else record a gap), apply the declared race rule, and synthesize without raw dumps.
  4. Report & Cleanup: Run factory swarm cleanup --manifest <manifest> if CLI sandboxes/worktrees were created, and return one consolidated result table, issue one-liners, and gaps/dropouts.
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. 12d ago First seen · 13 lines · 21 tokens per session scan A 8e2d640bcecc

Subscribe to this mod's changes

factory-swarm is a command published in the GitHub repository watt-mind/factory (24 stars, last pushed yesterday), licensed Apache-2.0. It adds 21 tokens to every session and 367 once invoked, about $0.0001 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 commands from other repositories

factory-swarm next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
factory-swarmwatt-mind/factoryCommand24yesterdayApache-2.0A21Claude Code
flow-nexus-user-toolsruvnet/rufloCommand83ktodayMITA14Claude Code
flow-nexus-authruvnet/rufloCommand83ktodayMITA11Claude Code
dashboard-session-tellBlackBeltTechnology/pi-agent-dashboardCommand357todayMITA21Claude Code
dashboard-session-unhideBlackBeltTechnology/pi-agent-dashboardCommand357todayMITA18Claude Code
vs-stopmtarcure/claude-vibe-squadCommand2271mo agoMITA0Claude Code
scout-meta-reviewRaven-Scout/ScoutCommand20todayMITA63Claude Code