TubeSum ← Transcribe a video

How to Build Claude Agent Teams Better Than 99% of People

0h 16m video Published Mar 23, 2026 Transcribed Jul 31, 2026 N Nate Herk | AI Automation
Intermediate 12 min read For: Developers and AI enthusiasts familiar with Claude Code who want to build multi-agent systems.
AI Trust Score 72/100
⚠️ Average / Some Fluff

"Delivers a genuinely useful, hands-on guide with setup, prompts, and pitfalls — though the '99%' claim is marketing flair."

AI Summary

This video demonstrates how to build and manage Claude Code agent teams — teams of AI agents (e.g., front-end, back-end, QA) that share a task list, communicate with each other, and work in parallel under a main orchestrator. The creator walks through enabling the experimental feature, creating a local reference guide, writing effective team-creation prompts, and shares best practices, pitfalls, and when to use agent teams vs. subagents.

[00:01]
Live demo: spawning a three-agent team

Using the 'team create' tool, Claude Code spawns a front-end developer, back-end developer, and QA agent in parallel. They share a task list and talk to each other; the QA agent sent work back to the devs for fixes, producing a polished landing page.

[01:33]
Agent teams vs. subagents

Agent teams have a team lead (or project manager) and a shared task list, and individual teammates can communicate directly. Subagents work independently and only report back to the main session.

[02:38]
Enabling the experimental feature

Agent teams are disabled by default. You need to add the enable variable to your project's settings.local.json inside the .cloud folder (or in your user settings).

[03:28]
Create a local documentation guide

Copy the official agent teams documentation URL and ask Claude Code to create a master reference guide markdown file in your project so it can answer questions faster and more accurately.

[04:32]
Agent teams are slower but higher quality

The honest trade-off: agent teams cost more time and tokens but produce much higher-quality results if you prompt them correctly.

[04:46]
The natural-language team creation pattern

Follow this pattern: 'Create a team of X agents using model Y. The first agent is role X, should do this, and produce this. It can talk to other agents to do X.' List each agent similarly.

[05:13]
Establish a goal first

Agents wake up with zero context — they only receive the main session prompt. Stating the goal (e.g., 'stack app with REST API and React front end') helps agents understand what they're working toward and why teammates exist.

[06:33]
Dos and don'ts for agent teams

Do assign each agent specific files, define output recipients, keep teams at 3–5 agents, and give full context. Don't force massive 10+ agent swarms or assume agents know who to message.

[07:12]
Live prompt: research team

A team of researcher, strategist, and critic reviews documentation, finds 11 gaps, and produces a detailed 'Agent Teams Patterns' document. The main agent can direct-message teammates and even correct them.

[09:46]
Watch agents in tmux

Running Claude Code in a tmux terminal lets you see each agent (colored differently) working and thinking, and lets you directly message any teammate.

[11:31]
Three key rules

Give each agent its own territory/files; encourage direct messaging between agents; allow parallel work with continuous communication rather than just sequential handoffs.

[14:05]
When to use agent teams

Use them for complex, multi-specialist parallel work requiring high quality. Avoid them for sequential, single-context, or simple tasks where they're overkill and expensive.

Agent teams are a powerful but resource-hungry feature: use them for complex, parallel, multi-expert work, give agents clear goals, file ownership, and permissions, and monitor them in tmux for full control. Master the prompt pattern and you'll consistently build better AI teams.

Mentioned in this Video

Tutorial Checklist

1 02:50 Enable the experimental agent teams feature: go to the official Claude Code documentation and add the enable variable to your project's settings.local.json (or user settings).
2 03:28 Build a local reference guide: copy the agent teams documentation URL and ask Claude Code to create a master markdown guide in a docs folder for faster lookups.
3 04:46 Write your team-creation prompt using the pattern: 'Create a team of X agents using model Y', then list each agent's role, task, output, and which teammates it should message.
4 07:12 Run the prompt in Claude Code and let it spawn teammates in parallel; watch the shared task list and live updates.
5 09:46 For full visibility, run Claude Code inside a tmux terminal so you can see each agent's individual work and send direct messages to any teammate.
6 12:34 Set up plan approval mode so teammates must get their plans approved (by you or the main session) before taking actions.
7 15:38 Shut down cleanly at the end: send a shutdown request, let each agent save its work and confirm it's ready, then finalize rather than force-killing.

Study Flashcards (10)

What is the main difference between subagents and agent teams in Claude Code?

medium Click to reveal answer

Agent teams have a team lead/project manager, a shared task list, and teammates can talk to each other; subagents work independently and only return results to the main agent.

01:33

How do you enable the agent teams feature?

medium Click to reveal answer

Add the experimental enable variable to your project's settings.local.json (in the .cloud folder) or user settings; it is disabled by default.

02:50

Why should you create a local markdown guide from the agent teams documentation?

easy Click to reveal answer

So Claude Code has the docs stored locally and can answer questions faster, avoiding repeated documentation fetches.

03:28

What is the trade-off of agent teams?

easy Click to reveal answer

They are slower and more expensive, but produce much higher quality results when used correctly.

04:32

What is the recommended prompt pattern for creating teams?

medium Click to reveal answer

'Create a team of X agents using model Y', then describe each agent's role, task, expected output, and which teammates it should message.

04:46

Why should you start your team-creation prompt with a goal?

medium Click to reveal answer

Because agents wake up with zero context; the goal gives them shared direction and explains why teammates exist.

05:13

What happens if agents share files without ownership?

easy Click to reveal answer

They might overwrite each other's work; each agent should own specific files.

06:45

What do teammate agents inherit from the main session?

medium Click to reveal answer

Permissions, files, MCP servers, and skills.

12:22

What is plan approval mode for agent teams?

hard Click to reveal answer

Teammates must create plans and get approval before executing; the main session (or a designated reviewer teammate) approves.

12:34

How should you shut down an agent team?

medium Click to reveal answer

Send a shutdown request and let agents save their work and confirm they are ready, then cleanly finalize — don't force kill.

15:38

💡 Key Takeaways

💡

Agent teams unlock direct agent-to-agent communication

This is the core differentiator from subagents and enables autonomous review-fix loops.

01:33
🔧

A repeatable prompt pattern for team creation

Gives a concrete, natural-language template anyone can plug their own roles into.

04:46
⚖️

File ownership prevents overwrites

A simple but often-missed rule that keeps multi-agent work from collapsing.

06:33
🔧

tmux gives you visibility and control

Running in tmux lets you watch and message individual agents in real time.

09:46
💡

Agent teams are for complex parallel work

Helps you decide when the extra cost is justified, saving tokens and time.

14:05

[00:01] create a team called Neuroflow of three teammates using Sonnet. The first one is a front-end developer, the second one is a back-end developer, and the third one is a QA agent. So, this now invoked a tool called team create. And you can see

[00:14] created this team, it's spawning up three teammates in parallel. And these we can see we have our front-end developer, we have our back-end developer, and we have our QA agent. So, what's happening is right now we have

[00:27] our main session. They all share a task list, they can talk to each other, and once this is done. Okay, so this is really interesting. The front-end and back-end developer sent work over to the QA agent, and then the QA agent found

[00:40] agent said that it's going to send all of this work right back to those first So, here's where you can see it sent off those messages to the front-end And now they're all back to work once again. And there we go, the second time

[00:54] of those critical issues have been resolved. And then it was able to obviously there are some things that aren't perfect about this and we'd want to go back and iterate, but considering in the prompt all I said was to build me

[01:07] a landing page for a fictional AI startup and we get all of this text, we stuff to come in dynamically, and it feels pretty polished. It came up with all the copy, the color scheme, all of it. This is truly one of the most

[01:19] used, but you have to know how to use it right, which is why in today's video I'm know, what they are, how to set them up, how to use them, when not to use them, waste any time and get straight into the video. So, agent teams. As you guys saw

[01:33] called Neuroflow, and in that team we had three agents. We had the front-end what happens is the main orchestrator, the Claude code session you're talking to, creates these different agents and manages them. But not in the same way

[01:47] agents work independently and then they send their individual result back to the main agent. Agent teams have a team lead, maybe like a project manager, and it creates all of these different agents and a shared task list. So, the huge

[02:00] unlock here is that individual teammates can talk to each other. So, sometimes something from teammate two, and they can just talk. And you can get in these have the QA agent like we just saw in the demo, where one of the teammates

[02:13] good enough." and send the work back. And then the main agent, like I said, is getting done and that they're all high quality. So, that's the big difference I had to clear that up because I know that's probably where there's some

[02:25] stuff down, but what I want to do first is just show you guys how to set this up just to be able to play around with stuff. And all you have to do to set into your project setting. So, let me show you how that works right now. All

[02:38] right, here I am in Cloud Code. I like to use it in VS Code, but you can use the agent teams feature wherever you decide to use Cloud Code. You can see nothing in it. So, this is exactly what one of you guys' setup should look like

[02:50] said, we need to enable the feature, and I'm going to do that in this demo on the is go to the official Cloud Code documentation for agent teams, and you disabled by default because it's an experimental feature. So, you have to

[03:04] enable them by adding this variable into your settings.json. So, what I'm going right here and come into Cloud Code and say, "Hey, I need you to put this in our local settings in this project." and

[03:16] I'm going to go ahead and shoot that to create that file for us. So, you can see that it set everything up. We now have a .cloud folder. If I click in here, we have a settings.local.json,

[03:28] and it has put that command in there. And now our project should be set up to Now, before we dive in and I start showing you guys how to do that, there first. And that's basically training your Cloud Code project on how agent

[03:41] teams work so that they can actually be used as effectively as possible. So, the documentation on agent teams, you take the URL, and you copy it. And then I said, "Hey, create me a master reference guide for agent teams in a folder called

[03:54] build better and more effective agents in the future." And now it's going to if you ever have questions about agent teams or if it ever needs to look up already has that locally here stored as markdown. So it's going to be much

[04:07] documentation about enabling them, when to use them, display modes, task management, hooks, best practices, tons of stuff like that. And that can be found in the docs folder in this section, which is a full markdown file

[04:20] hundreds of lines. And that's just a little tip. That's something that I like to do whenever I have like maybe a big MCP server or certain documentation that constantly. So now that we're pretty much set up and ready to start building,

[04:32] actually tell Claude code to build us agent teams, but not just to build them, give you what you want. Because the truth about agent teams is that they are slower, but you do get much higher quality if you use them right. Now the

[04:46] them just using natural language. So I kind of follow this pattern. Create a team of X number of agents using X And then you basically just say the agents that you want. You would say

[05:00] the first agent is X role. This agent should be doing this and it should produce me this. It can talk to the other agents to do X, And so pretty much just listing that out in natural language. Whether that be an

[05:13] in natural language. Whether that be an API designer, a database engineer and or quick look at an example prompt. So I'm going to read this full one out. Now what you'll notice is I start off by establishing a goal. The reason I do

[05:25] this is because when the agents wake up, they have no context. They basically only get the prompt that the main session feeds into them. So if we tell agents, they understand a little bit better, you know, like what they're

[05:37] working towards, but also why they have their teammates next to them. So the stack app with a rest API and a react front end. The end result should be a host. It should have users and post functionality plus a QA test report

[05:51] then I said, "Hey, create me a team of three teammates using Sonnet. The first one's a back-end dev, it should be doing this. The second one is a front-end dev, and it should be doing this. And the third one is a QA agent that should be

[06:04] descriptions I said, "When you're done, message the front-end dev." And then in dev's message, and then you will send all this stuff to the QA." And then I'm should be because the main agent spins these three up, and then it's going to

[06:19] do I actually want at the end of the day? I want a running app, I want a report about pass and fail tests, and then I want a doc, which is basically what was built, key decisions, and how we run this moving forward. So we're

