How to Set Up an AI Agent Team (Free Starter Kit)
Short answer
Set up one coordinator that splits the job and writes a brief for each specialist. Anthropic says each subagent needs an objective, an output format, guidance on the tools and sources to use, and clear task boundaries. Give each specialist only the tools it needs, and add a separate checker before anything ships. If the job is small or sequential, use one agent instead, because Anthropic found multi-agent systems use about 15× the tokens of a chat.

Get the free AI agent team starter kit
Download the free AI agent team starter kit. It is a .zip of Markdown files. No email needed.
The kit holds a coordinator brief template, role cards, a handoff checklist and an example Claude Code subagent file.
Coordinator brief template
The coordinator's role and when to stop.
Four role cards
Each card covers one job.
Handoff checklist
Before you delegate, check that the job is parallel. While it runs, keep a decisions file and a stop rule. Before shipping, make sure the checker ran every check.
Example subagent file
A researcher.md file with a read-only tools line.
Do you need a team? A one-agent-or-team rule
Is one agent enough for the job?
If the job is small or sequential
- Use one agent
If tasks can run in parallel or context pollution hurts
- Use a team
- Start with 3-5 teammates
Ask first whether one agent is enough. Anthropic says to start with the simplest approach that works. Add complexity only when evidence supports it. Anthropic has seen teams spend months on elaborate multi-agent systems. Better prompting on a single agent then gave the same results.
Agents already cost more and can compound their own errors. Use a team only when it earns its cost.
A team wins in a few cases, says Anthropic. Context pollution is the first: too much unrelated text clutters one agent's memory and hurts its results. Parallel work is the second. Specialization, which can sharpen tool choice or focus, is the third.
Anthropic also scales effort to the task. Simple fact-finding needs just 1 agent with 3-10 tool calls. A tool call is one action, such as a search. Direct comparisons might need 2-4 subagents with 10-15 calls each. Complex research might use more than 10 subagents. Each subagent has its own clearly divided job.
The next table shows where a team tends to fail.
Situation | What goes wrong | What to do instead |
|---|---|---|
Sequential tasks or many dependencies | Teammates end up waiting on each other's results, and the Claude Code docs say a single session or subagents are more effective. | Keep the work in one session, or use subagents. |
Edits to the same file | Two teammates editing the same file leads to overwrites. | Give each teammate its own set of files. |
Most coding tasks | Coding has fewer truly parallelizable tasks than research, and AI agents are not yet great at coordinating and delegating to other agents in real time. | Let one agent write the code. |
One agent with 20 or more tools | It struggles to select the appropriate tool. | Split the tools across specialists. |
Hoping to finish faster | The primary benefit of parallelization is thoroughness, not speed. | Use a team for coverage, not to save time. |
What a team costs in tokens, and what it buys
A team is the expensive choice. Tokens are the small pieces of text a model reads and writes. Agents typically use about 4× more tokens than chat interactions. Multi-agent systems use about 15× more tokens than chats.
Against one agent, multi-agent setups typically use 3-10x more tokens for the same tasks, Anthropic found. The two figures use different baselines, so they do not conflict.
What does the extra spend buy? On Anthropic's internal research eval, one multi-agent system beat a single agent by 90.2%. The lead agent was Claude Opus 4, and the subagents were Claude Sonnet 4. The single agent was Claude Opus 4.
Anthropic adds one condition. Multi-agent systems need tasks where the value is high enough to pay for the extra performance. Anthropic's early agents also wasted effort, with errors such as spawning 50 subagents for simple queries.
Step 1: Split the work by context, not by job title
In Anthropic's definition, a multi-agent system runs several LLM instances with separate conversation contexts, coordinated through code. An LLM is a large language model, the AI behind a chat assistant. The question is where to draw the lines.
Many people copy job titles, such as planner and tester. Anthropic says splitting by type of work is often counterproductive, because it creates constant coordination overhead. In one experiment, agents split by software development role spent more tokens on coordination than on actual work.
Split by context instead. Give one specialist the reading. A long pile of source text then stays out of everyone else's way. Give another the numbers. Give a third the writing. The writer starts from short summaries. Each one runs in its own conversation context.
OpenAI's docs also favor specialists. They prefer agents that excel in one task over a general-purpose agent. One role-based split does hold up: a separate checker, which Step 5 sets up.
Step 2: Write a role card for each specialist
A role card is a short written brief for one specialist. Each card carries the four parts of a brief. They are an objective, an output format, guidance on tools and sources, and clear task boundaries. Keep each card to one job.
Give every card a narrow set of tools. An agent with too many tools (often 20+) struggles to select the right one. Then write one description per card that singles out its job. Claude uses the description to decide when to delegate, say the Claude Code docs.
In Claude Code, a specialist is a subagent file. Each subagent runs in its own context window. It has a custom system prompt, specific tool access, and independent permissions. Project subagents live in .claude/agents/. The docs suggest checking project subagents into version control so your team can improve them together. Our subagents guide walks through creating one.
The sample below turns a researcher card into a subagent file. The name field is a unique identifier. The description tells Claude when to delegate. The tools line limits what the subagent can use. The sample is our own, written for this guide.
.claude/agents/researcher.md
---
name: researcher
description: Reads the sources named in a brief and returns a short summary with links. Use it for any job that starts with reading.
tools: Read, Grep, Glob
---
Objective: read the sources named in the brief and summarize what they say about the question.
Output format: a summary of a few short paragraphs, then a list of the links you used.
Tools and sources: use only the files and pages named in the brief.
Boundaries: do not draft the final text, do not edit any file, and stop after one pass over the sources.Step 3: Set up the coordinator
You
- Set the goal and approve the result
The goal goes down to the coordinator
Coordinator
- Breaks down tasks
- Delegates them to worker LLMs
- Synthesizes their results
A brief goes down to each specialist
Specialists
- Each runs in its own context window
- Specific tool access
Specialists send short summaries, and finished work goes to the checker
Checker
- Only needs to run tests and report results
The coordinator is the agent you talk to. You set the goal and approve the result. Anthropic calls the pattern orchestrator-workers. A central LLM breaks down tasks, delegates them to worker LLMs, and synthesizes their results.
Keep the coordinator a thin router. GitHub says this about its Squad tool: the coordinator does not do the work, it spawns specialists.
Routing is how the coordinator picks a specialist. Anthropic defines it as classifying an input and directing it to a specialized followup task. The risk is misrouting, which leads to poor results. The coordinator must classify each request correctly and delegate to the right agent. Clear descriptions from Step 2 help most.
In Claude Code, the coordinator's tools line lists which specialists it may start. The docs give this example.
tools: Agent(worker, researcher), Read, BashThat allowlist works only when the coordinator runs as the main thread, which you start with the --agent flag of the claude command.
Claude Code also has agent teams, which differ from subagents. Use subagents for quick, focused workers that report back. Use agent teams when teammates need to share findings, challenge each other, and coordinate on their own. Agent teams are experimental and disabled by default. Our guide to Claude Code agent teams shows how to switch them on.
OpenAI's Agents SDK has matching patterns. With handoffs, a triage agent routes the conversation to a specialist. The specialist then becomes the active agent for the rest of the turn. With agents as tools, a manager agent keeps control and calls specialist agents. Register one handoff per destination if there are multiple possible specialists.
Step 4: Brief every handoff with four parts
Each specialist starts in its own context window, so the coordinator's brief is all it knows about the task.
A worked example
In this made-up example, a coffee shop called Harbor Lane Coffee wants a weekly update from a researcher. The coordinator writes the brief below.
Part | Filled in for the weekly update |
|---|---|
Objective | Find the biggest changes in customer reviews and website visits since last Monday. |
Output format | A short summary in plain text, then the list of links you used. |
Tools and sources | Use only the review export and the visit summary in the shared folder, and do not browse the web. |
Task boundaries | Do not write the update itself and do not edit any file. Stop after one pass over the two sources. |
Now picture a vague brief such as "look into last week." Anthropic names the cost of vague briefs. Without detailed task descriptions, agents duplicate work, leave gaps, or fail to find necessary information. A thin coordinator can only pass on what it was given. So write the brief in full.
Step 5: Put a checker before anything ships
Add one specialist whose only job is to check the finished work. Anthropic's example is a verifier that only needs to run tests and report results. It does not require implementation context. Anthropic calls this checking pattern one that consistently works well across domains.
The checker has a known weakness. The biggest failure mode for checking subagents, Anthropic says, is marking outputs as passing without thorough testing. Write the checker's brief so it names every check to run. Ask it to report the result of every check. Anthropic says agents can pause for human feedback at checkpoints, so add one before anything risky ships. If your agents run on your own machine, read our self-hosted AI agent security checklist first.
Claude Code also has a TaskCompleted hook event. The event fires when a task is being marked as completed, so you can attach a check to it.
Step 6: Share state and keep files separate
Give each specialist its own files. The Claude Code docs warn that two teammates editing the same file leads to overwrites. They advise breaking the work so each teammate owns a different set of files.
Shared decisions need one home. GitHub's Squad appends each design choice to a decisions.md file as a structured block. A choice can be a library or a naming convention. Copy the idea with one decisions file. Every specialist appends to it, and the coordinator reads it. To keep what your agents learn, read our guide to building a second brain from AI chats.
Run it, watch it, and know when to stop
Start small. The Claude Code docs say to start with 3-5 teammates for most workflows. The docs add that 5-6 tasks per teammate keeps everyone productive. It also lets the lead reassign work if someone gets stuck.
Give the coordinator a stop rule. Anthropic says it is common to include stopping conditions, such as a maximum number of iterations, to maintain control. Write the limit into the brief. Say what the coordinator should do at the limit.
Find out whether your tool waits for each subagent to finish or lets it run in the background. Anthropic's research system runs subagents synchronously. Its lead waits for each set to complete before proceeding. In Claude Code, custom subagents that Claude spawns from the main conversation already start in the background by default.
Then stay close. The Claude Code docs say letting a team run unattended for too long increases the risk of wasted effort.
Frequently asked questions
Can a specialist start helpers of its own?
It depends. By default, a subagent can start subagents of its own, up to three layers below the main conversation. Agent-team teammates cannot spawn teammates. Only the lead manages the team.
Why does the coordinator send work to the wrong specialist?
Often two descriptions overlap. Rewrite them so each singles out one job.
Sources
These are the pages the facts above come from, read on 22 November 2026.
- When to use multi-agent systems (and when not to), Claude by Anthropic
- How we built our multi-agent research system, Anthropic
- Building effective AI agents, Anthropic
- Create custom subagents, Claude Code Docs
- Orchestrate teams of Claude Code sessions, Claude Code Docs
- Hooks reference, Claude Code Docs
- Handoffs, OpenAI Agents SDK
- Agent orchestration, OpenAI Agents SDK
- How Squad runs coordinated AI agents inside your repository, The GitHub Blog
Topics
- ai agent team
- ai agent coordinator
- multi-agent system setup
Xtrusio
AI visibility research
Xtrusio is the Perception Engine for B2B brands.
Free check
See how AI engines answer about you
Get your free AI visibility check
Keep reading
Technical SEO · 23 November 2026 · 11 min readIs It Safe to Run a Self-Hosted AI Agent? Security Checklist
A self-hosted AI agent is safe only after five checks. Get the free checklist and hardened compose file, with exact Docker flags and dated incidents.
Technical SEO · 23 November 2026 · 9 min readObsidian Second Brain From AI Chats and YouTube Transcripts
Turn your ChatGPT, Claude and Gemini chats and YouTube captions into Obsidian notes with a free starter kit, export steps and a builder script.
Technical SEO · 15 November 2026 · 5 min read