← все видео

Stop Using Claude Code Like This (Use Sub-Agents Instead)

Leon van Zyl · 2026-01-14 · 31м 4с · 103 196 просмотров · YouTube ↗

Топики: ai-loop-engineering

🎧 Аудио

📝 Summary

model=deepseek-v4-flash · prompt=summary-v7 · 8 131→2 228 tokens · 2026-07-20 11:52:25

🎯 Главная суть

Ключевой навык при работе с Claude Code — использование встроенных и собственных суб-агентов, запускаемых в фоне. Это сохраняет контекст главного агента, предотвращает compaction и позволяет реализовывать сложные многокомпонентные проекты, не выходя за лимиты контекстного окна. Вместо того чтобы нагружать основной диалог всеми действиями, нужно делегировать специализированные задачи параллельным агентам, каждый из которых работает в собственном контексте.

Встроенные суб-агенты Claude Code

Claude Code имеет несколько предустановленных агентов:

Вызвать любого из них можно командой add @agent_name или просто указав @agent_name в сообщении. Запуск в фоне выполняется сочетанием Ctrl+B — главный агент продолжает диалог, пока суб-агент работает независимо.

Создание собственных агентов

Кастомные агенты создаются через команду /agents. Можно разместить их на уровне проекта (папка .claude/agents) или на пользовательском уровне (доступны во всех проектах). При создании нужно описать роль агента, дать название, выбрать доступные инструменты, модель (Sonnet, Opus или Haiku) и цвет для визуальной идентификации.

В видео созданы три агента:

  1. UI Expert — 20 лет опыта в UI/UX, применяет дизайн "Neo Brutalism" (яркие цвета, жёсткие тени), следит за минимализмом и адаптивностью.
  2. Coder — разработчик с 20+ годами опыта, пишет производительный, безопасный, хорошо документированный код.
  3. Code Reviewer — специалист по ревью кода: проверяет полноту, безопасность, производительность, читаемость, разбиение на модули, качество комментариев.

Системный промпт каждого агента содержит узкие правила — это делает их специализированными и повышает качество результатов.

Проблема контекстного окна

Максимальный размер контекста Claude Code — 200 000 токенов. По мере взаимодействия с главным агентом контекст заполняется. Когда он достигает предела, начинается compaction — информация из начала диалога отбрасывается, что резко снижает качество ответов. Типичная жалоба на "vibe coding" — плохой результат именно из-за попытки всё делать в основном потоке.

Суб-агенты работают в собственных контекстах, не затронутых compaction главного. Каждый запущенный суб-агент использует свой лимит токенов, а по завершении возвращает лишь краткое резюме. Это лишь незначительно увеличивает контекст главного диалога, но основная нагрузка остаётся в изолированных потоках.

Демонстрация защиты контекста

На примере анализа кодовой базы:

На простом проекте разница невелика, но на большой кодовой базе с десятками тысяч строк суб-агенты незаменимы: они могут совместно потреблять 80 000+ токенов, не затрагивая основной контекст.

Продвинутый воркфлоу: планирование

Перед реализацией сложной функции нужно войти в planning mode и использовать несколько planning agents. Главный агент делегирует исследование кода, анализ требований и генерацию плана трём parallel-агентам. В примере создаётся todo-list приложение с Kanban-доской, необязательной аутентификацией (Better Auth), Postgres и Drizzle ORM.

Три planning-агента выполнили работу, потребив суммарно ~80 000 токенов. Главный контекст при этом вырос всего до 26% (против обычных ~60% при самостоятельном планировании).

Создание детального implementation plan

После утверждения плана главный агент переключается в change mode и генерирует развёрнутый план с фазами, техническими деталями и конкретными шагами. План сохраняется в папку spec/. Если файлов много, агент запускает несколько general purpose agent параллельно для записи оставшихся документов — это ускоряет процесс в разы.

Параллельная реализация с Coder и Code Reviewer