[06:33] about to hop right back into Claude Code and live prompt an agent. But real quick, let's talk about some dos and don'ts. So do have each agent own specific files because if you don't do this and agents are sharing files, they

[06:45] might overwrite each other's work, which is not good. Do define the output, don't recipients, don't just assume that they're going to understand who to talk to and why. Do have about three to five teammates, don't go for massive agent

[06:58] swarms of 10+. That'll also be 10 times more expensive. And do give full context given beforehand. Now of course, they project, they can still look through all of those files, but no context is fed in

[07:12] what I mean by that when we go in here and spin up a new agent team. Okay, so together. I'm in a fresh session, and I'm going to send off this prompt. I up the workspace. We have three agents called research team. We're using

[07:26] strategist, and a critic, and they're basically just going to read through everything's accurate and make sure that we're set up good. Let's take a look at what's going on. It's creating the research team, right? So it's created

[07:38] Now what it's doing is it's going to spawn the three teammates in parallel. actually show you how. So the first one is a researcher. If I click into this, is basically saying this is what the main agent sent to the agent. You are

[07:55] here is what your job is, and you have to be thorough and include anything that might be helpful. So this is basically the prompt that spun up that agent. You can see same exact thing happened for the strategist and for the critic. And

[08:08] read exactly what they were prompted to do and the step-by-step instructions. send your five use cases to the critic teammate using the send message tool. agents are able to talk to each other and send messages to each other. So now

[08:24] are running and they are all basically just waiting for their turn. And you'll time there's a new update, it updates me. So here comes another live update. done. There we go, it's done. So now what happens is we sent a message off to

[08:40] see what that message actually said. So this is the main agent talking to the researcher. It said, "Did you send your structured inventory to both the sure the strategist also received it. You were asked to message both

[08:53] teammates." And then we can see that the researcher confirmed that both teammates critic is running. All right, so everything just finished up. All the wanted to draw your attention to this. The main agent said, "Cool, let me shut

[09:06] down the teammates and finalize." I'll touch on this a little bit later, message to each of them, the researcher, the strategist and the critic, and Save your work." So anyways, we'll come back to that in a little bit, but we now

[09:20] have an output, which is a new document over here, Agent Teams Patterns, and it found a ton of stuff. There were 11 documentation gaps identified that are doc. So anyways, let's just click into the doc real quick. We're not going to

[09:32] it is super long, but this is the actual output that we just got from this agent insanely thorough. So, if you wanted to really, really understand how agent teams work, then spin up an agent team to help you explain agent teams. Now,

[09:46] of able to see what was going on, but not really under the hood. We couldn't thinking or doing, and that's because extension. If you do this in your terminal, and specifically if you have

[09:58] tmux installed, you can actually see the different agents working and thinking, to them. Because right here we're kind of only communicating through the main messages to the other ones. But one of the value props of agent teams is that I

[10:11] could individually message a sub-agent if I wanted to. So, let me show you what All right, so right now I'm running Cloud Code in a tmux terminal. Now, if little bit of a work around, but you just have to be in a tmux terminal. So,

[10:24] on it right now, but I literally just had Cloud Code walk me through it, and did here is I just pasted in this prompt, which obviously is like we talked about, we have the goal, we say create me an agent team, and then we

[10:37] dev, and our QA. This is basically the same exact prompt that I ran in the actual deliverable. What I want to show you guys here is the way that we can it's going to do is it's going to spin up that agent team for us, right? It's

[10:50] it's assigning owners, and now it's spawning those agents. And there we go, we just got our front-end dev created right here, and this is the blue agent. the back-end dev, and this is the green agent. And there we go, we just got our

[11:04] QA agent, which is the yellow one. So, now I very clearly can see what each of these agents is doing, which is super cool. And now if I wanted to, I could team status with the main session. I could come up here, and I could talk to

[11:16] things, or I could give it more info. Same exact thing with the QA, or same now I literally have an agent team that I can watch, and I can interact with any of them. And I can also watch them do research, create things, talk to each

[11:31] I said, I'm not going to run this whole thing out. I just wanted to show you guys that this is possible. Okay, now that we've seen some cool demos, let's talk about how do we actually make these things better and better and understand

