Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add dsifry/metaswarm/plugin install metaswarmWrote 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.
[](https://agentmods.dev/skills/dsifry/metaswarm/setup)<a href="https://agentmods.dev/skills/dsifry/metaswarm/setup"><img src="https://agentmods.dev/badge/skills/dsifry/metaswarm/setup/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.
<a href="https://agentmods.dev/skills/dsifry/metaswarm/setup"><img src="https://agentmods.dev/badge/skills/dsifry/metaswarm/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00019 | $0.06829 |
| Opus 5.5 | $0.00008 | $0.02732 |
| Sonnet 5.5 | $0.00004 | $0.01366 |
| Haiku 4.5 | $0.00002 | $0.00683 |
Grade A, and why
setup 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 514 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Setup
Interactive setup for metaswarm. Detects your stack, asks targeted questions, writes project-local files, and creates platform-appropriate instruction files and command shims. Replaces both npx metaswarm init and the old /metaswarm-setup command.
After Phase 2 (user questions), determine the correct coverage command from the detection results, then run this Bash command:
PLUGIN_ROOT="${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-${extensionPath:-}}}"
if [ -z "$PLUGIN_ROOT" ]; then
setup_script="$(find "${CODEX_HOME:-$HOME/.codex}/plugins/cache" -path '*/metaswarm/*/lib/setup-mandatory-files.sh' -print -quit 2>/dev/null)"
if [ -n "$setup_script" ]; then
PLUGIN_ROOT="$(cd "$(dirname "$setup_script")/.." && pwd)"
fi
fi
if [ -z "$PLUGIN_ROOT" ] && [ -f "$(pwd)/lib/setup-mandatory-files.sh" ]; then
PLUGIN_ROOT="$(pwd)"
fi
bash "${PLUGIN_ROOT}/lib/setup-mandatory-files.sh" "$(pwd)" <threshold> "<coverage-command>" --platform <platform> --reconfigure
Where:
<threshold>is the user's chosen percentage (e.g.,100)<coverage-command>is the enforcement command for their test runner:- pytest →
"pytest --cov --cov-fail-under=<threshold>" - vitest/pnpm →
"pnpm vitest run --coverage" - jest/npm →
"npx jest --coverage" - go →
"go run .metaswarm/go-coverage-gate.go"(go testhas no threshold flag; the script writes this gate program, which runsgo test -coverprofile=coverage.out ./...and fails below the thresholds in.coverage-thresholds.json) - cargo →
"cargo tarpaulin --fail-under <threshold>"
- pytest →
<platform>iscodex,claude,gemini, orall. Prefer:codexwhen running in Codex (PLUGIN_ROOTorCODEX_HOMEis present, or the user invoked$setup)claudewhen running in Claude Code (CLAUDE_PLUGIN_ROOTis present, or the setup skill was invoked there)geminiwhen running in Gemini (extensionPathis present, or the setup skill was invoked there)allonly when the user explicitly asks to configure every supported CLI
--reconfigure: always pass it from interactive setup, so the user's answers apply even when.coverage-thresholds.jsonalready exists (a re-run, or a first run afternpx metaswarm setupcopied the template). It updates the thresholds, a--cov-fail-under/--fail-undervalue inenforcement.commandand an old barego testcommand, and keeps every other setting. Only the session hook's self-heal omits it, so a silent background run never changes the file.
The script handles:
- Instruction file —
AGENTS.mdfor Codex,CLAUDE.mdfor Claude,GEMINI.mdfor Gemini; appends metaswarm section (or writes new), skips if already present .coverage-thresholds.json— writes at project root with correct thresholds and command (with--reconfigure, updates an existing one). For Go it also writes.metaswarm/go-coverage-gate.go- Claude command shims — for Claude/all only, writes
.claude/commands/start-task.md,prime.md,review-design.md,self-reflect.md,pr-shepherd.md,brainstorm.md
The script outputs JSON with what was created/skipped/warned/errored. Check that "status": "ok", and show the user every entry in warnings (for example an enforcement.command that still embeds the old threshold).
If the script is not available or fails, fall back to writing these files manually with the Write tool. Do NOT skip them.
What ships with it
39 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- bin/estimate-cost.sh 1.8 KB runs code
- bin/external-tools-verify.sh 5.5 KB runs code
- bin/metaswarm-agents.sh 11 KB runs code
- bin/metaswarm-usage 13 KB
- bin/pr-comments-check.sh 2.7 KB runs code
- bin/pr-comments-filter.sh 6.6 KB runs code
- knowledge/anti-patterns.jsonl 840 B
- knowledge/api-behaviors.jsonl 834 B
- knowledge/codebase-facts.jsonl 899 B
- knowledge/decisions.jsonl 919 B
- knowledge/facts.jsonl 866 B
- knowledge/gotchas.jsonl 888 B
- knowledge/patterns.jsonl 893 B
- knowledge/README.md 3.9 KB
- scripts/beads-fetch-conversation-history.ts 13 KB runs code
- scripts/beads-fetch-pr-comments.ts 9.5 KB runs code
- templates/.env.example 249 B
- templates/AGENTS-append.md 6.0 KB
- templates/AGENTS.md 9.8 KB
- templates/beads-developer-setup.md 9.0 KB
- templates/beads-readme.md 3.5 KB
- templates/ci-coverage-job.yml 8.2 KB
- templates/ci.yml 4.6 KB
- templates/CLAUDE-append.md 7.9 KB
- templates/CLAUDE.md 19 KB
- templates/coverage-thresholds.json 607 B
- templates/external-tools-setup.md 10.0 KB
- templates/external-tools.yaml 1.3 KB
- templates/GEMINI-append.md 5.9 KB
- templates/GEMINI.md 9.2 KB
- templates/gitignore 294 B
- templates/go-coverage-gate.go 10 KB
- templates/gtg-workflow.yml 2.3 KB
- templates/models.yaml 1.6 KB
- templates/pre-push 2.8 KB
- templates/SERVICE-INVENTORY.md 1.3 KB
- templates/task-completion-checklist.md 7.6 KB
- templates/todo-management.md 3.8 KB
- templates/UI-FLOWS.md 1.9 KB
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.
- 4d ago Changed 703d4ea9bc2b
- 22d ago Changed · +28 lines 797da807a804
- 24d ago Changed 568431182f98
- 25d ago Changed · +17 lines db9bea912e46
- 3mo ago First seen · 469 lines · 19 tokens per session scan A 26a2660be6c1
setup is a skill published in the GitHub repository dsifry/metaswarm (442 stars, last pushed yesterday), licensed MIT. It adds 19 tokens to every session and 6,829 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-08-30.
setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| setupdsifry/metaswarm | Skill | 442 | yesterday | MIT | A | 19 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 331k | 4d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |