agentleFS
VRSENVRSEN/OpenSwarm/AGENTS.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 2 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the VRSEN/OpenSwarm repository that our weekly crawl found: only 2 in all, so this is a hint, not a trend. There is no adoption data for this file yet.
  • 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.

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
  1. Very specific:

    Update instructions.md with the new system prompt

    line 84
  2. Very specific:

    Update swarm.py to import and register the renamed agent

    line 85
  3. Distinctive:

    Before proceeding with agent creation, please read the following instructions carefully:

    line 121

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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:

  1. Imports a create_* factory function from each agent folder
  2. Instantiates all agents
  3. 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:

  1. Fork and rename the repo (e.g., seo-swarm)
  2. Decide which agents to keep, rename, or replace
    • Rename the folder and its files to match the new agent's purpose
    • Update instructions.md with the new system prompt
    • Update swarm.py to import and register the renamed agent
  3. Add or remove tools inside each agent's tools/ folder
  4. Update shared_instructions.md with any context all agents should share
  5. 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

AgentPurpose
orchestratorRoutes tasks to the right specialist
virtual_assistantEmail, calendar, Slack, file management
deep_researchWeb research and synthesis
data_analyst_agentData analysis, visualization, statistical modeling
docs_agentDocument creation and editing
slides_agentPowerPoint / HTML slide generation
image_generation_agentAI image generation and editing
video_generation_agentAI video generation and editing

Key Conventions

  • Each agent folder has one <name>.py file and one instructions.md
  • instructions.md is 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_MODEL in .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)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.