[11:43] So, here are three key rules. The first their own territory. So, they should have their own file and they should be can send them across and they can communicate, but they should only really

[11:56] second thing is, once again, direct messaging. They can talk to each other. the main session. And then the third piece is that they can be working at the one hands off to agent two and then agent two hands off to agent three,

[12:10] because that honestly might not even call for an agent team. Agent teams work communicate throughout the whole process. So, what do teammates instantly that they don't have any context from the jump. What they do have is they

[12:22] inherit the permissions from the main session. So, if you're on bypass going to be on bypass permissions. If you allow all bash commands, then those same permissions will once again be inherited by the teammates. But the

[12:34] other thing to know that's very important is that any of your files, any of your MCP servers, any of your skills, all of the teammates can use and access ability to use something called plan approval mode. So, you guys know how

[12:47] I've told you always start in plan mode. If you plan with your main session before anything actually happens, it's way better. What we can do is we can have all of those agent teammates plan first and they have to basically get

[12:59] before they're actually allowed to go also set it up where you're actually the one who has to approve every single plan, but I think it's probably better to just have the main session do that.

[13:11] Or maybe even one of the teammates is just the plan reviewer and approver. So, I wanted to talk about some common pitfalls or mistakes that you might be that. So, the first one is if the agents keep

[13:24] stopping for that. You can pre-approve certain tools. So, that would be in your project settings or your local settings. You can allow certain commands, and that every couple seconds. If the deliverables aren't coming out feeling

[13:37] overridden, so make sure that you assign file owners. If you spin up an agent agents isn't really doing much or is just sitting around, then maybe you want to specifically make sure you're assigning each agent work or some sort

[13:50] prompt. If you're burning through way too many tokens, just use fewer agents. work, then tell them to basically store everything as a temporary file that they getting the wrong approval and it just seems like it's off, then maybe just try

[14:05] things to start until you understand the flow of how these teams work a little talk about when to use agent teams because like I said earlier, they can be slow and expensive, so you really just want to use them when you need something

[14:17] pretty complex done, and you need lots of different specialized agents. So, think about using them if your specific process or project has multiple areas, specialized in each of those. If you need those things to be done in

[14:29] react to each other, assign tasks to each other, communicate with each other. really high quality and you want tons of different steps to make sure, then an Now, if you have a process that could be done sequentially, meaning every time it

[14:43] those steps are dependent on each other, then maybe an agent team isn't the right you need everything in one specific conversation history or one context window, then don't use teams. If you're just kind of working on the same files,

[14:57] simple task, then agent teams would be overkill. There might be a lot of times instead. Like I said, with sequential or if you need a very focused result. If communicate, and if you want to save some tokens. Because once again, if you

[15:11] basically going to be three times the cost. So, if you have five, it'll be five times the cost. Which means I like to stay around maybe two to five agents max. You can keep them running parallel. Otherwise, you can use sub agents and

[15:24] make sure that you are shutting them down if you see them early on going off reason why I think it's helpful to use the tmux version, so you can actually when I say shut down, which is kind of what we saw earlier, I just mean

[15:38] basically at the end of every session saving your work. Because remember right here how we saw the main session say, "Hey, this is a shut down request." The "I'm not done yet. Let me save stuff.

[15:50] ready to be shut down, that means that everything's good and we can essentially cleanly save that work. So everything gets cleaned up and then we're good to agent team rather than just force killing it right away where things might

[16:04] be all out of control and not cleaned up yet. Well, all right. That is agent hop into Cloud Code and start building with some agent teams. And if you want to check out other Cloud Code stuff that I've been doing to expand your learning,

[16:16] guys over there, but that is going to be the end of the video. So if you enjoyed give it a like. It definitely helps me out a ton. And as always, I appreciate video. I'll see you on the next one. Thanks, everyone.

More from Nate Herk | AI Automation

View all

⚡ Saved you 0h 16m reading this? Transcribe any YouTube video for free — no signup needed.