Главный агент анализирует implementation plan и выявляет независимые фазы. Для каждой он создаёт "трек" (wave), где:

  1. Запускается Coder agent для написания кода.
  2. После завершения — Code Reviewer agent проверяет код.
  3. Цикл повторяется, пока фаза не будет полностью реализована.

Все треки работают параллельно. В примере одновременно запущены три Coder-агента: один строит Kanban-доску, второй — календарь, третий — фильтрацию. После каждого раунда включается ревью. По итогам всех фаз запускаются три Code Reviewer-агента для финальной проверки с разных перспектив (безопасность, доступность и т.д.).

Финальный код-ревью и исправление ошибок

После полной реализации контекст главного агента составил 58% — это намного меньше, чем потребовалось бы при последовательной работе в едином потоке. Финальное ревью выявило критические проблемы (безопасность, доступность). Для их исправления главный агент снова делегировал работу нескольким Coder-агентам параллельно — без роста основного контекста.

Приложение было собрано и запущено: зарегистрирован пользователь, создана задача с категорией и дедлайном, работают перетаскивание, календарь (день/неделя/месяц), данные сохраняются в Postgres. В итоге использовано 68% контекстного окна главного агента — притом что проект включает аутентификацию и полноценную базу данных.

📜 Transcript

en · 5 432 слов · 72 сегментов · clean

