/
Blog
How-To

How to Build a Team of AI Agents: Lead Bot + Specialists

Abo-Elmakarem ShohoudNovember 27, 20267 min read

To build a team of AI agents, create one lead bot and give each specialist bot one domain. Write a roster that says who owns what. Give every bot a home folder with a brief file, so facts survive long chats. The lead routes work by writing complete briefs, and you can still talk to any bot directly.

Why build a team instead of using one assistant?

For a long time I ran everything through one AI assistant: client work, my products, my phone, family projects, job applications. It worked until the chat held fourteen topics at once. A rule I gave for one client showed up in another client's email. Long chats were compressed and lost the detail I needed. And the assistant could do one thing at a time while five things waited.

Splitting the work into a team fixed four things:

  • Context stays clean. The finance bot never sees the product bot's code, and a client bot knows only its own client.
  • Rules stay where they belong. "Never push without my OK" lives in the one bot it applies to.
  • Work runs in parallel. Three bots can build, write and check at the same time while the lead keeps the list.
  • You can still talk to anyone. The lead routes; it is not a gate.

In my own setup the team started as one lead plus 13 specialists on day one. Eleven days later it was 18 bots, after splits and new products. The roster changed five times in those eleven days, so expect to adjust yours.

When should you not build a team?

A team costs more chats to watch and more files to keep. If your work has fewer than three separate domains, one assistant with a good brief file is enough. Build a team when context leaks between topics, or when you wait for one task to finish before starting another.

The pattern does not depend on one tool. I build mine with Hermes Agent, an open-source agent from Nous Research, where a "profile" is a separate agent with its own prompt, memory and history. If your tool gives you separate workspaces with standing instructions, notes in files, and a way to hand work from one workspace to another, you can build the same team.

How do you build the team, step by step?

  1. List your domains. Take your last 30 requests and sort them into five to eight groups. Draw boundaries by what changes together: a product and its repositories, a client account, a risk area such as finance or servers, and your personal life.
  2. Write the roster. One entry per bot, with a scope sentence, the folders it owns and a few routing keywords. Start with a lead and your two busiest domains, not eighteen bots.
  3. Define the lead's job in four parts. Do quick cross-cutting tasks itself; send domain work to its owner with a complete brief; track open delegations in one board file, one row per task; give you one short answer with your decisions as a numbered list.
  4. Create a home folder for each bot (next section), and write each system prompt from the roster so every bot knows who owns what.
  5. Fill each brief from real history. Let each specialist read its own past sessions and write its own brief.
  6. Run three real tasks through the lead, then split a bot only when it carries too much. Take a snapshot and keep a rollback script first, so any split can be undone.

Where can you get the templates and starter files?

Build Your Own AI Agent Team is $8 (22 pages in English, 23 in Arabic, one purchase for both). Its ten chapters run from the roster to the two-week plan. The bundle holds templates for the roster, system prompts, BRIEF, SESSIONS, handoffs and delegation, a task board, a machine-budget spreadsheet, four agent skills (roster change, session handoff, context recovery, stall check), a starter configuration with a team-builder script and a snapshot script, and practice files: 24 requests to route and 16 notes to sort, with answer keys. Details: https://aboelmakarem.pro/playbooks/ai-agent-team

What goes in a bot's home folder?

A chat is a bad place to keep facts. It gets long, then compressed, and a new session starts empty. So each bot has a home folder whose files outlive any chat.

The most important file is BRIEF.md, the bot's playbook. Use the same headings for every bot:

  • Scope: one paragraph, copied from the roster.
  • Work folders and repositories: path, branch, how it deploys, what never to touch.
  • People and contacts: by role. No phone numbers.
  • Standing rules and decisions: what you said once and never want to repeat.
  • Open threads: status, last date, and which session holds the work.
  • Skills: which procedures this bot uses.

Three habits keep a brief useful: a new fact patches its line in place instead of piling up dated notes; every guess is tagged "(unconfirmed)"; secrets never go in, and the brief names the file that holds them.

A second file, SESSIONS.md, indexes the past: date, title, folder and session id, plus the parallel sessions the bot has opened.

How should the lead hand work to a specialist?

The lead never forwards your words as they are. The specialist knows nothing of your conversation, so the lead writes a self-contained brief with six headings: Goal, Context, Paths, Deadline, Constraints, Expecting.

Two details matter more than they look. Your approvals go in word for word, as scoped grants, or the specialist stops to ask again. And your numbers go in exactly as you said them. If the lead thinks one will not work, it asks you; it never briefs a substitute.

Every message is either a task that expects a reply, or notify-only. Before the lead tells you something is done, it checks the artifact itself: the file, the version on the server, the page. "Fixed" often means a local commit, not production.

What should each bot remember, and what should be a skill?

Memory is loaded into every turn, so it must be tiny. In my setup it is 2,200 characters per bot. Skills are loaded only when a task needs them, so they can be long.

  • Memory: facts that apply to every session. Write facts, not orders. "Owner prefers short answers" is a fact; "always answer briefly" is an order that gets re-read later as today's request.
  • BRIEF.md: facts of one domain, read at the start of a topic.
  • Skills: procedures, such as how to release or how to change the roster. Write lessons with their reason, not logs.
  • Task progress belongs in none of these. It goes in the session history and the handoff.

How do you stop a team from freezing your machine?

A team can run many things at once; your computer cannot. Every bot, parallel session and subagent shares the same hardware. In my setup the limits are: five subagents at once, at most two parallel sessions per bot, and at most three heavy jobs (builds, renders, OCR, tests) across the whole machine, run at the lowest priority with nice -n 19.

These limits came from a real freeze. One bot ran text recognition over video frames with 11 parallel processes, and the laptop stopped responding; the reboot killed every running bot turn. Memory did the damage, so briefs now ask for the lightest sampling that answers the question.

Frequently asked questions

How many bots should I start with?

Start with a lead and two specialists on your two busiest domains, then add bots when the work asks for them. My own team grew to eighteen, but not on day one.

Do I need Hermes Agent?

No. I use it, and the playbook says where a step depends on it. Any tool with separate workspaces, standing instructions, notes in files and a way to hand work between workspaces can host the same pattern.

Why not one long chat with a very large prompt?

Because the rules and facts for every topic then load into every task, and long chats get compressed and lose detail.

What if two bots start doing the same task?

Keep one owner per step. If a step is blocked at one bot, ask it to finish another way instead of briefing a second bot, and withdraw a stale instruction instead of contradicting it with a third message.

Where to go next

For the templates, skills and the two-week plan in one place, see the playbook Build Your Own AI Agent Team ($8): https://aboelmakarem.pro/playbooks/ai-agent-team

Written by Abo-Elmakarem Shohoud, independent corporate AI trainer, Cairo.

Category

Artificial Intelligence

Share this post

Related Posts