“TMUX + Claude Agent Teams = Game Changer”의 전체 스크립트입니다. 타임스탬프를 클릭하면 해당 장면부터 영상이 열려요. 다른 영상이 필요하다면 유튜브 스크립트 추출기를 이용하세요.
0:00 In this video, we're going to take a look at Claw's latest feature, agent teams. And first of all, we're going to take a look at what is agent teams and what is the difference between sub agents and the agent teams. What problem does agent teams try to solve? And then we're going to dive into how to set this up on your local machine. How we can be able to use T-Max here to basically view all the agent teams members here inside of one terminal sessions inside of cloud code. And that's we're also going to take a look at how to start a projects, how to manage it, how do we interact with each agents, how do we communicate it, and be able to eventually complete a project. And lastly, we're going to take a look at how to convert this into a claw scale so that we can be able to reuse it in the future. So, pretty much that's what we're gonna cover in this video. And if you're interested, let's get into it. All right, so before we jump in, a quick intro for those who are new here. My name is Eric and I spent years as a senior software engineer at
0:45 companies like Amazon, AWS, and Microsoft. And I have started this channel to share everything that I learned along the way from AI and coding to automations, web 3, career developments, and more. all broken down into practical tutorials that you can actually follow. And of course, we also have a school community where you can get access to all the resource templates plus our community supports. So, if you're ready to level up, make sure to check out my YouTube channel and hit that subscribe button. Now, let's get back to the video. All right, so to get started, first thing first, I want to talk about the difference between agent teams, sub agents, and default mode. And what problem does agent teams trying to solve? So, now let's take this as example, right? Let's say you're developer here. You're trying to write the UI component for the upload, the server side for the edge functions, building the matching algorithm, and
1:30 writing a test, right? That's basically your task. And what happened here is that you're using a default mode, one agent only has one contact window. So if you're going to complete this task with one agent, you will basically complete this task sequentially, which means that you first write the upload UI component, write the superface edge functions to handle this, building the matching matching algorithms, and writing the test sequentially one after the other. Now this approach might be slow but the other problem that is very severe is that the higher the context the lower the accuracy which means that as the task getting more complex and the context windows start to fill up the accuracy start to get lower and that's really what the sub agent really try to solve is that we're trying to reduce the complexity for each agents by having multiple sub aents here running at the same time. So given the same task for example writing the UI the edge functions and building the uh matching
2:17 algorithms and writing the tests right we can literally divide those work into multiple sub agents where one agents focus on the UI the other one is focusing on the back end the other one is focusing on the matching algorithm and pretty much we can have the main context window here as become a orchestrator that divide the task into multiple sub aents therefore we have less context window for each sub aents right here but the problem here is that there's no communication between different sub aents for example let's say if you have the sub agent number one building the UI for the uploader and it has defined the data types for that and let's say we have our sub agent number two here building the edge functions and it has also defined the data types for that as well but because there's no communication between the sub agents they have no idea if the types that it defines in the front end is aligned with the back end and what happened then is that after the task is completed they
3:02 run the applications they realize that the types checks are different then it got an error right because there's no communication on what the sub aent one does that sub agent two have to know about. So that's what the core issue that the agent team here is trying to solve where now you can see that we have our agent team and the team leader here will basically spin up multiple sub aents and what's going to happen here is that for each sub agents it can be able to communicate to each other for example after the backend sub agents here completes the job it will basically sense the data types that it creates to the front end sub aents and the front end sub aent here will take that types that the backend creates and be able to define the types in the front end as well so that there's no miscommunication and no misalignment between different sub aents work and clearly you can see that this is the benefits of Asian teams is that we have a shared communications between all the sub aents that we have. And to summarize everything, basically the default agent here has only one
3:48 context window. Sub agents here have isolated contacts but cannot talk to each other. And the agent teams on the other hand can be able to enable like full parallel collaborations between multiple agents and multiple agents here can directly communicate to each agents right here. So pretty much that's the difference between those three modes inside of cloud code. All right, so now you know the difference. Let's take a look at how we can be able to set this up on our local machine. But first thing first, we're going to do here is to make sure that we have the latest version in our cloud code in our local machine. So what we're going to do here is I'm just going to jump back to my terminal. Doesn't matter if you're in a project or in a brand new terminal in the root directory. All you have to do here just do claude update and this will basically update the current version to the latest version that we have in our claw code. So it's going to check for updates with the latest version. And here you can see that it will basically update my claw code with the latest version which you
4:33 can see that we have that updated already. So next thing we're going to do here is basically try to set up the configurations and the T-Max and T-Max basically trying to do here is basically a way for you to create multiple terminal windows here inside of your terminal so that you can be able to have communications with different agents individually with its own terminal windows. Now so in this case to install this what we're going to do here is just going to do brew install and we're just going to do type in T-Max and we're just going to hit enter and it'll basically install this using homebrew. Okay. So now you can see that we have this successfully installed and after we have this installed here you can see this is where we can have our display mode which the Asian teams here supports two display modes. One is in progress where are we going to have one terminal sessions using shift and up down or key to basically select which teammates we wanted to communicate with or the other way we can do is to have a split panels and basically what's going to happen is
5:19 you can see everyone's output at once by clicking on the section to interact with it using T-Max. Okay, that's why we're trying to use T-Max here inside of claw code. All right. So now to basically enable the tmax here inside of claw code. All we have to do here just run this command in the root directory. So now I'm just going to open a terminal right here and basically paste that command. And what's going to happen here is basically going to enable the claw code agent teams mode to be true and also the T-Max split panels here to be true as well. So here I'm just going to enter this. And we basically have those settings set in place. All right. So now what we can do here is basically start our T-Max new sessions with claude. So what we can do is we're just going to run this command right here. And I'll make sure to put this inside of our school community. So you can get access to this entire guide inside of our video resource. So all we have to do here is I'm going to first cd into my desktop and cd into my bookkeeping applications.
6:07 And then what's going to happen I'm just going to paste that command right here for t-max new sessions. So currently I'm inside of the project I'm trying to build. And simply I'm just going to run this command right here. And you can see that this is what we have. Okay. So we're inside of T-Max mode. And now we're going to do here is basically try to run claw with the dangerously skip permissions. And I'm just going to have a clock sessions inside of the T-max mode. All right. So, first thing first, here you can see that it's prompted saying that yes, running in the bypass permission mode. I'm just going to say yes, accept. And here you can see that we have our clock sessions inside of this current project directory. All right. So now once we have the setups done and also the overview. Now let's take a look at how we can use it. How we can be able to use the Asian teams inside of our projects to basically start it up, be able to manage it, be able to shut it down, be able to build our projects using Asian teams. So in
6:53 this case, I'm just going to come back to my terminal here. And what I'm going to do here is I'm just going to copy this prompt and paste it into cloud code. And here is what this prompt says. So basically the goal is we want to research the direct bank connections either through these providers right here. And that will can be able to automatically import transactions into our applications. And that's the goal. And basically what we want to do here is that this is the keyword is to create a a team. And basically if you were to look at the documentation on how to trigger the Asian teams all we had to do here just specify the create a agent teams to explore to build something to research something right that will basically trigger the agent team here to run it automatically in your cloud code no slash commands just the keyword on create a agent teams or create a team. So here you can see I just say I create a team called this for parallel agents and after they complete the jobs we'll
7:39 basically aggregate the findings into this MD file right here and I also have give a reference to Jira ticket so they can trigger the Jira MCP server to pull the context about what the ticket is about and here you can see that we have our different agents we have our business agents we have our financial agents technical architectures and devil advocates let's go through them one by one so here you can see that we have our agent one here so what I have here for the format is that I have a name I have the model and I also have these sub agent types. Now, of course, I've also made a video here on top about how you can be able to create your own sub agents for different situations in your application building. Now, of course, if you want to learn more about sub aents, you can check out this video right here where you can learn more about how sub agent works, how you can create your sub agents and basically what you can do with your sub agents, right? So, what I did here is I specified the sub agents that's going to be working on this task, right, for this agents, focusing on the
8:25 business and products. And the goal here is that it's going to use the web search here to gather the competitor and the market data and it's going to analyze it, right? try to analyze the competitors, try to see what are the market fit look like, the user experience, the impact analysis and try to aggregate those results and that's what the agent one is trying to do. And we also have our agent two here which focusing on the financial cost. So which provider we're going to use and what is the cost for that and we're going to have a cost projection here table to show that and that's basically agent two for the financial and cost. And then the agent three here is the technical architecture and notice here that I also changed the model here to be opus because the work that agent 3 completes here is going to be very complex. So that's why I assigned the system architect sub agent here for the opus model with the technical architecture. We're going to architecture this project
9:10 by using the abstraction layer. Basically means that it doesn't matter which provider we're going to use, right? We're just going to create extraction similar to a repository pattern where the application here is going to call that repository or call that extraction layer for the service. Let's say in the future we're going to switch from plane to flinkx simply just changing that service in the config or simply just changing that in the repository and it will basically affect that from all the applications that will basically use that providers right so we're creating abstraction layer to abstract the dependencies for for different providers we're going to use and that's why we have it here okay and here you can see that I also mentioned we're going to use a mermaid diagram here for the architecture overview and these are the skills we're going to trigger and these are the sub agents that we're going to have right so you can see that we have our agent three now agent one and three here you can see that they are all standalone agents which means that they don't have to
9:55 communicate to each other because you know they're all working on their own task but for agent four here I specifically mentioned that you can be able to communicate to each agents here directly and basically this agent here is a general purpose agent is basically act as a devil advocate it's going to challenge stress test any findings from agents one to three for any task that is trying to do so that's basically the four agents that I'm going to spin up and this is the entire prompt and lastly we also have our lead which is basically our tech that spin up those four sub agents here to do the work and at the end of it it's going to aggregate the data and be able to conclude everything like the followings. So basically that's my prompt and what I'm going to do here is I'm going to copy this come back to my terminal and I'm just going to paste it right here. All right so then in this case I'm just going to run this and let's take a look at what it does. All right so now you can see it's going to set up the research team here first take
10:41 a look at the Jerro ticket by calling the JR MCB server. All right. So once we have the full context from both Jira and the existing backlog, now it's going to create the team and spin up four research agents. So here you can see it's going to create the four agent teams. Basically try to set up the tiles tracking spin up all four research agents here in parallel. All right. So now you can see that we have two sub aents here spin up. One is the business products. The other one is the financial cost. And we can literally just type in anything here inside of those sub agents here to communicate. And here you can see that's going to spin up another sub agent here called the technical architect which is going to do the work and I can be able to type in anything here right to communicate with the different sub agents. And lastly we also have our devil advocate here got spin up which will basically question everything that the agent here is trying to do. Now if I want to switch to between here you simply just use the keyboard here to do
11:28 the controlB right so you can see control B I can switch over to the main chatbot here I can do tab here is what I have so check on the devil applicator uh progress right and if I want to switch over to like specific agent for example I want to switch over to the architecture I just do controlB uh you can see that the bottom here changed to architecture design so now if I were to type you can see that I have switched over to architecture I can also switch over to the green side which you can see here so the hidden bank interaction cost, right? By using the controlB up arrow and down arrow. Simply just looking at this, it'll switch it over. And I can also shift it over to the open bank research questions. I can also be able to say things like, "Hey, how how's it going? How's it going?" You know, I can be able to um interact with this agent. But clearly, if you just want to follow through instead of here in the
12:13 terminal, I can just control B uh left and it'll basically navigate me here to the root, which here you can see I can be able to talk to the main agent here, the orchestrator, which will basically orchestrate the entire thing. Okay. So, in this case, I'm just going to wait for a bit until everything uh synthesizing for the final research report. All right. So, now you can see eventually we have the entire research has complete. And if you want to scroll up and down, simply you just do CtrlB and using the square bracket, the the the left square bracket, it'll basically help you to scroll up and down. Here you can see I was able to scroll up and down here to figure out okay, what has been done, right? So, we have the output files, the agent one, the agent two, the results, right? And we also have the research and here we also have the entire research summary and all the files have been edited right which we can see here. Okay. So pretty much that's how we can
12:59 be able to use the Asian team here to start it to manage it to complete it. Okay. All right. So in this case let's take a look at what the result look like by simply navigating to VS code and I'm just going to open this in preview here and here you can see that this is our final report. So first thing first you can see that we have our table content. So we have our go or no go recommendations. So should we implement this feature or not implement this feature right and we also have the provider recommendations for using this feature what is the cost breakdown the architecture if we're going to build this the risk and also the implementation phases and the appendix and such. So here you can see this the final reports. So we have okay what are the reason why we should go with this because all the competitors are using this because this will save time for the consumers and then there's also the list of against so why we should not use this
13:45 feature. For example, only 53% of the consumers comfortable sharing their financial data. It can also be a barrier of entry for small platform like this, right? Uh there's also the connection reliabilities and here is the provider recommendation. Alberta has done the research. So if we're going to only focus on Canada, then that's going to be Flinkx. If we're going to use uh the US expansions, we might want to choose a different providers. So pretty much this is the breakdown and here is the cost. Uh here's the pricing. So stuff like this. Okay. So this is the provider strategy. So for the a,000 user maybe we're going to focus on the Canadian first and for,000 to 2,000 we're going to expand to US market. This what we have here scale. So stuff like this. Okay. And why not use other providers? It gives you the reason. And here's the cost summary. So per provider cost at
14:30 scale. So let's say if user only has two bank accounts, right? Roughly for 100 users, this is how much it will be charged. And because there is different tiers for playing where oh if you have more users, you're each user here is going to pay less. So that's basically what you get here. Okay. And of course there's also the flinks here. So let's say if we only want to focus on flanks, this is how much it costs. Okay, so pretty much that's the comparison and the architecture recommendation. Here you can see this is all the things that it creates for the abstraction layer and also here's you can see the database schema, right? The jobs, the connected accounts ID, the uh expanded column here for the bank transactions, right? So stuff like this and there's also the bank connection providers here. So it has to scan through the documentations and try to create something like this that we're going to use inside of our
15:17 application like disconnects, get the account details, sync the connections or refresh the authorizations here, stuff like that. Okay, so pretty much that's pretty much the entire research. Uh overall, I won't go too much in detail here. There's also individual file, but pretty much that's how we can be able to use the agent teams to spin up multiple sub agents here to run it, to manage it, and be able to finish it. All right. So lastly, what I want to talk about is basically how you can convert everything here into a clause skill because writing this could be challenging, right? You tell what to do, what to research and you have to write a long prompt just like what you see here. And so instead of like creating a claw skills from scratch by simply just prompting it, what I recommend to do is that after you finish the entire run, which here you can see this is the entire run. And all I had to do here just basically prompted the claw here after I finish a session. And I'm just simply going to say based
16:03 on this conversation that we have, can you create a skill that I can be able to reuse it in the future? And simply all I had to do here just pass a parameter on exactly what's the research topic or what's the JR ticket? And simply you can be able to run it and be able to find the context or be able to give the research idea here like what we just set up today with four sub agents. Can you create a skill? And that's basically my prompt. And I'm just going to run this and have it to basically create a skill based on this current conversation that we just went through. All right. So now you can see that after it has created a skill, this is basically how we can use it. We simply just do /ress research team and we paste basically puts the ticket number, right, for the jer ticket or we can also be able to uh specify that in the the free text mode. Uh there's also the custom output directories. So stuff like this, right?
16:49 We can be able to use that literally I can be able to use a test topic here and do that. Okay, so pretty much that's how we can be able to reuse it by simply just building a skill and be able to spend up those four sub agents that we just mentioned. And if you actually want to learn more about the skill, you can click on the skill, click on the research team that you just created. And clearly you can see that we have the four uh agents here, right? So phase one is going to be research spin up three sub agents with fresh context. And we also have the challenge here which is the advocates uh basically try to read through all the research file and challenge the assumptions. And then the phase three here is reading through all four files, write a final report. So pretty much that's how it work. We put everything into a scale so that we can easily just reuse that going forward. All right. So pretty much that's it for this video. In this video we went over what is agent teams, how is it different compared to like sub agents and the
17:34 default mode and what is the problem that agent team is trying to solve as well as how we can be able to set up the agent teams here using T-Max and also how we can be able to start a session manage the session and also shut down the session as well. And eventually we can be able to create a clause skill here to reuse this going forward without us have to repetitively uh communicate to each individual sub agents here to do so. So pretty much that's it for this video and if you do feel like this video, please make sure to like this video, consider subscribe for more content like this and I'll make sure to put the entire guide on how to do this inside of the school community so you can be able to copy this and run on your local machine step by step. So with that being said, thank you very much for watching and I'll see you in the next video.