swarm

swarm is a skill for Claude Code, Codex from chhoumann/t3-pstack. It costs 41 tokens per session (936 once invoked), scanned A, original, MIT.

A coordinator for running several workers in parallel and combining their results into one report. Workers can explore separate parts of a task or try the same task independently.

In plain words
What is it for?
Use it for parallel code exploration, coverage checks, race-based reviews, and multi-part investigations.
Why use it?
It reduces the need to perform broad exploration or review one part at a time. The coordinator also defines the work and waits for all workers before reporting.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also reads $CODEX_HOME. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Part of the t3-pstack plugin — 67 skills, 4 agents, 1 hook shipped together

Good fit Use it for parallel code exploration, coverage checks, race-based reviews, and multi-part investigations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chhoumann/t3-pstack/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 chhoumann/t3-pstack --skill swarm
Clone the repo
git clone --depth 1 https://github.com/chhoumann/t3-pstack

Made for: Claude Code, Codex.

Or install t3-pstack, the plugin that ships this one along with the rest of its 67 skills, 4 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 swarm

README.md
[![agentmods](https://agentmods.dev/badge/skills/chhoumann/t3-pstack/swarm/github.svg)](https://agentmods.dev/skills/chhoumann/t3-pstack/swarm)
Your own site
<a href="https://agentmods.dev/skills/chhoumann/t3-pstack/swarm"><img src="https://agentmods.dev/badge/skills/chhoumann/t3-pstack/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 swarm

Your own site · 80×15
<a href="https://agentmods.dev/skills/chhoumann/t3-pstack/swarm"><img src="https://agentmods.dev/badge/skills/chhoumann/t3-pstack/swarm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 936 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.00041 $0.00936
Opus 5.5 $0.00016 $0.00374
Sonnet 5.5 $0.00008 $0.00187
Haiku 4.5 $0.00004 $0.00094

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

Security

Grade A, and why

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 10d 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/pstack/skills/swarm/SKILL.md · 48 lines

How it starts

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

Swarm

Start

Open a todolist with one entry per phase before launching anything.

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

Phase A: Frame

  1. State the done predicate and the artifact or report the swarm must return.
  2. Choose the shape. Partition into slices, race N workers on identical briefs, or mix both. For a race or mixed shape, declare first pass, rank all, or best-of before spawning.
  3. Pick the worker model from the swarm workers line in the model sheet. If the sheet or that line is missing, use the default in Models. For auto or inherit-parent, omit target so the workers run on the parent model. If delegate_task rejects an entry, use the default and say so. If it rejects the default, use another target of the same family from orchestrator_capabilities. For a model race, name each arm's model up front. Pick each subagent's reasoning level for the job, per the Subagents section of the poteto-mode skill.
  4. Give each worker its own writable output when it writes. When workers verify or measure commits, each brief names the exact SHAs. A measurement brief also names the method (sample count, what one sample is, order). The worker records both in its result.

Phase B: Fan out

Spawn all N workers in one response as delegate_task calls with mode: "async" and the step 3 target, left unset for auto or inherit-parent. Every worker runs on this machine, so a worker that writes gets isolation: "worktree", per poteto-mode's Dispatch on T3.

When a worker must start from a non-default branch, it starts from that branch's head commit, per poteto-mode's Dispatch on T3.

Every brief stands alone. Include the goal, scope, exact slice or race arm, how to verify, and what to report. Reports use PASS, ISSUES, or BLOCKED with evidence. A worker that can prove a defect reports ISSUES and lists every issue it can prove, not only the first.

If a worker drops out, proceed with N-1 and note it.

Phase C: Aggregate

Read the full file on GitHub · 48 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. 10d ago Changed 5361917f4f13
  2. 22d ago Changed d6240b59a879
  3. 1mo ago Changed 6d022248468d
  4. 1mo ago Changed · -5 lines ea9e36a0923f
  5. 1mo ago Changed · -7 lines 6f1e6d448eda
  6. 1mo ago First seen · 60 lines · 41 tokens per session scan A 7d975bc77be8

Subscribe to this mod's changes

swarm is a skill published in the GitHub repository chhoumann/t3-pstack (347 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 936 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-10-13.

Related

swarm compared with skills from other repositories

swarm next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swarmchhoumann/t3-pstackSkill347todayMITA41Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code