Swarms is a Python framework for coordinating multiple autonomous language-model agents into workflows such as sequential, concurrent, or hierarchical systems. It is used to build multi-step applications in which agents combine language models, tools, and memory. The catalogue entries provide agent-oriented skills, instructions, and an agent for working with Swarms.
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.
npx agentmods add instructions/kyegomez/swarms/claude-mdgit clone --depth 1 https://github.com/kyegomez/swarmsWrote 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/instructions/kyegomez/swarms/claude-md)<a href="https://agentmods.dev/instructions/kyegomez/swarms/claude-md"><img src="https://agentmods.dev/badge/instructions/kyegomez/swarms/claude-md.svg" alt="Measured on agentmods" 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.08544 | $0.08544 |
| Opus 5 | $0.04272 | $0.04272 |
| Sonnet 5 | $0.01709 | $0.01709 |
| Haiku 4.5 | $0.00854 | $0.00854 |
Grade A, and why
swarms CLAUDE.md 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 6d 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 — 1,101 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md — Swarms Framework Guide
This file teaches you how to build agents and multi-agent systems with the Swarms framework. Read it before writing any code in this repo.
Installation & Setup
pip install swarms
Set your LLM API key as an environment variable before running:
export OPENAI_API_KEY="sk-..." # OpenAI / GPT models
export ANTHROPIC_API_KEY="sk-ant-..." # Claude models
export GROQ_API_KEY="..." # Groq
# Any provider supported by LiteLLM works
All imports come from the top-level swarms package:
from swarms import (
Agent,
SequentialWorkflow,
ConcurrentWorkflow,
AgentRearrange,
GraphWorkflow,
SwarmRouter,
MixtureOfAgents,
HierarchicalSwarm,
GroupChat,
MajorityVoting,
# ...
)
Project Layout
swarms/
├── swarms/
│ ├── structs/ # All agent + multi-agent structures (61 files)
│ │ ├── agent.py # Core Agent class
│ │ ├── conversation.py # Conversation / memory management
│ │ ├── sequential_workflow.py
│ │ ├── concurrent_workflow.py
│ │ ├── agent_rearrange.py
│ │ ├── graph_workflow.py
│ │ ├── swarm_router.py # Single-entry-point router
│ │ ├── mixture_of_agents.py
│ │ ├── hiearchical_swarm.py
│ │ ├── groupchat.py
│ │ ├── majority_voting.py
│ │ ├── council_as_judge.py
│ │ ├── debate_with_judge.py
│ │ ├── heavy_swarm.py
│ │ ├── round_robin.py
│ │ ├── planner_worker_swarm.py
│ │ ├── auto_swarm_builder.py
│ │ └── multi_agent_exec.py # run_agents_concurrently + friends
│ ├── tools/ # Tool utilities, MCP, schema conversion
│ └── utils/ # Logging, formatting helpers
├── examples/ # 586 runnable examples
│ ├── single_agent/
│ ├── multi_agent/
│ ├── tools/
│ └── guides/
└── v12_examples/ # New v12 feature examples
Look in examples/ first before writing new code — there is almost certainly an existing example close to what you need.
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.
- 6d ago First seen · 1,101 lines · 8,544 tokens per session scan A 92d0d1083f1a
swarms CLAUDE.md is an instructions file published in the GitHub repository kyegomez/swarms (7,132 stars, last pushed today), licensed Apache-2.0. It adds 8,544 tokens to every session, about $0.0427 per session on Opus 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.
Other instructions, from other repositories
skillkit CLAUDE.md
Instructions for maxvaega/skillkit, covering skillkit, development approach, current focus (v0.4), key architectural decisions and core architecture (v0.1).
awesome-copilot copilot-instructions.md
Copilot instructions for github/awesome-copilot, covering readme updates, prompt file guide, instruction file guide, agent file guide and agent skills guide.
opik copilot-instructions.md
Copilot instructions for comet-ml/opik, covering copilot code review instructions, project overview, 1. git workflow & branch management, branch naming convention and commit message standards.
spiceai copilot-instructions.md
Copilot instructions for spiceai/spiceai, covering spice.ai agent instructions, data correctness — absolute top priority, evidence — no claim without a reproduction, build, test, lint (expensive — read first) and git & prs.
devops-ai-guidelines copilot-instructions.md
Instructions for VersusControl/devops-ai-guidelines, covering copilot instructions: kubernetes mcp workspace, operating rules and code style for go contributions.
claude-secure-coding-rules CLAUDE.md
Instructions for TikiTribe/claude-secure-coding-rules, covering claude.md - secure coding rules for claude code, project overview, repository structure, rule counts and rule format.