pstack-swarm

pstack-swarm is a skill for Claude Code from dmae97/omk. It costs 46 tokens per session (741 once invoked), scanned A, original, MIT.

A workflow that sends several workers to investigate parts of a task in parallel, then combines their findings into one report. It first defines the result to return and how the work will be divided.

In plain words
What is it for?
Use it for parallel code exploration, coverage checks, race investigations, gauntlets, or comparing several approaches.
Why use it?
One worker may miss cases or take longer when a task has many independent parts. Parallel investigation can cover separate areas, compare approaches, or look for races and failures.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents.

Good fit Use it for parallel code exploration, coverage checks, race investigations, gauntlets, or comparing several approaches.

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

Made for: Claude Code.

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 pstack-swarm

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dmae97/omk/swarm"><img src="https://agentmods.dev/badge/skills/dmae97/omk/swarm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 741 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.00046 $0.00741
Opus 5.5 $0.00018 $0.00296
Sonnet 5.5 $0.00009 $0.00148
Haiku 4.5 $0.00005 $0.00074

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

Security

Grade A, and why

pstack-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 1mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • swarm — 88% identical, 12 lines differ
packages/coding-agent/resources/pstack/skills/swarm/SKILL.md · 44 lines

How it starts

The opening of the file, as written. The whole thing — 44 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 pstack settings file (~/.omk/agent/pstack-models.md, written by /skill:pstack-setup-pstack). If the file or that line is missing, run the workers on the session model. auto and inherit-parent also mean the session model. If a configured model is not in the OMK catalog, run that seat on the session model and say so; never claim a cross-model seat you did not run. For a model race, name each arm's model up front. OMK subagents inherit the session model and effort; pass no model, effort, or speed fields.
  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 message as parallel subagent calls (tasks: [{agent, task}, ...]) using the step 3 model choice. Every worker runs locally, so give each its own git worktree or output path, and keep on this machine only the work that needs its files, auth, or running apps.

When a worker must start from a non-default branch, create its local worktree from that explicit ref and include its absolute path in the brief.

Subagent parameters. Pass only agent, task, and agentScope. Workers run locally, so give each one its own worktree or output path. Keep the brief. If the subagent extension is not loaded or the project is not trusted, run the workers yourself, one after another.

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 · 44 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. 1mo ago Changed c9aa03275a39
  2. 1mo ago First seen · 44 lines · 46 tokens per session scan A c15c2f6e670c

Subscribe to this mod's changes

pstack-swarm is a skill published in the GitHub repository dmae97/omk (155 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 741 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-27.

Related

pstack-swarm compared with skills from other repositories

pstack-swarm next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pstack-swarmdmae97/omkSkill155yesterdayMITA46Claude Code
buncode-yeongyu/senpiSkill530todayMITA237Claude Code, Codex
my-pi-nopeekspences10/my-piSkill144todayMITA26Claude Code, Codex
create-repeatable-taskspences10/my-piSkill144todayMITA50Claude Code, Codex
review-session-tracespences10/my-piSkill144todayMITA42Claude Code, Codex
execute-harnessspences10/my-piSkill144todayMITA34Claude Code, Codex
my-pi-sqlitespences10/my-piSkill144todayMITA24Claude Code, Codex