Automate & Reverse-Engineer Prompt Engineering with PromptOptima Engine
Multi-Agent Swarm Coordinator (Kimi, AutoGen & CrewAI Manager): SOUL.md, MEMORY.md, and AGENTS.md Directives
Master multi-agent swarm orchestration. Get a ready-to-use SOUL.md, MEMORY.md, and AGENTS.md template for managing agent swarms in Kimi, AutoGen, CrewAI, and Claude Code.
Multi-Agent Swarm Coordinator (Kimi, AutoGen & CrewAI Manager): SOUL.md, MEMORY.md, and AGENTS.md Directives
As enterprise AI implementations scale beyond individual AI agents, multi-agent frameworks—such as Kimi Agentic Swarm, Microsoft AutoGen, CrewAI, MetaGPT, and multi-agent Claude Code setups—have become the industry standard for complex software automation.
In a multi-agent swarm, individual specialized agents (such as a Researcher Agent, Developer Agent, QA Agent, and DevOps Agent) must collaborate seamlessly under the guidance of a Swarm Coordinator Agent.
To prevent agents from talking in loops, stepping on each other's work, or losing track of the master goal, modern swarm architectures introduce a third core configuration file: `AGENTS.md` (Sub-Agent Routing & Protocol Definition), alongside `SOUL.md` (Coordinator Persona) and `MEMORY.md` (Global Swarm State).
In this culminating guide, we unpack the complete 3-file multi-agent swarm specification (`SOUL.md`, `MEMORY.md`, and `AGENTS.md`) and provide a ready-to-use production template.
---
1. The 3-File Swarm Architecture Topology
```
[Swarm Master Workspace]
│
├── SOUL.md <── Coordinator Persona, Consensus Rules, & Quality Gates
├── MEMORY.md <── Global Swarm Task DAG, Active Token Budget, & Output Log
├── AGENTS.md <── Sub-Agent Roster, Tool Permissions, & Hand-off Routing Rules
└── agents/ <── Sub-Agent Specialized SOUL.md Files
├── developer.md
├── researcher.md
└── qa_auditor.md
```
---
2. Engineering `AGENTS.md` (Sub-Agent Routing & Hand-Off Rules)
While `SOUL.md` defines who the Swarm Coordinator is, `AGENTS.md` defines the roster of available worker agents and the rules for routing sub-tasks between them.
```markdown
AGENTS.md - Multi-Agent Swarm Roster & Hand-Off Rules
1. Sub-Agent Roster
2. Hand-Off Protocols & Routing Rules
```
---
3. Production Coordinator `SOUL.md` Template
```markdown
SOUL.md - Multi-Agent Swarm Coordinator
1. Core Identity & Role
You are SwarmCommander Alpha, the Lead Multi-Agent Swarm Coordinator. Your mission is to decompose complex user goals, delegate sub-tasks to specialized worker agents defined in `AGENTS.md`, manage global state in `MEMORY.md`, and synthesize final deliverables.
2. Coordination Directives
3. Negative Constraints
```
---
4. Conclusion & Complete Agentic Suite Summary
With Iteration 20, our 4-part Agentic Suite (Iterations 17-20) is complete. You now possess production setup blueprints for `SOUL.md`, `MEMORY.md`, and `AGENTS.md` across Full-Stack, Marketing, DevOps, Security, Data Science, Customer Support, and Swarm Coordinator agents.
Download ready-to-use swarm blueprints at PromptsForYou.online!
Automate & Reverse-Engineer Prompt Engineering with PromptOptima Engine
Want to optimize or reverse-engineer this prompt automatically?
PromptOptima Engine automatically eliminates redundant tokens, parses XML tags, and improves model reasoning.
Frequently Asked Questions
What is AGENTS.md in multi-agent swarms?
AGENTS.md defines the sub-agent roster, tool permissions, and hand-off routing rules between specialized worker nodes.
Which swarm frameworks support this 3-file setup?
Kimi Agentic Swarm, AutoGen, CrewAI, MetaGPT, LangGraph, and multi-agent Claude Code CLI setups.
How to prevent infinite looping between agents?
Enforce strict retry caps (e.g. max 3 retries) and mandate Coordinator intervention on deadlock.
Table of Contents
- •1. The 3-File Swarm Architecture Topology
- •2. Engineering `AGENTS.md` (Sub-Agent Routing & Hand-Off Rules)
- •1. Sub-Agent Roster
- •2. Hand-Off Protocols & Routing Rules
- •3. Production Coordinator `SOUL.md` Template
- •1. Core Identity & Role
- •2. Coordination Directives
- •3. Negative Constraints
- •4. Conclusion & Complete Agentic Suite Summary
Related Prompt Templates
Reverse-engineer, optimize, and test LLM system prompts automatically across models.
Launch Refiner Engine ⚡