SEE CMUX SOLVE Multi-Agent Orchestration (Claude Code and Pi Agent) — Transcript
Full transcript
- 0:00As engineers, there's just one idea you
- 0:03and I need to win in the age of agents.
- 0:07Scale your compute to scale your impact.
- 0:10The goal is clear, but the path is less
- 0:12clear. The big open question the best
- 0:15engineers are asking is how exactly
- 0:17should you orchestrate your agents for
- 0:20maximum impact? And there's no shortage
- 0:23of options. Boris and Peter are saying
- 0:25loop engineering is the future and
- 0:27prompt engineering is already dead. I
- 0:29completely disagree with this. There's
- 0:31the Ralph style to-do list to keep your
- 0:34agents focus on a massive list of work.
- 0:37Fable is going to love Ralph. Then
- 0:39there's classical sub-agent delegation
- 0:41and many, many more patterns. I've been
- 0:43engineering for over 15 years and
- 0:46building with agents since it was first
- 0:48possible and we have to call out the
- 0:50fact that these AI labs have massive
- 0:53incentives to keep you and I spending
- 0:56tokens, token maxing. When the truth is,
- 0:58there's a dozen different agentic
- 1:00patterns you can use to ship with
- 1:02agents. One of my favorite patterns is
- 1:05three-tier agent orchestration.
- 1:08Orchestrators prompt the leads, leads
- 1:10prompt the specialized agent experts.
- 1:13But every multi-agent approach has
- 1:16similar problems. The big three being
- 1:18how do you start, interact, and improve
- 1:21your growing fleet of agents? If you're
- 1:24live coding or token maxing, this
- 1:26doesn't matter at all. You can spin up
- 1:2820 agents in a loop and look the other
- 1:30way. On this channel, we don't live
- 1:32code, we agentic engineer because an
- 1:34[music] agent you can't monitor is an
- 1:36agent you can't improve. I have three
- 1:40multi-agent orchestration problems I'm
- 1:42going to solve and I'm looking [music]
- 1:44at tmux as a potential solution to this
- 1:47problem. As we work through the feature
- 1:49set of tmux, I want to share with you
- 1:51how I'm continuing to learn new tools
- 1:54and technology with [music] agents. If
- 1:56these ideas interest you, smash the like
- 1:58button, lock in, and let's improve our
- 2:01agent [music] orchestration.
- 2:08Whenever I sit down to learn a new tool
- 2:10or technology, I have a state-of-the-art
- 2:12agent build out a comprehensive HTML
- 2:16file that I can use to visually
- 2:19understand, study, and master new tools.
- 2:22So, that's how we're going to learn C
- 2:23mux right now. Let's start with the
- 2:26problem. What problems are we going to
- 2:28solve? I don't start with tools,
- 2:30problems come first, tools come second.
- 2:32I know I'm late to the C mux game, but I
- 2:34don't really care. Outside of
- 2:36experimentation, if I don't need a tool,
- 2:38I don't pick it up until I have a
- 2:39problem first. I have three problems
- 2:42surrounding multi-agent orchestration
- 2:44that you likely have too. Let's see if C
- 2:46mux can solve three popular multi-agent
- 2:49orchestration problems. So, first off,
- 2:51no programmatic access to your agents.
- 2:54This is a massive problem because it
- 2:55means you're the bottleneck, and it
- 2:58keeps you in the loop all the time,
- 3:00meaning your agents can never move at
- 3:02the agentic speed. The big question is,
- 3:05can C mux solve this? The answer is, of
- 3:07course, yes. The core value proposition
- 3:09of tools like C mux and the
- 3:11tried-and-true T mux is this exactly.
- 3:14They give you agentic access to every
- 3:16single terminal. An agent you can't see
- 3:19is an agent you can't improve. This is
- 3:21going to be increasingly controversial.
- 3:22A lot of engineers are turning off their
- 3:24brains, and they're not studying what
- 3:26their agents are doing. They're spinning
- 3:27up fleets, and they're ignoring the
- 3:29journey, all the mistakes, all the
- 3:31successes, all the things that they
- 3:32would want to emphasize, reproduce, and
- 3:35cut out of the workflow is completely
- 3:36ignored. This is one of the key
- 3:38differences between vibe coding and
- 3:40agentic engineering. An agent you can't
- 3:43see is an agent you can't improve. I
- 3:46need to be able to see every one of my
- 3:48agents. Okay, it doesn't matter if it's
- 3:50Claude code, Pi, open code, Codex, I
- 3:52need to be able to see it, monitor it,
- 3:54and understand when things are going
- 3:55right so I can re-emphasize that
- 3:57behavior in the agent via the core four,
- 3:59or I need to know when things are going
- 4:01wrong so I can present negative rewards.
- 4:03Okay, so can Cmux solve that problem for
- 4:05us? Yes, it can. We have per workspace
- 4:08color, role, icons, identity, we have
- 4:11tabs, we have banners, we have
- 4:13everything we need to quickly jump into
- 4:15an agent and see it. Quick teaser here,
- 4:17I have Cmux ready to go and you can see
- 4:19here we have a great breakdown to kind
- 4:21of fundamental pieces of a tool where we
- 4:24can quickly see, observe, and therefore
- 4:26improve everything, right? We have a
- 4:28Cloud Code agent, we have a CodeX agent,
- 4:29we have two Pi agents running the
- 4:31Minimax M3 and the JLM 5.2. We'll get
- 4:34back to this in a second. Let's fully
- 4:35understand every single problem. And
- 4:37this is a big one. It's been
- 4:38increasingly becoming a problem as I
- 4:40deploy more and more agents and set up
- 4:42new teams to do specific sets of work
- 4:44extraordinarily well. If you're building
- 4:46custom agents, you're running into this
- 4:47problem, too. If you're deploying five,
- 4:4910, 20 plus agents, you have also seen
- 4:51this problem. Booting an agent team by
- 4:54hand kills the agentic speed. It just
- 4:56takes too much time. So, can Cmux solve
- 4:58this? Of course, yes, it can. It has
- 5:00reusable session files, but more
- 5:02importantly, this tool has agentic
- 5:04access. If a tool has agentic access,
- 5:08that means you can move at the agentic
- 5:10speed and solve problems in natural
- 5:12language with well-constructed prompts.
- 5:15Okay? So, these are the problems we're
- 5:16going to solve. Cmux has solutions to
- 5:19all of them. I think the question is, do
- 5:21you have to use Cmux, or is something
- 5:23like tmux going to get you all the way
- 5:25there as well? So, let's dial back into
- 5:27Cmux and understand what this tool can
- 5:29do and see if it can help us solve these
- 5:31three key problems: agentic access,
- 5:33monitor to improve, and quick agentic
- 5:35launch for your thousandth agent run,
- 5:38not your first, not your 10th, not your
- 5:40100th.
- 5:44So, what is our agent teaching us about
- 5:46Cmux? Let's understand the mental model
- 5:49that really builds the foundation of
- 5:51understanding Cmux and other terminal
- 5:52multiplexes as well. You have the
- 5:54window, which is going to be this entire
- 5:56window here. With control shift N, we
- 5:58can boot up a brand new window. Then we
- 6:00have our workspace. Workspaces, you
- 6:02know, we can boot up with command N. And
- 6:03this is going to give us a new workspace
- 6:06to set up teams of agents, to set up
- 6:08groups of terminals, to do whatever you
- 6:09need to do. Then we have panes. The pane
- 6:12is going to be the actual window. We
- 6:13have a pane here. a pane here. We have
- 6:16one here, here, and here. It's important
- 6:18to mention, if we do command T, this
- 6:21opens a new surface inside of this
- 6:23existing pane. So, we have individual
- 6:26windows. You can separate and group your
- 6:28agent teams, your terminals. You can
- 6:30have production, you can have staging,
- 6:32you can have dev, we can have
- 6:34workspaces. So, for me, I'm going to put
- 6:36my agent teams on the workspace level.
- 6:38And then inside of the workspace, you
- 6:39have your individual pane. So, we have a
- 6:42pane here. In my multi-agent
- 6:43orchestration workflow, I'm going to put
- 6:45my lead here. And then the workers go
- 6:47over on the right. So, I can look at the
- 6:49level that I need to to get the job
- 6:50done, while not losing the depth of
- 6:53visibility into the low-level worker
- 6:56agents. This is super key, right?
- 6:57Prompting in a black box in sub-agents
- 7:00is a great place to start, terrible
- 7:01place to finish, right? We can do a lot
- 7:03better than that with the right agentic
- 7:05tools. That's why we're trying Cmux to
- 7:08see if we can really improve our
- 7:09multi-agent orchestration abilities.
- 7:11Okay, so that's the mental model of
- 7:12Cmux. And so, how do we control it?
- 7:19Uh it's pretty simple. Thanks to the
- 7:20programmatic access, we do four things.
- 7:23We can send information like send key.
- 7:24We can then read the screen after the
- 7:26action has been completed, and then we
- 7:28can open and close surfaces, and the
- 7:30loop repeats. Okay, so this is how you
- 7:32control it. We're going to walk through
- 7:34concrete examples of how you can use
- 7:36Cmux in just a moment here. But here's
- 7:37an example of the API, right? Send,
- 7:40read, close surface. You specify the
- 7:43surface and the exact text you want to
- 7:45send in. Another powerful part about
- 7:46Cmux, we can build an orchestration
- 7:49agent around pushing and pulling
- 7:51specific events from the Cmux life cycle
- 7:55and therefore our agent's life cycle.
- 7:57Okay, so there's a lot of
- 7:57customizability here. When I sit down to
- 7:59learn a tool, I use agents the entire
- 8:02time. Learning is the killer use case
- 8:04for agents. Coding comes next. In these
- 8:06HTML rich guides, I want an incremental
- 8:10tier-based explanation of how I can best
- 8:12use these tools to solve my specific use
- 8:14case. And that's exactly what my agent
- 8:16has done here. A lot of really smart
- 8:17engineers are turning their brains off.
- 8:19I want to push back against that. We
- 8:21want to rise with the ceiling of agentic
- 8:23engineering, not the floor of live
- 8:25coding. Okay? So, um let's run this,
- 8:28right? Let's understand Cmux at a deeper
- 8:29level. You see here, this tool can get
- 8:31very, very complex. It can help you
- 8:32orchestrate and do a lot of work. They
- 8:34even have like a mobile app here. You
- 8:36can access browsers. There's a lot of
- 8:37cool stuff you can do with this tool.
- 8:38We're not going to cover all that. We're
- 8:39going to focus on the problems we need
- 8:41to have solved. Whenever I'm learning a
- 8:43new tool, I like to start super simple,
- 8:45understand the foundations of the tool,
- 8:48and then move to more and more complex
- 8:50scenarios. All right, so let's go ahead
- 8:52and start from scratch here. I'm going
- 8:53to open up a terminal, boot up a Claude
- 8:54Code Opus window here. If you're working
- 8:57in the future, you have access to Fable,
- 8:58I am jealous of you right now. Can't
- 9:00wait for that model to be turned back
- 9:01online, although it looks like there's
- 9:02going to be massive delays with getting
- 9:04that back online. So, I have a Cmux
- 9:05skill that was built that just makes the
- 9:07agent aware of the tool, open a
- 9:08workspace in a fresh temp directory,
- 9:10create 60 throwaway files, lsla, read
- 9:13the output back, and then continue from
- 9:15there. All right, so we're just having
- 9:16our orchestrator agent operate on Cmux
- 9:20windows. So, let's see how this looks.
- 9:21And I'll hold them both open here at the
- 9:23same time. So, you can see here our
- 9:24existing agent team window is open. My
- 9:27agent is operating this window. Okay, so
- 9:30we have a new workspace here. Inside the
- 9:32window, we have a pane with a single
- 9:34tab. You can see there's that ls, you
- 9:36know, I'm not typing anything here. This
- 9:37agent operating a workspace, to be
- 9:40clear. This is bigger than a terminal.
- 9:41It's done, right? So, we had it LS all
- 9:44these mock files it created, right? If
- 9:46we close this, do our LS ourselves, we
- 9:47can see them exactly. The great part
- 9:49about tools like Cmux and Tmux is that
- 9:51you can jump in whenever you need to,
- 9:52right? The agents stop being black boxes
- 9:55when you can actually touch and jump in
- 9:57to the terminal window. Agentic access
- 9:59here is super, super important. Very
- 10:01simple, great place to start when you're
- 10:02learning a new tool. Just show a basic
- 10:04use case of the app. So, let's split
- 10:06into a grid. I want to see a grid here.
- 10:07So, I'm going to close our throwaway 60
- 10:09and we'll work our way up to, you know,
- 10:11a full multi-agent orchestration example
- 10:13here. We're just setting the groundwork.
- 10:15Always start with the fundamentals.
- 10:22So, this is going to open a 2 by 2 grid
- 10:24in a new workspace.
- 10:27There we go. And in each workspace, it's
- 10:29going to run specific commands. On the
- 10:31right here, it's just an empty terminal.
- 10:33Here, we have the date being updated per
- 10:35second. And then we have a tick in the
- 10:37bottom left. And then in the top left,
- 10:39we have Htop running. Each one of these
- 10:41clearly documented in the workspace
- 10:43name. You can see how this can be very,
- 10:45very powerful for agents, right? So, not
- 10:47only is this tool helping us move at the
- 10:49agentic speed, it's giving us access to
- 10:51quick start commands to run repeat
- 10:54workflows. All right, so boot up your
- 10:56front end, boot up your back end, boot
- 10:57up all your services, boot up your
- 10:58database. Let's keep pushing to see how
- 11:00this tool is differentiated from a tool
- 11:02like Tmux because Tmux is the OG of
- 11:05this. Let's go and tidy up. Let's have
- 11:06our agent clean everything up. Take the
- 11:08dash workspace, rename it, flash it, and
- 11:11then start closing it. Okay, so this is
- 11:13where we start pushing into the value
- 11:15prop of Cmux. It can control the panes
- 11:17and the windows in a very, very precise
- 11:19way. There's the flash. It updated the
- 11:21name to retired. So, we have live
- 11:23updates happening at any point in time
- 11:25that we can agentically program. We can
- 11:27prompt engineer into the system to
- 11:29really control the experience of agentic
- 11:32engineering. And that's really where
- 11:34this all goes, right? The ultimate user
- 11:37interface for a gentic engineering, the
- 11:39DX for a gentic engineering, it is not
- 11:41set in stone yet. As much as everyone's
- 11:44you're talking about loop engineering
- 11:45and building these new DXs, there are no
- 11:47winners yet, okay? Only experimenters,
- 11:49only researchers, only those pushing
- 11:51what they can do with agents. So, keep
- 11:54looking for the optimal developer
- 11:56experience for your work, for your
- 11:59agent, so on and so forth, right? And
- 12:00that's what we're doing here. We're just
- 12:01understanding the state space of the
- 12:04available agentic tools, okay? And as
- 12:07you'll notice here, building blocks,
- 12:09extensibility, adaptability,
- 12:11pluggability is a key part of great
- 12:15agentic technology, right? Which is why
- 12:17I'm drawn to Cmux in the first place.
- 12:19Great agentic access, rename flash,
- 12:21close the whole workspace. Great, you
- 12:22get the picture. Let's get more complex
- 12:23here. Let's boot up Cloud Code and the
- 12:25Pi Coding agent side by side. We're
- 12:27going to do this in a brand new
- 12:28workspace. That's the mode I like to
- 12:30work in here with Cmux so far. I'm
- 12:31getting into this nice pattern of
- 12:33creating new workspaces, not windows.
- 12:35Two columns here side by side, and one
- 12:37is Pi and one is Claude. And so, another
- 12:39great piece about this, you can
- 12:41orchestrate any agentic coding tool you
- 12:43want to. If you're a Claude Code guy,
- 12:45scale up your Claude Codes. If you're a
- 12:46Code X fan, scale those up. If you're an
- 12:47open code scrub, go for that.
- 12:50Just kidding, just kidding. If you're a
- 12:51Pi Coding agent elite agentic engineer,
- 12:55plugging and playing with your own
- 12:56custom agent harnesses, then you'll go
- 12:58for that, right? Opus 4.8 one of the
- 13:00best orchestrator models in the game
- 13:02until Fable supersedes it. You can see
- 13:04here, we are orchestrating multiple
- 13:06coding agents with the orchestrator
- 13:08agent, okay? Very, very powerful stuff.
- 13:10I'm using iPi for my Pi Coding agent.
- 13:12This is my customized Pi Coding agent
- 13:15with several different extensions built
- 13:16into it. This is a specialized developer
- 13:18experience as an agent harness. So,
- 13:20we've just asked a simple question here
- 13:21about processes versus threads, and they
- 13:24both answered, right? So, nothing
- 13:25special there, but the value proposition
- 13:28is obvious. You can boot up agents and
- 13:30you can prompt agents using C Mux, and
- 13:33we can continue to scale this, okay? So,
- 13:35let's do exactly that. Let's start
- 13:37orchestrating fleets of agents, okay?
- 13:39So, let's do a 2x2 fleet. And a really
- 13:41important piece here that you'll also
- 13:43notice is that these agents have
- 13:44completed, they then send a notification
- 13:48to this top window, okay? So, say you're
- 13:50working over here getting things done on
- 13:52another branch of work, another set of
- 13:54work. C Mux is going to notify you when
- 13:57this set of agents, or single agent if
- 13:59you want to do one workspace per agent,
- 14:01it'll let you know when that work is
- 14:02done, okay? But, here we go. We have a
- 14:04new fleet. This is our security fleet.
- 14:06Set up four coding agents, Cloud Code,
- 14:08Code X, Pi with Minimax and GLM. Create
- 14:11a fleet. List the top three security
- 14:13vulnerabilities you can find in this
- 14:15repository. So, this is a simple mock
- 14:17repository. This is a waste for these
- 14:18agents. It's not really going to do
- 14:19anything, but you can see here, this is
- 14:21a simple important idea of literally
- 14:24scaling your compute to scale your
- 14:25impact. Say you were looking for
- 14:27security vulnerabilities in your code
- 14:28base, you could spin up one agent and
- 14:30have sub agents under it run, or you
- 14:32could set up different agentic coding
- 14:34tools with their own unique advantages
- 14:36running different agents to run the
- 14:38exact same validation pattern, the exact
- 14:40same security checks across your code
- 14:43base, okay? This is the simplest,
- 14:45clearest example of scaling your compute
- 14:48to scale your impact. The big difference
- 14:49here with a tool like C Mux or T Mux is
- 14:52that this is fully visible, okay? So, we
- 14:55have Minimax and three giving a shot at
- 14:57this, GLM 5.2, and of course, the
- 14:59state-of-the-art models, GPT 5.5 and
- 15:02Opus 4.8. They're all applying their
- 15:05opinions, their perspective, their
- 15:07expertise, their specific model
- 15:08advantage against this problem of
- 15:11checking for security vulnerabilities, a
- 15:13big topic right now in the age of
- 15:15agents. One of the key pieces of this is
- 15:17now inside of our orchestrator, because
- 15:19remember, the way I'm looking at this
- 15:21tool is any point to be able to use my
- 15:24orchestrator to drive results in any one
- 15:26of my windows, any one of my workspaces,
- 15:29and then the individual panes. But, also
- 15:32have the ability to go into any
- 15:33individual agents and really just prompt
- 15:36out and dial into any details we need to
- 15:39on an agent level, okay? So, this is
- 15:42important. Want to be able to jump into
- 15:43the process at any point, understand
- 15:45what every agent is doing, who's got the
- 15:47advantage, who's running patterns we
- 15:48want to replicate, and who's doing
- 15:50stupid we don't want to do again,
- 15:52okay? And that's on a agent to coding
- 15:55tool level all the way down to, of
- 15:56course, the model level, and then
- 15:59further on down, right? Context model
- 16:00prompt tool, system prompt context. So,
- 16:03great. These are all done, and the
- 16:05orchestrator is reading it back out.
- 16:07This is now in idle mode because the
- 16:09orchestrator has read the response, it's
- 16:11read the surface, right? It knows that
- 16:14things are done. This is where we start
- 16:15getting out of what tmux can do, right?
- 16:18We're working on multiple problems,
- 16:19we're scaling our computer, scaling our
- 16:21impact, and we can see everything, and
- 16:23we can understand everything, okay?
- 16:25Fantastic. So, we are doing multi-agent
- 16:28delegation, but of course, one of the
- 16:30key things here is any agent can prompt
- 16:32any other agent. So, I'll just try to do
- 16:34something random here. Inside of this
- 16:36cloud code worker, I'll type tmux to
- 16:37activate the skill ping your other fleet
- 16:40co-workers. So, very powerful stuff
- 16:41here. It's going to read the screen of
- 16:43each surface. I've been seeing really,
- 16:44really great success with this
- 16:46three-tier architecture with my agents,
- 16:48right? You have a top-level
- 16:49orchestrator. You then have team leads,
- 16:51and then the leads have workers that
- 16:53actually do the work, okay? So, we're
- 16:54replicating traditional hierarchy
- 16:56structures without the true cons and the
- 16:59true problems with hierarchies, right?
- 17:01This is not a top-down structure. Any
- 17:03agent can prompt any agent. You can see
- 17:05that here thanks to this skill here.
- 17:07We're getting a nice simple prompt
- 17:09coming into every single agent from
- 17:11inside tmux, right? So, our agents can
- 17:14prompt our agents. This is a flat
- 17:15hierarchy even though there is one
- 17:17orchestrator is at the top, and so I
- 17:19like to put my team lead on the left as
- 17:20you see in a moment, but we can just
- 17:21drag and drop this down here, or we'll
- 17:23move it over here. And this very quickly
- 17:25kind of shows you the organizational
- 17:27structure that you can build. Lead here,
- 17:29workers here. And you can build any
- 17:31structure you want. The point is is that
- 17:32the communication channel is flat, all
- 17:34right? So, fantastic. What else can we
- 17:36do with this tool? Let's scale into
- 17:38workspaces. Let's really push what we
- 17:40can do with this. So, I'm going to copy
- 17:41this larger prompt here. I'm going to
- 17:42have agent do this. Here we're going to
- 17:43showcase like the importance of
- 17:45organization inside the workspace. Now,
- 17:47you can see here we're starting to
- 17:49already have a lot more organization
- 17:50than normal if we were just in a single
- 17:52terminal, or if we were using a single
- 17:53terminal with tabs. We're getting
- 17:54notification events, which are pretty
- 17:56pluggable. You can do a lot more with
- 17:58them than we are. But you can see here,
- 18:00imagine you're booting up multiple teams
- 18:02to solve multiple problems. We have
- 18:03gamma, beta, alpha. We can jump into
- 18:05these, and we can see our Let me pull up
- 18:07the orchestrator so we can see what's
- 18:08going on here. Right, our orchestrator
- 18:09getting work done, booting up sets of
- 18:12agents programmatically. Let's close our
- 18:14security fleet here. Okay, so we have
- 18:16gamma, we have beta, and we have alpha
- 18:18booted up. Okay, so you know, imagine
- 18:21any multi-agent orchestration set of
- 18:23teams you want. That's a key value
- 18:25proposition here. You have multi-agent
- 18:27coordination at a massive scale, right?
- 18:29At just an absolutely massive scale, and
- 18:31you're in control, and you have
- 18:33visibility into it. Okay, super super
- 18:35important. If you hold command, you can
- 18:36see all the hot keys for each workspace.
- 18:38This is clearly the unit that tmux sees
- 18:41as the most important to be navigating.
- 18:43It's at that workspace level. But of
- 18:44course, we can quickly move through all
- 18:46of our surfaces as well. Right? So,
- 18:48again, just expressing that idea here,
- 18:50you can scale agents across multiple
- 18:52workspaces as well.
- 18:58So, let's look at the scenario where you
- 19:01need to fix a bug right away. Say
- 19:03production's going down, your customers
- 19:05and your users are completely blocked.
- 19:07So, you're losing money by the second.
- 19:09Okay, so I'm going to hit new here just
- 19:11to reboot everything and then paste the
- 19:13send here. It's a longer prompt, but
- 19:15we're going to have agents race toward a
- 19:16solution. Okay, so I'm going to close
- 19:18all these windows here. Say there's a
- 19:19production issue and you need to resolve
- 19:22it yesterday. This is going to be a
- 19:23differentiating agentic engineering
- 19:26pattern that you can use. It's super
- 19:27simple. Throw more computer at the
- 19:29problem. Have your agents race toward a
- 19:31solution. We're going to do a needle in
- 19:32a haystack search. In reality, this will
- 19:34be a hot fix you'll need to deploy, but
- 19:37you can just throw a bunch of agents at
- 19:38a problem at the same time in parallel.
- 19:41You want the first available answer so
- 19:42you can deploy the fix back into
- 19:43production, okay? So, in this scenario,
- 19:46we're going to boot up an eight agent
- 19:47race to just race toward a solution. So,
- 19:50there we go. All the windows popping
- 19:52open here and we're going to deploy a
- 19:53variety of compute to get the job done.
- 19:56This is needle in a haystack, capture
- 19:58the flag, first agent to the goal post
- 20:00wins type of task, okay? And multi-agent
- 20:03orchestration lets you do this really,
- 20:05really well. Every contact model prompt,
- 20:07every agentic coding tool is going to
- 20:09have their unique advantages, strengths,
- 20:11and weaknesses. And so, when you need to
- 20:13deploy something quickly, when you have
- 20:14a hot fix you need to deploy, throwing
- 20:16different types of intelligence at the
- 20:18problem is going to get you the better
- 20:21result pretty much every single time if
- 20:23you're willing to, of course, pay for
- 20:25the compute. And so, you can imagine,
- 20:26you know, you have your red team eight
- 20:29agent race here, and then you might have
- 20:30another set of agents in a, you know,
- 20:33your infrastructure agents or your
- 20:34deploy agents here, and then you might
- 20:36have your review set of agents here to
- 20:39at scale quickly review the issue so
- 20:41that you can then hand it off to your
- 20:43infra team of agents, right? Your deploy
- 20:46agents. And now we have a bunch of
- 20:48compute thrown at the problem. We've got
- 20:50Opus, we've got Sonnet, and another
- 20:52advantage here, you can see a couple of
- 20:53my Pi agents didn't even fire. Looks
- 20:55like an environment variable setup
- 20:56problem. That's fine. My local agent, my
- 20:59local Quinn, is working. All the Codex
- 21:01and all the Sonnet models quickly found
- 21:03the solution. That's done. And now this
- 21:05issue can be reported and now we're
- 21:07waiting for that notification event for
- 21:10my orchestrator and needs input. There
- 21:12we go. Okay, so it finally triggered
- 21:13there and now our orchestrator should
- 21:15pick this up. Let's go ahead and see if
- 21:17it does pick it up cuz all the agents
- 21:19are complete. Maybe this is a good time
- 21:20for us to transition a little bit and
- 21:22talk about the pros and cons of this
- 21:24tool, right? And maybe my agents just
- 21:26don't understand the tool properly.
- 21:27That's fine. It could be a mistake on my
- 21:29part. When you're using tools like this,
- 21:30these new tools, tools that are just
- 21:32kind of appearing overnight and I know
- 21:34Cmux deserves more credit than that.
- 21:36This is a solid tool that's been around
- 21:37for a while. There's a whole wave of
- 21:39agentic tools coming and you're always
- 21:40going to want to compare that against
- 21:42tried and true technology. So, when I
- 21:44sit down to solve problems and learn
- 21:46with agents, I'm always comparing
- 21:48against what else exists. For a lot of
- 21:50the capability we've looked at here,
- 21:51Cmux can do the job. The thing is that
- 21:54it's not going to be as customizable and
- 21:56aesthetic and the developer experience,
- 21:59I think, with Cmux is a little harder to
- 22:01get right. That's what Cmux does really,
- 22:03really well. It's made for the modern
- 22:05era of building with agents
- 22:08programmatically on Mac devices. Okay?
- 22:11So, yeah, probably should have mentioned
- 22:12that earlier. If you're on Linux,
- 22:14Windows, WSL, you know, you're going to
- 22:15need to use a tool like Cmux. This is
- 22:18Mac only. The big problem with this is
- 22:19just maturity, right? These brand new
- 22:21tools have issues and it could be me,
- 22:24but you can see here, you know, in our
- 22:25red team response here, our
- 22:27orchestrator's done nothing. Check and
- 22:29understand why you stalled there, right?
- 22:31Because really we wanted to ping on the
- 22:33first completion of our tool, right?
- 22:36First completion of any window. Okay, so
- 22:38foreground 10 minute. Okay, very weird.
- 22:40So, we did get a notification event. It
- 22:42just seems like our agent didn't
- 22:44register it. This is one of the things I
- 22:46need to spend more time on to make sure
- 22:47I'm getting right and it's just one of
- 22:49the things that you'll have to
- 22:50understand when you're building and
- 22:52teaching your agents how to use the
- 22:53tool. Something to be improved there,
- 22:54but the high-level is still there. There
- 22:56are notification events you can plug
- 22:57your agents into to wait for responses
- 23:00from your agents.
- 23:06We're going to stand up eight agents
- 23:07across four workspaces, two agents in
- 23:09each, give them each a two-column
- 23:11layout. The left is the agent, and the
- 23:13right is going to be a browser. Now,
- 23:15this direction is fine. tmux is, you
- 23:17know, trying to grow as a product, so it
- 23:19has an app browsers. That's really cool.
- 23:21The real killer feature here is
- 23:23programmability. This is the most
- 23:25important thing. It's nice that it's
- 23:26lightweight, of course, open source is
- 23:28super important, but customizability is
- 23:30what comes next. And there's a whole
- 23:32slew of customization you can build out
- 23:35into your tmux application that we're
- 23:38going to gloss over because these are
- 23:40extra features. You can change the theme
- 23:42and feel, you can add custom action
- 23:43buttons. That's all well and good. The
- 23:46most important thing here, by far, is
- 23:48agentic access, right? This is a huge
- 23:51theme. This is one of the key pillars of
- 23:54agentic engineering, right? It's making
- 23:55sure that you have agentic access to
- 23:58every tool, to every service, to every
- 24:00product that you want to interact with
- 24:02at the speed of agents, not the speed of
- 24:04humans. I think we can just say that,
- 24:06right? In the digital world, eventually
- 24:08the physical world, too, we move very
- 24:10slowly now. And there are advantages to
- 24:13moving slowly. Coding is not our domain
- 24:15anymore. That is the domain of agents.
- 24:18Okay, but orchestrating intelligence is
- 24:20our domain. This is one of the five
- 24:21pillars of agentic engineering. We
- 24:23covered this in previous video. I'll
- 24:24link that below if you're interested.
- 24:26Here's the kind of high level of the
- 24:28five pillars I'm really, really focusing
- 24:30on right now over 2026, and agentic
- 24:33access is number five. Even your agents
- 24:36should have agentic access, right? You
- 24:37want that meta level of control. And
- 24:40this is all to raise the ceiling of your
- 24:42agentic engineering, not the floor of
- 24:45vibe coding. When these mythos class
- 24:46models come out, a lot of engineers are
- 24:48just going to sit, they're going to get
- 24:49lazy, they're going to stop thinking,
- 24:51and just hand the wheel to the agent. On
- 24:53the channel, we're not going to be doing
- 24:54that. If you agree with that ideology,
- 24:57like, follow, subscribe, all that good
- 24:58stuff. The kind of one-liner is, if a
- 25:00tool does not have programmatic access,
- 25:02I just completely ignore it now. I don't
- 25:04give it another second of my time, okay?
- 25:07Agentic access gives you the agentic
- 25:09speed. Let's see where our team is. FS,
- 25:12Delta, Gamma, Beta, Alpha team. Imagine
- 25:14these are, you know, the names of
- 25:16features, the names of bug fixes, the
- 25:18names of things you are actually
- 25:19building against. We have a nice browser
- 25:21on the side, and we have a two-agent
- 25:23team per workspace to work on that
- 25:26browser, okay? So, you get the idea
- 25:27here, right? We have a little custom
- 25:29theme in here to help us get back in the
- 25:32loop when we need to be in the loop to
- 25:34orchestrate our agents. So, again, you
- 25:36know, having visual identifiers improves
- 25:38your developer experience, lets you
- 25:39focus on what matters the most, and then
- 25:41you can just move on. The biggest risk
- 25:44with C mux is that this is a new,
- 25:46relatively fast-moving tool. I'm going
- 25:48to be using both of these tools side by
- 25:50side, not so much using Warp anymore,
- 25:52but C mux and T mux I'm going to be
- 25:54spending some time on. And that leads us
- 25:56to the kind of final problem. I need to
- 25:58be able to quickly launch agents for the
- 25:59thousandth time. So, let me show you
- 26:01really concretely how I'm using a tool
- 26:03like this. So,
- 26:08I have a just file inside of my code
- 26:11bases, and this lets me give a really
- 26:13quick one-tap command to boot up new
- 26:15agent teams, okay? So, I'll just type J
- 26:17fast CC. If I hit enter here, I need to
- 26:20pass in a feature. So, what's the focus
- 26:23of this agent team, okay? So, I'll type
- 26:25fast CC, and then we'll call this SSE.
- 26:28Let's assume we're adding server-sent
- 26:30events into our web server, okay? So,
- 26:32we'll hit enter there, and this is going
- 26:33to pretty much instantly boot up an
- 26:36agent team. And this is a unique agent
- 26:38team in the multi-agent orchestration
- 26:40pattern that I like. This is three-tier
- 26:43multi-agent orchestration, and it looks
- 26:44like this. The orchestrator here, team
- 26:46leads here. Every one of these is a team
- 26:48lead in my workspace, and so this
- 26:50specifically is the team lead. Right now
- 26:52I'm using a GLM 5.2 and then every team
- 26:55lead gets access to worker agents. Okay,
- 26:57so here's my plan agent, here's my
- 26:59theoretical build agent, here's the
- 27:01build front end, and here's the testing
- 27:03agent. Might seem complex to add one
- 27:06additional level of agent, but it helps
- 27:08a lot and I've needed a tool like C mux.
- 27:11T mux wasn't cutting it for the right
- 27:13organizational structure and so I'm
- 27:15picking up a tool like C mux to kind of
- 27:17help me solve this multi-agent
- 27:18orchestration problem. These sets of
- 27:20problems, it's starting agents, it's
- 27:22monitoring agents so you can improve
- 27:24them, and then it's being able to scale
- 27:26your orchestration to whatever level you
- 27:28need to. And so as mentioned, this is
- 27:30not top-down agent communication, right?
- 27:33Any agent can prompt any agent. I also
- 27:35have my specialized coms net pi agent
- 27:37coding extension, but C mux lets me push
- 27:40outside of the extension and have any
- 27:42agentic coding tool talk to any agentic
- 27:45coding tool thanks to the C mux skill.
- 27:47Bidirectional flat agent communication
- 27:49is super important while maintaining an
- 27:52orchestrator, a lead, and then a worker
- 27:55level setup. And I'll link the video
- 27:57where we go into multi-tiered agent
- 27:59orchestration. This isn't for everyone.
- 28:01A lot of engineers are going to look at
- 28:02this and say, "Why do I need this? It's
- 28:04slop. This isn't useful." That's fine.
- 28:06It just means it's not for you, okay? As
- 28:08I mentioned in the beginning, there's
- 28:09many ways to do this. You can use the
- 28:10Ralph to-do list. You can use the new
- 28:13loop engineering patterns and you can
- 28:15just use classic cloud code sub agent
- 28:16delegation. That's fine. Right? They
- 28:18have the {slash} workspaces, they have
- 28:20{slash} loop, they have {slash} goal,
- 28:21right? Use whatever works for you. My
- 28:24goal here is just to show you the
- 28:26optionality of what's available to you
- 28:28and to re-emphasize agentic access and
- 28:31full control over the primitives of
- 28:34agentic engineering, right? Context
- 28:36model prompt tool. Once you have an
- 28:37agent up and running, you can scale it,
- 28:39right? Now I have a team here that has,
- 28:42let's say these are each 1 million
- 28:43contexts each, specialized. That gives
- 28:46me 5 million tokens of context to work
- 28:48with, quite literally. Right? That's not
- 28:50an exaggeration. When you put together
- 28:51your agents in a way where they can all
- 28:53communicate, you're getting a bigger
- 28:55team of intelligence to work on your
- 28:57behalf. Okay? So, um you know, what's
- 28:59the verdict? I like Cmux. I'm going to
- 29:01be using this tool. It stands up to Tmux
- 29:03pretty well. I'm going to be keeping my
- 29:05eye on any glitches or bugs with this
- 29:08tool, but so far I'm a big fan. It's the
- 29:11scriptable service API, the agentic
- 29:13access, that really matters with this
- 29:15tool. There are a bunch of other
- 29:16features here I didn't mention. I'm sure
- 29:18some Cmux hardcore users are going to be
- 29:21flaming me for this being so relatively
- 29:22simple, but the key here is it's
- 29:25programmable. Right? That's the most
- 29:26important thing by far. Agentic access
- 29:29is a requirement
- 29:31for agentic engineering. And this is
- 29:33going to compound every single thing you
- 29:36set up here from this five-item list is
- 29:39going to give you a compounding
- 29:40advantage for agentic engineering. Once
- 29:42again, we want to be moving up with the
- 29:44ceiling of agentic engineering, not the
- 29:46floor of vibe coding. All these ideas
- 29:49are big ideas we talk about and really
- 29:51break down in tactical agentic coding.
- 29:54I'll leave a link in the description for
- 29:56that if you're interested in paying a
- 29:57little bit to get a massive advantage.
- 29:59If you're not though, that's totally
- 30:01fine. I'll leave my entire guide code
- 30:02base here to really break down Cmux
- 30:05capabilities. If you made it to the end
- 30:06and you want to see more agentic
- 30:07engineering content like this, drop a
- 30:09like, share the video with a friend,
- 30:11with a coworker, and then comment down
- 30:12below, how are you thinking about
- 30:14multi-agent orchestration? Do you have
- 30:16any unique experiments or tools you're
- 30:18running to better scale your computer,
- 30:20scale your impact? You know where to
- 30:22find me every single Monday. Stay
- 30:24focused and keep building.
About this transcript
This page contains the full transcript of SEE CMUX SOLVE Multi-Agent Orchestration (Claude Code and Pi Agent) by IndyDevDan, generated from the public captions YouTube serves with the video. The transcript has 6,129 words across 884 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.