swarm

swarm is a skill for Claude Code from ericlitman/open-pstack. It costs 41 tokens per session (684 once invoked), scanned A, original, MIT.

A coordinator for sending several workers to investigate separate parts of a task or compare multiple approaches, then combining their results into one report.

In plain words
What is it for?
Use it when a task can be split among independent workers, when several solutions should be compared, or when parallel checks are useful.
Why use it?
It increases coverage for parallel exploration, races, and testing under competing conditions without making the user collect each worker's result manually.

Skill for Claude Code

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

Part of the pstack plugin — 61 skills, 22 agents, 1 hook shipped together

Good fit Use it when a task can be split among independent workers, when several solutions should be compared, or when parallel checks are useful.

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

Made for: Claude Code.

Or install pstack, the plugin that ships this one along with the rest of its 61 skills, 22 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/ericlitman/open-pstack/swarm/github.svg)](https://agentmods.dev/skills/ericlitman/open-pstack/swarm)
Your own site
<a href="https://agentmods.dev/skills/ericlitman/open-pstack/swarm"><img src="https://agentmods.dev/badge/skills/ericlitman/open-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/ericlitman/open-pstack/swarm"><img src="https://agentmods.dev/badge/skills/ericlitman/open-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 684 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00684
Opus 5.5 $0.00016 $0.00274
Sonnet 5.5 $0.00008 $0.00137
Haiku 4.5 $0.00004 $0.00068

Measured yesterday against content hash 8b2b4aba8e64, 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 yesterday.

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 · 43 lines

How it starts

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

Swarm

Dispatch contract. Resolve each worker descriptor through provider-dispatch.md. The parent starts native and external lanes; workers never route themselves. On Codex, resolve remaining Claude tool names via codex-tools.md.

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 descriptor from swarm workers in the current harness's pstack model sheet when present. Otherwise use its role default. For a model race, name each arm's descriptor up front. Pick each subagent's effort 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

Start all N workers in one fan-out phase through provider dispatch. Native lanes use background subagents; external lanes invoke the launcher as background work with retained task/session handles. Never use Claude's foreground Bash path for a long worker. Every writer runs in its assigned worktree or output directory. Isolation comes from those paths, not the provider.

When a worker must start from a non-default branch, check that branch out in the worker's own worktree and name the worktree path in its brief.

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.

Read the full file on GitHub · 43 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. yesterday Changed · -5 lines 8b2b4aba8e64
  2. 4d ago Changed c4f2ddfd0861
  3. 6d ago Changed 48710f0420b7
  4. 16d ago Changed bc3257c8255e
  5. 1mo ago Changed 6b357669ca13
  6. 1mo ago First seen · 48 lines · 41 tokens per session scan A aa57ee72e3da

Subscribe to this mod's changes

swarm is a skill published in the GitHub repository ericlitman/open-pstack (427 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 684 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-08-30.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

component-fixtures

Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.

microsoft/vscode · 53 tokens