OpenSwarm
AGENTS.md2.9k starsChanged 8 months agoMITView on GitHub
This file gives coding agents (Cursor, Claude Code, Codex, etc.) everything they need to understand and customize this swarm. Read it before making any changes. OpenSwarm is a multi-agent AI team you can fork and reshape into any kind of swarm you need — SEO, sales, research, finance, customer support, or anything else. Each agent is a specialist. They collaborate through a shared orchestrator. swarm.py is the only file you need to edit when adding, removing, or rewiring agents. It:
- Reads credentials
Trending
Quiet since May.thin dataabout the whole repository
Who's talking about VRSEN/OpenSwarm
- @pythonhub.dev“OpenSwarm Claude code for everything except coding. https://github.com/VRSEN/OpenSwarm”Bluesky · May 22, 2026 · 3 likes
- VRSEN/agentswarm-cli“OpenAI Run-mode auth hides headless fallback when Codex browser callback port is unavailable”GitHub · May 7, 2026
The biggest 2 of 2 mentions linking to the repository that our crawl found. Each line is their own headline.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/agency-swarm-workflow.mdcCursor rule
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 84
Update instructions.md with the new system prompt
- Very specific: line 85
Update swarm.py to import and register the renamed agent
- Distinctive: line 121
Before proceeding with agent creation, please read the following instructions carefully:
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OpenSwarm — Customization Guide
This file gives coding agents (Cursor, Claude Code, Codex, etc.) everything they need to understand and customize this swarm. Read it before making any changes.
What is OpenSwarm?
OpenSwarm is a multi-agent AI team you can fork and reshape into any kind of swarm you need — SEO, sales, research, finance, customer support, or anything else. Each agent is a specialist. They collaborate through a shared orchestrator.
Folder Structure
swarm.py ← main config: imports all agents, defines how they connect
shared_instructions.md ← context shared across every agent
run.py ← CLI entry point (terminal demo)
server.py ← API entry point (FastAPI server)
orchestrator/
orchestrator.py ← agent definition
instructions.md ← system prompt
data_analyst_agent/
data_analyst_agent.py
instructions.md
tools/ ← custom tools for this agent
docs_agent/
docs_agent.py
instructions.md
tools/
slides_agent/
slides_agent.py
instructions.md
tools/
image_generation_agent/
image_generation_agent.py
instructions.md
tools/
video_generation_agent/
video_generation_agent.py
instructions.md
tools/
deep_research/
deep_research.py
instructions.md
tools/
virtual_assistant/
virtual_assistant.py
instructions.md
tools/
shared_tools/ ← tools available to all agents (Composio integrations, etc.)How Agents Connect (swarm.py)
swarm.py is the only file you need to edit when adding, removing, or rewiring agents. It:
- Imports a
create_*factory function from each agent folder - Instantiates all agents
- Defines communication flows — who can talk to whom
The default pattern is orchestrator-to-all: the orchestrator can send messages to every specialist, and all agents can hand off to each other.
How to Customize
To build your own swarm from this repo:
- Fork and rename the repo (e.g.,
seo-swarm) - Decide which agents to keep, rename, or replace
- Rename the folder and its files to match the new agent's purpose
- Update
instructions.mdwith the new system prompt - Update
swarm.pyto import and register the renamed agent
- Add or remove tools inside each agent's
tools/folder - Update
shared_instructions.mdwith any context all agents should share - Run with
python run.py
Example prompt to give your coding agent
"Turn this into an SEO optimization swarm. The Research Agent becomes an SEO Keyword Planner, the Docs Agent becomes a Blog Post Writer, the Data Analyst becomes an SEO Analytics Agent (Google Search Console + GA4), and the General Agent handles technical SEO like schema markup and site audits. Keep the orchestrator and shared tools as-is."
The coding agent will read this file, understand the structure, and make the right changes automatically.
Current Agents
| Agent | Purpose |
orchestrator | Routes tasks to the right specialist |
virtual_assistant | Email, calendar, Slack, file management |
deep_research | Web research and synthesis |
data_analyst_agent | Data analysis, visualization, statistical modeling |
docs_agent | Document creation and editing |
slides_agent | PowerPoint / HTML slide generation |
image_generation_agent | AI image generation and editing |
video_generation_agent | AI video generation and editing |
Key Conventions
- Each agent folder has one
<name>.pyfile and oneinstructions.md instructions.mdis the agent's system prompt — edit it to change behavior- Tools live in
tools/and are auto-loaded by the agent definition shared_tools/contains Composio-powered integrations (Gmail, Slack, GitHub, etc.) available to all agents- Models are configured via
DEFAULT_MODELin.env— never hardcoded
Before proceeding with agent creation, please read the following instructions carefully:
.cursor/rules/agency-swarm-workflow.mdc- your primary guide for creating agents and agencies
The following files can be read on demand, depending on the task at hand:
.cursor/commands/add-mcp.md- how to add MCP servers to an agent.cursor/commands/mcp-code-exec.md- how to convert an MCP server into the Code Execution Pattern (progressive tool disclosure, 98% token reduction).cursor/commands/write-instructions.md- how to write effective instructions for AI agents.cursor/commands/create-prd.md- how to create a PRD for an agent (use for complex multi agent systems)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

