Summary note: This is a summary of Khairallah AL-Awady’s (@eng_khairallah1) long X post from 11 November 2026, “How to Build Your First Team of AI Agents Using Claude Fable 5.2”, not a reprint of the original; the 10 prompts in this article are the author’s original prompts, quoted verbatim (the author published them for readers to copy and use), and all other prose is a summary. Original link: https://x.com/eng_khairallah1/status/2120506007143280812
Note: published 11 November; at the time of checking (around 09:30 on 13 November) the article page showed about 34.6K views, 128 likes, 30 reposts and 224 bookmarks. Python indentation is compressed when X text is extracted, so this article restores standard Python indentation without changing identifiers, strings or logic; check the original page if you need byte-exact pasting.
Most developers think building an AI agent team requires frameworks, complex orchestration, or deep infrastructure knowledge. The author’s view is the opposite: you don’t need any of that — your first team takes 3 minutes to set up. This 12-minute guide walks through 13 steps and gives every prompt you need along the way.
Note: this is a different author and different content from the codila “Fable 5.2 masterclass” published on this blog on 12 November — that one covered a personal Fable 5.2 workflow setup; this one is about building a multi-agent team with Fable 5.2.
Step 1: The problem — one agent can’t do a whole team’s work
Most companies still use single-agent systems: give one model one prompt and hope it works. The author’s analogy: it is like asking one person to do the work of an entire team.
Research. Planning. Coding. Testing. Reviewing. Deployment. A single model cannot do all of this well. When the task gets too big, it forgets context, hallucinates details, and makes mistakes.
The solution is simple: build a team. Each agent has a role. One plans. One codes. One reviews. One tests. They work together, share context, and check each other’s work. The result is better output, fewer errors, and a system you can actually scale.
Step 2: Start with the team manager
A team needs a manager, and a manager needs a plan. The manager’s job is to look at a task, break it into pieces, and assign each piece to the right expert.
First, set up the tools: go to the Anthropic Console and get an API key. You can also use the Claude app directly.
Then send Claude this prompt (the author’s original prompt, quoted verbatim):
You are an expert software architect and team lead. Build me a software project using a multi-agent team approach. The project is a task management app with the following features: user login, task creation, task editing, and task deletion. Break this project into 5 parts and assign each part to a different expert agent. Give me the list of experts and their roles in a clear table.
You will get a clear breakdown of tasks and a team structure. Save this response — it will be your project plan.
Step 3: Define the expert agents
Each expert is a separate Claude agent with a unique system prompt that defines what it does, how it works, and what it should output.
Start with the Python expert — copy and paste this prompt (the author’s original prompt, quoted verbatim):
You are an expert Python developer. Your role is to write clean, efficient, and production-ready Python code. Follow PEP 8 standards, use type hints, and include docstrings for all functions. When given a task, write the complete code with proper error handling and comments.
Repeat this for the other experts. Here are their prompts:
Frontend Expert prompt (the author’s original prompt, quoted verbatim):
You are an expert frontend developer specializing in React and TypeScript. Build responsive, modern user interfaces with clean code. Use Tailwind CSS for styling and ensure accessibility standards are met.
Database Expert prompt (the author’s original prompt, quoted verbatim):
You are an expert database architect. Design efficient database schemas, write optimized SQL queries, and ensure data integrity. Use PostgreSQL for relational data and consider indexing strategies for performance.
Testing Expert prompt (the author’s original prompt, quoted verbatim):
You are an expert QA engineer. Write comprehensive test cases, identify edge cases, and ensure code quality. Use pytest for Python testing and Jest for JavaScript testing.
DevOps Expert prompt (the author’s original prompt, quoted verbatim):
You are an expert DevOps engineer. Set up CI/CD pipelines, Docker containers, and cloud deployment configurations. Ensure security best practices and monitoring are in place.
Now you have five experts ready to work on your project.
Step 4: Set up team communication
This is where the magic happens: agents need to talk to each other. Each agent must share its work with the team so the next agent can build on it.
Here is the communication prompt you need (the author’s original prompt, quoted verbatim):
You are part of a multi-agent team. When you receive a task, complete it and then share your results in this format:
TASK COMPLETED:
[Your completed work]
NEXT STEPS:
[What the next agent should do]
CONTEXT FOR TEAM:
[Any important information the team needs to know]
This simple format keeps everyone on the same page. No one repeats work. No one loses context.
Step 5: Create the three core system prompts
Now build the real system, around three core system prompts:
Manager Prompt (the author’s original prompt, quoted verbatim):
You are the Team Manager for a software development team. Your role is to:
1. Analyze the incoming task
2. Break it down into subtasks
3. Assign each subtask to the appropriate expert agent
4. Monitor progress and ensure quality
5. Synthesize the final result
You must be clear, organized, and decisive. When you delegate, be specific about what you want.
Expert Prompt (the author’s original prompt, quoted verbatim):
You are an Expert Agent on a software development team. Your role is to:
1. Receive tasks from the Team Manager
2. Complete your assigned work with high quality
3. Share your results using the team communication format
4. Ask for clarification if the task is unclear
You are a specialist. Focus on your area of expertise and deliver excellent work.
Reviewer Prompt (the author’s original prompt, quoted verbatim):
You are the Quality Reviewer for a software development team. Your role is to:
1. Review all work completed by expert agents
2. Check for errors, bugs, and quality issues
3. Provide constructive feedback
4. Approve work that meets standards or request revisions
You must be thorough and detail-oriented. Never approve work with known issues.
Save these three prompts. They are the foundation of your team.
Step 6: Build the team structure in Python
Now turn all of this into real code, using Python and the Anthropic API.
Install the required library:
pip install anthropic
Then create the base Agent class:
class Agent:
def __init__(self, name, role, client):
self.name = name
self.role = role
self.client = client
self.memory = []
def work(self, task):
response = self.client.messages.create(
model="claude-opus-4-5",
max_tokens=4000,
messages=[{"role": "user", "content": f"{self.role}\n\nTask: {task}"}]
)
result = response.content[0].text
self.memory.append(result)
return result
Each agent has a name, a role (system prompt), and memory. Note the model is claude-opus-4-5 with a 4,000-token cap per call.
Step 7: Create the TeamManager class
class TeamManager:
def __init__(self, client):
self.client = client
self.team = []
self.messages = []
def add_agent(self, agent):
self.team.append(agent)
def assign_task(self, task, agent_name):
for agent in self.team:
if agent.name == agent_name:
result = agent.work(task)
self.messages.append(f"{agent.name}: {result}")
return result
return "Agent not found"
The manager keeps track of team members and assigns tasks to the right agent.
Step 8: Set up the team communication system
Agents need to share messages:
class TeamCommunication:
def __init__(self):
self.messages = []
def send_message(self, sender, receiver, message):
self.messages.append({
"sender": sender,
"receiver": receiver,
"message": message,
"timestamp": "now"
})
def get_messages_for(self, agent_name):
return [msg for msg in self.messages if msg["receiver"] == agent_name]
This is a simple message system. The author notes that in production you would use a database or message queue instead.
Step 9: Run your first team task
Put it all together and run a task:
from anthropic import Anthropic
client = Anthropic(api_key="your-api-key-here")
manager = TeamManager(client)
python_expert = Agent("Python Expert", "You are an expert Python developer...", client)
frontend_expert = Agent("Frontend Expert", "You are an expert frontend developer...", client)
database_expert = Agent("Database Expert", "You are an expert database architect...", client)
manager.add_agent(python_expert)
manager.add_agent(frontend_expert)
manager.add_agent(database_expert)
result = manager.assign_task("Build a login system with email and password", "Python Expert")
print(result)
Replace "your-api-key-here" with your actual API key from the Anthropic Console.
Step 10: Add the reviewer agent
Quality matters. Add a reviewer to check the work:
reviewer = Agent("Reviewer", "You are the Quality Reviewer...", client)
manager.add_agent(reviewer)
work = manager.assign_task("Build a login system", "Python Expert")
review = manager.assign_task(f"Review this code and find any issues: {work}", "Reviewer")
print(review)
The reviewer checks the work and provides feedback. If there are issues, the expert can fix them.
Step 11: Test the full team workflow
def run_team_workflow(task):
# Step 1: Manager breaks down the task
plan = manager.assign_task(f"Break down this task into subtasks: {task}", "Python Expert")
# Step 2: Experts work on their parts
backend = manager.assign_task("Build the backend API", "Python Expert")
frontend = manager.assign_task("Build the frontend UI", "Frontend Expert")
database = manager.assign_task("Design the database schema", "Database Expert")
# Step 3: Reviewer checks everything
review = manager.assign_task(f"Review all work: {backend} {frontend} {database}", "Reviewer")
return {
"plan": plan,
"backend": backend,
"frontend": frontend,
"database": database,
"review": review
}
result = run_team_workflow("Build a complete task management app")
print(result)
The flow: the manager breaks down the task, the experts each complete their part, and the reviewer checks everything at the end.
Step 12: Deploy your team
Your team is ready. The author gives a FastAPI example for deployment:
# Deploy with FastAPI
from fastapi import FastAPI
app = FastAPI()
@app.post("/run-team")
async def run_team(task: str):
result = run_team_workflow(task)
return result
# Run with: uvicorn main:app --reload
You can also deploy with Docker, AWS, or any cloud platform — the team structure works anywhere.
Step 13: Scale your team
You now have a working multi-agent team. Here is how to scale it:
- Add more experts for specialized tasks (security, performance, UX);
- Use a shared database for team memory;
- Implement a message queue for async communication;
- Add monitoring and logging;
- Create templates for common projects.
The author’s key insight: you don’t need a framework to build a multi-agent team. You just need clear roles, good communication, and Claude. Your first team takes 3 minutes to set up.
One caveat
The value of this guide is the complete skeleton of a “minimum viable team”: role prompts, a communication format, Python classes, and a deployment example, all ready to run. But it is also a teaching demo — TeamCommunication hard-codes its timestamp as "now", messages are never actually wired into the workflow, and there is almost no error handling. Treat it as a starting point for understanding multi-agent collaboration, not as a production-grade framework, and it is pitched exactly right.
Written by