Показать текст транскрипта
In this video, we're looking at sub-agents and background agents. Understanding how sub-agents work and knowing how to run specialized agents in the background is a critical skill to have, whether you're vibe coding or if you're using agentic coding as an experienced developer. So after this video, you'll know exactly what sub-agents are and how to create your own specialized agents. And towards the end of the video, I'll show you my workflow for implementing complex solutions. Let's jump in. So in Claude code I'm actually going to switch over to planning mode for a second and let's ask the agent. Hey there, please can you list all the sub-agents that you have access to? Claude already has access to a few built-in sub-agents. So it's got access to a bash agent and this agent is a specialist for running bash commands like git operations, command execution and other terminal tasks. I'm just going to hide this file explorer so we can actually see what we're doing. It also has access to this general purpose agent, which is a general purpose agent for researching complex questions, searching for code and executing multi-step tasks. So it's good for searches where you're not confident or finding the right match quickly. We have access to the status line setup and that's the agent we use to create this little dashboard down here. we have access to an explore agent which actually uses haiku which is a really fast and cheap model and this is ideal for quickly going through the code base to search for code patterns or files we also have access to a planning agent which we can use during the planning phase to help our main agent investigate the code go through the user's requirements and plan a solution We also have access to this Claude Code Guide Agent. So if you do have any questions related to any of the features offered by Claude Code, you can actually just invoke this agent directly. By the way, in order to call an agent directly, what you can do is enter add then agent and now you can access any of the available agents. Like let's select the Claude Code Guide and let's just ask it, can you explain what hooks are? Let's send this. And by the way, you can also run any of these agents in the background by pressing Ctrl and B. This will simply free up the main agent so that you can continue your conversation with it while it's waiting for the background agent to complete. All right, so we get our answer back. And this is indeed explaining what hooks are in Cloud Code. we can also get the main agent to call sub agents for us so we don't have to use the add symbol to tag the agent to demonstrate this i'm just going to set up a really basic boilerplate project so in another terminal session i'm just going to call create next app at latest and period this is just going to install next js which is a really popular library for building powerful web applications right installation is done so now i'm just going to start this dev server and i'll open up this url and this border play project is indeed working all right cool so back in claude i'm just going to clear the conversation now let's have a look at using one of those built-in agents the explore agent We can get the Explorer agent to analyze our code base and give us a summary of the features and the tech stack as an example. Now, of course, we could get the main agent to do all of this work for us, but I will explain why that's a bad idea in a second. We ideally want to keep the main conversation clean and clutter free. So it's a really good idea to use sub-agents whenever possible. So let's take the example where we want to say something like, please summarize the tech stack and core features of this project. Now, yes, it might seem silly in this instance because this is just a boilerplate Next.js project, nothing fancy. But just imagine this being an existing project with a whole bunch of features and a complex tech stack. Now, for demo purposes, I'm just going to add something to the tail end of this prompt. Do not use sub-agents. Because sometimes the agent will decide to use sub-agents as it's intelligent enough to identify that there are sub-agents available. but just to demonstrate the benefits of using sub-agents let's run this as is at the moment this main agent is doing all of the work so this conversation and the tool responses and its final response is all going to contribute towards this context usage which is currently sitting at 15 now let's try that again but this time let's pass in this message and let's say please use two explore agents to assist you let's run this the agent is now saying that it's going to launch two explore agents in parallel to investigate the tech stack and we can see that we are running two explore agents in parallel we can press ctrl b to run all of that in the background if we wanted to see what the agents were up to we can actually just press down and when we press enter we can see these explore agents are currently running and if we click on any of these we can see the output of each of those background agents so i'm just going to go back this agent is now running these explorer agents in parallel so this means it can multitask it can assign a specific task to one of these agents and a different task to another one Like in this instance, the OneExplore agent is investigating the tech stack and config, while the other one is purely focused on the core features. Usually, if you were just relying on the main agent, it would have to kind of sequentially go everything and it will take way, way longer. And now we're done. At this time, we only consumed 14% of the context window. But this is actually misleading as the results that we would get from using these asynchronous agents are way better than relying on a single agent. If you're familiar with using LLMs and how agents work, the more specific the scope that the agent has, the better the results will be. And because each of these Explore agents focused on specific aspects of the application, I can guarantee you now these summaries are very very different especially on more complex projects a one percent difference might not seem like a lot but there's definitely a quality difference but towards the end of the video we'll actually cover a way more complex scenario and there you will see a night and day difference right we will have a look at the planning agent in a second but i think before we do let me show you how you can create your own agents creating your own agents is super easy Simply run the command slash agents. Here we can see all of those built-in agents and the models that they're using. Let's create our own agent. Then I'm going to create this agent at project level. You can also create it at personal level, which will create the agent in your user folder. And these agents will be available across all of your projects. For this demo, I'll just create this local agent. We can then manually configure the agent or let Claude create it. Let's just go with this first option. Now let's describe this agent. Call this agent UI. This agent is an experienced UI and UX expert with over 20 years experience. For this project, this agent will ensure that the application uses a Neo Brutalism design. This includes components with bright colors and hard shadows. as well as vibrant colors. It should also ensure that the UI is minimalist. The app should be responsive on larger screens, tablets, and mobile devices. Right, I think that's good enough. Let's send this. Claude will now write the system prompt for this agent. Now we can decide on the tools that we want to make available to this agent. I'm just going to select all of these and say continue. Now we can select a model. So Sonnet, Opus or Haikyuu. For this I'm actually going to select Opus. And by the way do you guys still use Sonnet and Haikyuu or have you all switched over to Opus as well. For the color I'm just going to select blue and we can now review the system prompt but I'm just going to press enter. And I do see that we have an error message so the name is way too short so I'll just end up renaming it after this. Let's simply press enter. now we can go to the Claude folder and here we can see our UI agent I'm just going to rename this file to UI expert and in the file itself let's just rename this guy to UI expert as well cool right let's just go back I'm going to clear the conversation and I think in order to pick up that agent we actually have to exit out of Claude code let's just go back in and now we should have access to that agent which we do we can see the ui expert down here so if we wanted to just chat to the agent directly we could simply tag it like this and ask it a question or ask it to make a change or what we can also do is simply ask the main agent to invoke the sub agent for us so i could say hey please can you kick off the ui expert to review our application and you can also get the UI expert to make any necessary changes. Do not make any code changes yourself, simply orchestrate the efforts with the UI expert. And cool, we can see the UI expert was indeed triggered. I'm actually going to press ctrl b to run the UI expert in the background. Now again this all comes down to saving the context window. Now if you're unfamiliar with context windows in Claude code or agentic coding in general it's an extremely important topic. If I open up another Claude session we can actually view the context usage by running the command slash context and if we scroll up we can see that we're currently using 27 000 tokens out of the available 200 000 tokens so that's around about 13 percent. now this number this 200 000 is really important large language models have a maximum context window size when you use up the majority of this context window or exceed it the quality of the responses will drastically decrease basically everything at the start of the conversation will be dropped off to make room for all the new messages and this means you'll lose a lot of critical context to the changes that you're trying to implement so this means as we're interacting with our agent we're using more and more of the context window and at some point round about here ClaudeCode will start to compact the conversation Now for complex features you'll really quickly reach this limit and this is typically when people start complaining about the abilities of these agents where they would say that they actually tried to gently coding or wipe coding and the results weren't really good and that's because they're trying to do everything in the main thread of the main agent this is really really not ideal. Instead, what you want to do is protect this main thread as much as possible. And the best way to do that is to try and offload a lot of work to sub-agents. For example, when we handed off the Explore task to the Explore agent, what actually happens is this agent runs in its own thread and it's got its own conversation context window. So basically all of this applies to this sub-agent as well. so at the start of this main conversation we asked the agent to use an explore agent to analyze the code base for us so what it did was it created this background agent and this background agent went through the code base so it started using up some of its tokens so maybe at some point it used about 50 000 tokens and this token usage does not affect the token usage of the main agent this section remains unchanged. In fact, I think we actually had two Explorer agents running at the same time like this. So this agent might use about 40,000 tokens. Irrespective, none of this token usage is affecting the main context window. And that is what we're after. Once these agents complete, they'll simply return a summary back to the main agent. So that summary might slightly increase this conversation a bit. but nothing compared to the impact of using this. Now of course our sample project is really simple that's why we didn't see that big of a difference but on a large code basis with lots of different features and a complicated tech stack these sub-agents can definitely use a lot of tokens and by them only returning a short summary back to this agent greatly reduces its token usage. Now I do have to be clear on this. Sub-agents are not there to reduce overall token usage. They're simply there to protect the main conversation. And if you've ever used agent decoding and you keep running into compacting issues, then you know exactly what a problem that can be. Either way, let's go back to our Claude session and let's see what the UI agent did. The UI expert has completed its review and made significant improvements to your application. How cool is that? So it's changed all the styling, it's updated the main page, the layout, and then we get this final summary. And also note, we only used about 16% of the conversation. If the main agent did all of this work itself, this number would be way higher. And if we have a look at the app, we can definitely see the change was implemented. And if we go back to our light settings, the Neo Brutalism design was definitely implemented. And the great thing is we didn't have to tell the main agent what the style of the application should be. We added all of those rules to the UI agent only. This means this UI expert agent is actually a specialized agent. It has very specific rules baked into a system prompt with regards to the design system for our application. And that really is the power of these agents. We could provide very specific instructions and behaviors to each of these sub-agents. Let's go ahead and create two more agents. And this will greatly help you with implementing changes going forward. So for the first agent, I'll also be created at Project Devil again. And we'll create it with Claude. Let's say call this agent Coder. This agent is an experienced developer with over 20 years in building robust web applications. It should write code that is performant, secure, well commented. and follows best practices. This agent should never compromise on quality and should write the best quality code possible. And something like that. Let's just send this. We'll give this agent access to all tools. Now for the model, because this is a coding agent, I would actually recommend going with Opus. But if you do want to save some tokens, you can still go with Sarnet. And because of the workflow I'm going to show you, you should still get good results from Sarnet as well. so i think for this tutorial let's actually go with sonnet but if you can afford it go with opus trust me then for the color let's make this orange and i think that's it let's create one more agent i'll create this in the personal space and we'll use cloth to create it then let's say please call this agent code reviewer this agent is an experienced developer with over 20 years experience but it's really good at reviewing code So this agent is responsible for checking the completeness of the code against the requirements. It needs to ensure that the code is secure and performant and that it follows best practices. This reviewer should ensure that files do not get too long and the code should be split up and be modular instead. And the code has detailed and suitable comments. Code should also be easy to maintain. If your project or company has very strict rules around like coding practices and naming conventions. You can add all of that to your coding agent and this Code Review agent as well. We'll give this agent access to all of these tools. And for the model, I'm actually going to select Haiku. Now, again, if you can afford it, definitely go for Sonus or even Opus. But I found that with Code Reviews, Haiku actually does a really good job at identifying any glaring issues. So let's go with green. And that should be it. and now that we have our agents i'm just going to exit out of code code we should now have access to all of those agents so we have access to coder to the ui expert and code reviewer okay cool so let's have a look at a practical workflow that you can use to fully utilize sub-agents now the first thing before implementing any change is to go into planning mode this is where we can get the agent to really think about the feature that we're trying to implement and to look at the code base and to come up with a solid plan now again we don't want to use the main agent to do everything itself it's really quickly going to fall up this context window so instead what we could do is say please use three planning agents to help you come up with an implementation plan for the following And as a reminder, if we go to our agents, we have access to this planning agent that inherits the same model used by the main agent. In our case, that's Opus 4.5, a really intelligent model, which is perfect for planning out these complex solutions. So this is going to run three planning agents in parallel, each of them investigating different aspects of the application. Now, I am going to pass in quite a complex prompt, so I'm just going to paste it. but if you were curious what i'll do is i'll create a new file so if you want you can pause the video and have a look at this prompt i'll also upload it to my community which i'll link to in the description of this video This is a really cool to-do list app. It uses a Kanban board to track the progress of the to-dos. Signing in is also optional. So if users are not signed in, all the to-dos will be managed in local storage. But if users do sign in and we will use the better auth library for authentication, users can sync their to-dos to the cloud. So this involves a lot of work. It uses the better auth library. The agent will have to set up a Postgres database it will have to use drizzle.org so there's a lot going on here and this is really not something you'll be able to do with a single conversation you'll definitely hit that context window really quickly so let's go ahead and plan this application it's saying it's going to launch three explore agents in parallel which is not what i want so i'm just going to say i need you to use three plan agents instead not explore agents So maybe because I said planning agents, it decided to use the explore agents, but the planning agent uses Opus as well. So that's really what I want. Now it's saying it's going to launch three plan agents and that's perfect. So we have our three planning agents running in the background, each of them focusing on a very specific task. And you can also see the amount of tokens being consumed by each of these sub agents. This one is already sitting at 20,000 tokens. This is about 20 as well. And as these numbers are growing, you'll notice that our main thread is staying clean. We're still only sitting at 14% or 28,000 tokens. Right, so the sub-agents are done and we can see that they used a combined total of about 80,000 tokens. And if we have a look at our main thread, it didn't increase nearly as much. And by the way, if you try to generate this plan using that same prompt without all of this, the token usage on the main thread is usually around 60%. And at the moment, we're only sitting at about 26%. Right, so if we want, we can have a look at the plan and request any changes. But I'm actually going to accept this plan. But instead of telling the agent to just simply start writing code, I do want to store this plan somewhere. So what I like to do is in the root of the project, I'm just going to create a new folder and call it spec over here. Then back in Cloud Code, I'm going to switch over to change mode and it's saying I'm happy with the plan, but please can we create a detailed implementation plan based on all of this. This implementation plan should be split up into phases and actionable tasks. it's really important that you include all of the technical detail as well we will be handing this plan over to a team of developers so everything all the technical details all the decisions need to be clearly documented in the implementation plan i created a folder called spec in the root of this project create a subfolder within that spec folder and create your implementation plan in that folder and let's run this Now at this point you might be wondering why I'm not using BMAT or SpecKit or even my own boilerplate commands for this and that's simply because this is a Cloud Code tutorial and I do want to show you how much you can actually accomplish with the NILA Cloud Code. So for interest, the agent decided to create separate files for each of the phases. So for you, if you are following along, everything might be added to a single file. But I think if the file is too large, it will decide to just kind of split them up into different files. And we are expected to receive about 13 or 14 files, which could take a bit of time. So one thing we can actually do is maybe just stop this conversation and let's say I don't want you writing one file at a time. Please can you kick off multiple general purpose agents to run in the background and in parallel to write the remaining files. Let's send this. So the agent realized that there's about seven files remaining. So it's saying I'm going to launch multiple agents in parallel. Let's kick off seven agents to handle the remaining documents. And look at that. We now have seven agents running in the background and in parallel writing these files. So this can be really helpful for taking tasks that actually have no dependency on each other and letting agents implement those in parallel. And as a reminder, you can see all of those agents by simply pressing the down arrow key where it says that we currently have seven background tasks. We can press enter and now we can see all of those agents. and if we click into any of these we can see exactly what those agents are currently busy with i'll press the left arrow to go back to this screen then escape to go back to our agent now we'll simply wait for these background tasks to complete man i'm not even exaggerating that was way way faster it's always a good idea that if the agent is doing something that you know can be done in parallel Just get it to use sub-agents. Great. So we've now created an implementation plan for this change. Now, I'm not too worried about the overview file, but what we can see is we have these different files that contain phases. And for each phase, we have all the technical details and steps that need to be executed in order to implement this phase. So what I'm going to do next is actually clear this conversation. So what I'm going to do now is actually pull in this implementation plan file or folder at least. And now we can use our sub agents in a really interesting way. Watch this. I need you to implement this feature. Now, this is really important. I don't want you to write any code yourself. Your role is to coordinate the efforts between coding agents and code review agents. Have a look at this. implementation plan and I want you to create different tracks so have a look at any phases or tasks that can be implemented in parallel so find any phases or tasks that do not have a dependency on each other and then create different tracks then for each track kick off a coding agent to implement the changes for that track you need to use the coder agent for this Once the coding agent completes its work, you need to hand over the solution to the Code Review agent and then let the Code Review agent provide feedback back to the Coder agent. This cycle should continue until all changes have been fully implemented. Then by the very end of this process, after all agents have completed their work, I need you to kick off three Code Review agents to review the final state of our application from different perspectives. And that's really it. Let's send this. Now, this is really something that you just wouldn't be able to do with a single thread. If we ask this main agent to implement all of this, it would realistically maybe get up to phase eight or nine, and it would then have to compact the conversation. And that's just going to drop off a lot of important context at that point. Nice. So the main agent has now identified the different tracks, or it decided to call those waves, which is perfectly fine as well. but understandably for the first wave it needs to set up the project first everything else depends on this phase and if we scroll up we can actually see a better summary of how the phases and the waves actually work and if everything goes well this entire project will be implemented using background agents without the need to compact our main conversation at all right so actually if i have a look at these waves it's actually more optimized than i thought so each track is running in parallel so at the moment it's actually using three coding agents one to build the kanban board the second for calendar and the third one for filtering and you can see down here that we are using three background tasks and these tracks are running in parallel so for each of those tracks we'll have a coding agent implementing the changes followed by a code review agent to make sure that the code is complete and actually at a high quality and as you might notice i'm actually running code code in a terminal at the moment and that is because the terminal in the ide tends to crash from time to time and i'm not sure if it's just me but i just find running it in a separate terminal window is way more reliable and to really quickly open up a terminal window you can click anywhere in your ide and press ctrl shift and c and that will open up a terminal window that's already focused on your current working directory. And cool, so this entire project was implemented and we're only using about 58% of the context window. And I mean, you know, for something of this size, you really wouldn't be able to do this in a single thread, not even close. So we get the summary of all the waves and phases that were implemented. And because we asked this process to kick off review agents, we do get this final code review as well. So we can see we have a few security issues that need to be resolved, some accessibility issues, etc. And keep in mind, we didn't test the app at all. So if you wanted to, you could actually implement a testing sub-agent as well that's got access to unit tests, or maybe you can use an MCP server like the Playwright MCP server to actually test the application. But because we didn't do any testing, there will definitely be a bit of junk in this application. So let's start off by actually fixing these critical issues. Now, I'm not going to ask this main agent to do these changes. Let's say, let's address these critical issues. Please kick off Coder sub-agents to fix these issues in parallel. Do not change the code yourself. In fact, you can resolve these other points as well. Let's send this. and our main agent will now kick off multiple coder agents to resolve these outstanding issues all right cool so it's actually resolved all of these different issues and it's telling us to start the database server using this command then we have to push any database migrations using this command and then use this to run the dev server so i'll actually go ahead and do that so we'll run docker compose up let's push these changes to the database and we do get this error so i'm just going to ask claw to resolve this issue please use a coder agent to resolve this issue and as you'll notice we only get this message now saying that we will auto compact in about 13 this is phenomenal we're pretty much done with the entire project and this is just like working on small bug fixes but the fact that we're so far into the build is just amazing oh so this time npm db push worked so let's try to run the dev server and that looks promising let's try to sign up then from here i'll enter my name it's to test at demo.com you also get this password string thing that i actually really like and let's try to create this account hey and that actually worked so let's try to create a new to-do let's call this one by bread with a description of by bread a priority of medium let's select a category like other and for the due date let's set it to tomorrow then let's add this task and our task is indeed there what happens if we refresh the data is persisted and can we drag and drop these yes we can that all works as well awesome let's have a look at the calendar view we did get this issues warning down here but in general this does seem to be working We can view our by-bread task over there and we can change between day, week and monthly views. This might seem like a really simple example at face value, but keep in mind this app is complete with user authentication as well as an actual Postgres database. And if you have a look at our session, we're only using 68% of the context window with a fully functional application. I hope you found this video informative. If you did, please hit the like button. subscribe to my channel for more Cloud Code content. I'll see you in the next one. Bye-bye.

⚙️ Pipeline jobs

StageStatusAtt.UpdatedError
download done 2/3 2026-07-20 11:51:40
transcribe done 1/3 2026-07-20 11:52:03
summarize done 1/3 2026-07-20 11:52:25
embed done 1/3 2026-07-20 11:52:26

📄 Описание YouTube

Показать
🚀 Access ALL video resources & get personalized help in my community:
https://www.skool.com/agentic-labs/about?ref=3fd61190e13d426dbf4f3b38adc7de69

💬 My AI voice-to-text software (Wispr Flow): https://wisprflow.ai/r?WALTER67
☕ Buy me a coffee: https://www.buymeacoffee.com/leonvanzyl
💵 Donate using PayPal: https://www.paypal.com/ncp/payment/EKRQ8QSGV6CWW

Learn how to use Claude Code subagents and background agents to build complex applications without running out of context window. This tutorial covers the built-in agents like the Explorer, Planning, and Bash agents, and shows you how to create custom specialized agents for coding, UI design, and code review. You'll discover a powerful wave-based workflow that uses parallel subagents to implement features faster while keeping your main conversation clean.

⏰ TIMESTAMPS:
00:00 Claude Code subagents introduction
00:33 Listing built in agents
01:57 Invoking agents directly with @ symbol
02:15 Running agents in background with Ctrl B
03:12 Using Explorer agent for codebase analysis
04:38 Subagents vs main agent context usage
06:06 Benefits of parallel subagents
06:42 Creating custom agents with slash agents
08:06 Selecting agent model Opus Sonnet Haiku
09:54 Context window explained
11:02 Auto compacting and context limits
13:33 Custom UI expert agent results
14:36 Creating coder and code reviewer agents
17:06 Practical subagent workflow overview
17:23 Using planning agents in parallel
20:30 Creating implementation plan with phases
22:48 Parallel agents for documentation
23:39 Wave based implementation strategy
25:28 Orchestrating coder and reviewer agents
27:17 Final code review with multiple agents
28:36 Testing the completed todo app
30:43 Full application with authentication

#claudecode #agenticcoding #vibecoding