YouTube2Text

SEE CMUX SOLVE Multi-Agent Orchestration (Claude Code and Pi Agent) — Transcript

by IndyDevDan · 6,129 words · 884 segments · language en · Watch on YouTube

Full transcript

  1. 0:00As engineers, there's just one idea you
  2. 0:03and I need to win in the age of agents.
  3. 0:07Scale your compute to scale your impact.
  4. 0:10The goal is clear, but the path is less
  5. 0:12clear. The big open question the best
  6. 0:15engineers are asking is how exactly
  7. 0:17should you orchestrate your agents for
  8. 0:20maximum impact? And there's no shortage
  9. 0:23of options. Boris and Peter are saying
  10. 0:25loop engineering is the future and
  11. 0:27prompt engineering is already dead. I
  12. 0:29completely disagree with this. There's
  13. 0:31the Ralph style to-do list to keep your
  14. 0:34agents focus on a massive list of work.
  15. 0:37Fable is going to love Ralph. Then
  16. 0:39there's classical sub-agent delegation
  17. 0:41and many, many more patterns. I've been
  18. 0:43engineering for over 15 years and
  19. 0:46building with agents since it was first
  20. 0:48possible and we have to call out the
  21. 0:50fact that these AI labs have massive
  22. 0:53incentives to keep you and I spending
  23. 0:56tokens, token maxing. When the truth is,
  24. 0:58there's a dozen different agentic
  25. 1:00patterns you can use to ship with
  26. 1:02agents. One of my favorite patterns is
  27. 1:05three-tier agent orchestration.
  28. 1:08Orchestrators prompt the leads, leads
  29. 1:10prompt the specialized agent experts.
  30. 1:13But every multi-agent approach has
  31. 1:16similar problems. The big three being
  32. 1:18how do you start, interact, and improve
  33. 1:21your growing fleet of agents? If you're
  34. 1:24live coding or token maxing, this
  35. 1:26doesn't matter at all. You can spin up
  36. 1:2820 agents in a loop and look the other
  37. 1:30way. On this channel, we don't live
  38. 1:32code, we agentic engineer because an
  39. 1:34[music] agent you can't monitor is an
  40. 1:36agent you can't improve. I have three
  41. 1:40multi-agent orchestration problems I'm
  42. 1:42going to solve and I'm looking [music]
  43. 1:44at tmux as a potential solution to this
  44. 1:47problem. As we work through the feature
  45. 1:49set of tmux, I want to share with you
  46. 1:51how I'm continuing to learn new tools
  47. 1:54and technology with [music] agents. If
  48. 1:56these ideas interest you, smash the like
  49. 1:58button, lock in, and let's improve our
  50. 2:01agent [music] orchestration.
  51. 2:08Whenever I sit down to learn a new tool
  52. 2:10or technology, I have a state-of-the-art
  53. 2:12agent build out a comprehensive HTML
  54. 2:16file that I can use to visually
  55. 2:19understand, study, and master new tools.
  56. 2:22So, that's how we're going to learn C
  57. 2:23mux right now. Let's start with the
  58. 2:26problem. What problems are we going to
  59. 2:28solve? I don't start with tools,
  60. 2:30problems come first, tools come second.
  61. 2:32I know I'm late to the C mux game, but I
  62. 2:34don't really care. Outside of
  63. 2:36experimentation, if I don't need a tool,
  64. 2:38I don't pick it up until I have a
  65. 2:39problem first. I have three problems
  66. 2:42surrounding multi-agent orchestration
  67. 2:44that you likely have too. Let's see if C
  68. 2:46mux can solve three popular multi-agent
  69. 2:49orchestration problems. So, first off,
  70. 2:51no programmatic access to your agents.
  71. 2:54This is a massive problem because it
  72. 2:55means you're the bottleneck, and it
  73. 2:58keeps you in the loop all the time,
  74. 3:00meaning your agents can never move at
  75. 3:02the agentic speed. The big question is,
  76. 3:05can C mux solve this? The answer is, of
  77. 3:07course, yes. The core value proposition
  78. 3:09of tools like C mux and the
  79. 3:11tried-and-true T mux is this exactly.
  80. 3:14They give you agentic access to every
  81. 3:16single terminal. An agent you can't see
  82. 3:19is an agent you can't improve. This is
  83. 3:21going to be increasingly controversial.
  84. 3:22A lot of engineers are turning off their
  85. 3:24brains, and they're not studying what
  86. 3:26their agents are doing. They're spinning
  87. 3:27up fleets, and they're ignoring the
  88. 3:29journey, all the mistakes, all the
  89. 3:31successes, all the things that they
  90. 3:32would want to emphasize, reproduce, and
  91. 3:35cut out of the workflow is completely
  92. 3:36ignored. This is one of the key
  93. 3:38differences between vibe coding and
  94. 3:40agentic engineering. An agent you can't
  95. 3:43see is an agent you can't improve. I
  96. 3:46need to be able to see every one of my
  97. 3:48agents. Okay, it doesn't matter if it's
  98. 3:50Claude code, Pi, open code, Codex, I
  99. 3:52need to be able to see it, monitor it,
  100. 3:54and understand when things are going
  101. 3:55right so I can re-emphasize that
  102. 3:57behavior in the agent via the core four,
  103. 3:59or I need to know when things are going
  104. 4:01wrong so I can present negative rewards.
  105. 4:03Okay, so can Cmux solve that problem for
  106. 4:05us? Yes, it can. We have per workspace
  107. 4:08color, role, icons, identity, we have
  108. 4:11tabs, we have banners, we have
  109. 4:13everything we need to quickly jump into
  110. 4:15an agent and see it. Quick teaser here,
  111. 4:17I have Cmux ready to go and you can see
  112. 4:19here we have a great breakdown to kind
  113. 4:21of fundamental pieces of a tool where we
  114. 4:24can quickly see, observe, and therefore
  115. 4:26improve everything, right? We have a
  116. 4:28Cloud Code agent, we have a CodeX agent,
  117. 4:29we have two Pi agents running the
  118. 4:31Minimax M3 and the JLM 5.2. We'll get
  119. 4:34back to this in a second. Let's fully
  120. 4:35understand every single problem. And
  121. 4:37this is a big one. It's been
  122. 4:38increasingly becoming a problem as I
  123. 4:40deploy more and more agents and set up
  124. 4:42new teams to do specific sets of work
  125. 4:44extraordinarily well. If you're building
  126. 4:46custom agents, you're running into this
  127. 4:47problem, too. If you're deploying five,
  128. 4:4910, 20 plus agents, you have also seen
  129. 4:51this problem. Booting an agent team by
  130. 4:54hand kills the agentic speed. It just
  131. 4:56takes too much time. So, can Cmux solve
  132. 4:58this? Of course, yes, it can. It has
  133. 5:00reusable session files, but more
  134. 5:02importantly, this tool has agentic
  135. 5:04access. If a tool has agentic access,
  136. 5:08that means you can move at the agentic
  137. 5:10speed and solve problems in natural
  138. 5:12language with well-constructed prompts.
  139. 5:15Okay? So, these are the problems we're
  140. 5:16going to solve. Cmux has solutions to
  141. 5:19all of them. I think the question is, do
  142. 5:21you have to use Cmux, or is something
  143. 5:23like tmux going to get you all the way
  144. 5:25there as well? So, let's dial back into
  145. 5:27Cmux and understand what this tool can
  146. 5:29do and see if it can help us solve these
  147. 5:31three key problems: agentic access,
  148. 5:33monitor to improve, and quick agentic
  149. 5:35launch for your thousandth agent run,
  150. 5:38not your first, not your 10th, not your
  151. 5:40100th.
  152. 5:44So, what is our agent teaching us about
  153. 5:46Cmux? Let's understand the mental model
  154. 5:49that really builds the foundation of
  155. 5:51understanding Cmux and other terminal
  156. 5:52multiplexes as well. You have the
  157. 5:54window, which is going to be this entire
  158. 5:56window here. With control shift N, we
  159. 5:58can boot up a brand new window. Then we
  160. 6:00have our workspace. Workspaces, you
  161. 6:02know, we can boot up with command N. And
  162. 6:03this is going to give us a new workspace
  163. 6:06to set up teams of agents, to set up
  164. 6:08groups of terminals, to do whatever you
  165. 6:09need to do. Then we have panes. The pane
  166. 6:12is going to be the actual window. We
  167. 6:13have a pane here. a pane here. We have
  168. 6:16one here, here, and here. It's important
  169. 6:18to mention, if we do command T, this
  170. 6:21opens a new surface inside of this
  171. 6:23existing pane. So, we have individual
  172. 6:26windows. You can separate and group your
  173. 6:28agent teams, your terminals. You can
  174. 6:30have production, you can have staging,
  175. 6:32you can have dev, we can have
  176. 6:34workspaces. So, for me, I'm going to put
  177. 6:36my agent teams on the workspace level.
  178. 6:38And then inside of the workspace, you
  179. 6:39have your individual pane. So, we have a
  180. 6:42pane here. In my multi-agent
  181. 6:43orchestration workflow, I'm going to put
  182. 6:45my lead here. And then the workers go
  183. 6:47over on the right. So, I can look at the
  184. 6:49level that I need to to get the job
  185. 6:50done, while not losing the depth of
  186. 6:53visibility into the low-level worker
  187. 6:56agents. This is super key, right?
  188. 6:57Prompting in a black box in sub-agents
  189. 7:00is a great place to start, terrible
  190. 7:01place to finish, right? We can do a lot
  191. 7:03better than that with the right agentic
  192. 7:05tools. That's why we're trying Cmux to
  193. 7:08see if we can really improve our
  194. 7:09multi-agent orchestration abilities.
  195. 7:11Okay, so that's the mental model of
  196. 7:12Cmux. And so, how do we control it?
  197. 7:19Uh it's pretty simple. Thanks to the
  198. 7:20programmatic access, we do four things.
  199. 7:23We can send information like send key.
  200. 7:24We can then read the screen after the
  201. 7:26action has been completed, and then we
  202. 7:28can open and close surfaces, and the
  203. 7:30loop repeats. Okay, so this is how you
  204. 7:32control it. We're going to walk through
  205. 7:34concrete examples of how you can use
  206. 7:36Cmux in just a moment here. But here's
  207. 7:37an example of the API, right? Send,
  208. 7:40read, close surface. You specify the
  209. 7:43surface and the exact text you want to
  210. 7:45send in. Another powerful part about
  211. 7:46Cmux, we can build an orchestration
  212. 7:49agent around pushing and pulling
  213. 7:51specific events from the Cmux life cycle
  214. 7:55and therefore our agent's life cycle.
  215. 7:57Okay, so there's a lot of
  216. 7:57customizability here. When I sit down to
  217. 7:59learn a tool, I use agents the entire
  218. 8:02time. Learning is the killer use case
  219. 8:04for agents. Coding comes next. In these
  220. 8:06HTML rich guides, I want an incremental
  221. 8:10tier-based explanation of how I can best
  222. 8:12use these tools to solve my specific use
  223. 8:14case. And that's exactly what my agent
  224. 8:16has done here. A lot of really smart
  225. 8:17engineers are turning their brains off.
  226. 8:19I want to push back against that. We
  227. 8:21want to rise with the ceiling of agentic
  228. 8:23engineering, not the floor of live
  229. 8:25coding. Okay? So, um let's run this,
  230. 8:28right? Let's understand Cmux at a deeper
  231. 8:29level. You see here, this tool can get
  232. 8:31very, very complex. It can help you
  233. 8:32orchestrate and do a lot of work. They
  234. 8:34even have like a mobile app here. You
  235. 8:36can access browsers. There's a lot of
  236. 8:37cool stuff you can do with this tool.
  237. 8:38We're not going to cover all that. We're
  238. 8:39going to focus on the problems we need
  239. 8:41to have solved. Whenever I'm learning a
  240. 8:43new tool, I like to start super simple,
  241. 8:45understand the foundations of the tool,
  242. 8:48and then move to more and more complex
  243. 8:50scenarios. All right, so let's go ahead
  244. 8:52and start from scratch here. I'm going
  245. 8:53to open up a terminal, boot up a Claude
  246. 8:54Code Opus window here. If you're working
  247. 8:57in the future, you have access to Fable,
  248. 8:58I am jealous of you right now. Can't
  249. 9:00wait for that model to be turned back
  250. 9:01online, although it looks like there's
  251. 9:02going to be massive delays with getting
  252. 9:04that back online. So, I have a Cmux
  253. 9:05skill that was built that just makes the
  254. 9:07agent aware of the tool, open a
  255. 9:08workspace in a fresh temp directory,
  256. 9:10create 60 throwaway files, lsla, read
  257. 9:13the output back, and then continue from
  258. 9:15there. All right, so we're just having
  259. 9:16our orchestrator agent operate on Cmux
  260. 9:20windows. So, let's see how this looks.
  261. 9:21And I'll hold them both open here at the
  262. 9:23same time. So, you can see here our
  263. 9:24existing agent team window is open. My
  264. 9:27agent is operating this window. Okay, so
  265. 9:30we have a new workspace here. Inside the
  266. 9:32window, we have a pane with a single
  267. 9:34tab. You can see there's that ls, you
  268. 9:36know, I'm not typing anything here. This
  269. 9:37agent operating a workspace, to be
  270. 9:40clear. This is bigger than a terminal.
  271. 9:41It's done, right? So, we had it LS all
  272. 9:44these mock files it created, right? If
  273. 9:46we close this, do our LS ourselves, we
  274. 9:47can see them exactly. The great part
  275. 9:49about tools like Cmux and Tmux is that
  276. 9:51you can jump in whenever you need to,
  277. 9:52right? The agents stop being black boxes
  278. 9:55when you can actually touch and jump in
  279. 9:57to the terminal window. Agentic access
  280. 9:59here is super, super important. Very
  281. 10:01simple, great place to start when you're
  282. 10:02learning a new tool. Just show a basic
  283. 10:04use case of the app. So, let's split
  284. 10:06into a grid. I want to see a grid here.
  285. 10:07So, I'm going to close our throwaway 60
  286. 10:09and we'll work our way up to, you know,
  287. 10:11a full multi-agent orchestration example
  288. 10:13here. We're just setting the groundwork.
  289. 10:15Always start with the fundamentals.
  290. 10:22So, this is going to open a 2 by 2 grid
  291. 10:24in a new workspace.
  292. 10:27There we go. And in each workspace, it's
  293. 10:29going to run specific commands. On the
  294. 10:31right here, it's just an empty terminal.
  295. 10:33Here, we have the date being updated per
  296. 10:35second. And then we have a tick in the
  297. 10:37bottom left. And then in the top left,
  298. 10:39we have Htop running. Each one of these
  299. 10:41clearly documented in the workspace
  300. 10:43name. You can see how this can be very,
  301. 10:45very powerful for agents, right? So, not
  302. 10:47only is this tool helping us move at the
  303. 10:49agentic speed, it's giving us access to
  304. 10:51quick start commands to run repeat
  305. 10:54workflows. All right, so boot up your
  306. 10:56front end, boot up your back end, boot
  307. 10:57up all your services, boot up your
  308. 10:58database. Let's keep pushing to see how
  309. 11:00this tool is differentiated from a tool
  310. 11:02like Tmux because Tmux is the OG of
  311. 11:05this. Let's go and tidy up. Let's have
  312. 11:06our agent clean everything up. Take the
  313. 11:08dash workspace, rename it, flash it, and
  314. 11:11then start closing it. Okay, so this is
  315. 11:13where we start pushing into the value
  316. 11:15prop of Cmux. It can control the panes
  317. 11:17and the windows in a very, very precise
  318. 11:19way. There's the flash. It updated the
  319. 11:21name to retired. So, we have live
  320. 11:23updates happening at any point in time
  321. 11:25that we can agentically program. We can
  322. 11:27prompt engineer into the system to
  323. 11:29really control the experience of agentic
  324. 11:32engineering. And that's really where
  325. 11:34this all goes, right? The ultimate user
  326. 11:37interface for a gentic engineering, the
  327. 11:39DX for a gentic engineering, it is not
  328. 11:41set in stone yet. As much as everyone's
  329. 11:44you're talking about loop engineering
  330. 11:45and building these new DXs, there are no
  331. 11:47winners yet, okay? Only experimenters,
  332. 11:49only researchers, only those pushing
  333. 11:51what they can do with agents. So, keep
  334. 11:54looking for the optimal developer
  335. 11:56experience for your work, for your
  336. 11:59agent, so on and so forth, right? And
  337. 12:00that's what we're doing here. We're just
  338. 12:01understanding the state space of the
  339. 12:04available agentic tools, okay? And as
  340. 12:07you'll notice here, building blocks,
  341. 12:09extensibility, adaptability,
  342. 12:11pluggability is a key part of great
  343. 12:15agentic technology, right? Which is why
  344. 12:17I'm drawn to Cmux in the first place.
  345. 12:19Great agentic access, rename flash,
  346. 12:21close the whole workspace. Great, you
  347. 12:22get the picture. Let's get more complex
  348. 12:23here. Let's boot up Cloud Code and the
  349. 12:25Pi Coding agent side by side. We're
  350. 12:27going to do this in a brand new
  351. 12:28workspace. That's the mode I like to
  352. 12:30work in here with Cmux so far. I'm
  353. 12:31getting into this nice pattern of
  354. 12:33creating new workspaces, not windows.
  355. 12:35Two columns here side by side, and one
  356. 12:37is Pi and one is Claude. And so, another
  357. 12:39great piece about this, you can
  358. 12:41orchestrate any agentic coding tool you
  359. 12:43want to. If you're a Claude Code guy,
  360. 12:45scale up your Claude Codes. If you're a
  361. 12:46Code X fan, scale those up. If you're an
  362. 12:47open code scrub, go for that.
  363. 12:50Just kidding, just kidding. If you're a
  364. 12:51Pi Coding agent elite agentic engineer,
  365. 12:55plugging and playing with your own
  366. 12:56custom agent harnesses, then you'll go
  367. 12:58for that, right? Opus 4.8 one of the
  368. 13:00best orchestrator models in the game
  369. 13:02until Fable supersedes it. You can see
  370. 13:04here, we are orchestrating multiple
  371. 13:06coding agents with the orchestrator
  372. 13:08agent, okay? Very, very powerful stuff.
  373. 13:10I'm using iPi for my Pi Coding agent.
  374. 13:12This is my customized Pi Coding agent
  375. 13:15with several different extensions built
  376. 13:16into it. This is a specialized developer
  377. 13:18experience as an agent harness. So,
  378. 13:20we've just asked a simple question here
  379. 13:21about processes versus threads, and they
  380. 13:24both answered, right? So, nothing
  381. 13:25special there, but the value proposition
  382. 13:28is obvious. You can boot up agents and
  383. 13:30you can prompt agents using C Mux, and
  384. 13:33we can continue to scale this, okay? So,
  385. 13:35let's do exactly that. Let's start
  386. 13:37orchestrating fleets of agents, okay?
  387. 13:39So, let's do a 2x2 fleet. And a really
  388. 13:41important piece here that you'll also
  389. 13:43notice is that these agents have
  390. 13:44completed, they then send a notification
  391. 13:48to this top window, okay? So, say you're
  392. 13:50working over here getting things done on
  393. 13:52another branch of work, another set of
  394. 13:54work. C Mux is going to notify you when
  395. 13:57this set of agents, or single agent if
  396. 13:59you want to do one workspace per agent,
  397. 14:01it'll let you know when that work is
  398. 14:02done, okay? But, here we go. We have a
  399. 14:04new fleet. This is our security fleet.
  400. 14:06Set up four coding agents, Cloud Code,
  401. 14:08Code X, Pi with Minimax and GLM. Create
  402. 14:11a fleet. List the top three security
  403. 14:13vulnerabilities you can find in this
  404. 14:15repository. So, this is a simple mock
  405. 14:17repository. This is a waste for these
  406. 14:18agents. It's not really going to do
  407. 14:19anything, but you can see here, this is
  408. 14:21a simple important idea of literally
  409. 14:24scaling your compute to scale your
  410. 14:25impact. Say you were looking for
  411. 14:27security vulnerabilities in your code
  412. 14:28base, you could spin up one agent and
  413. 14:30have sub agents under it run, or you
  414. 14:32could set up different agentic coding
  415. 14:34tools with their own unique advantages
  416. 14:36running different agents to run the
  417. 14:38exact same validation pattern, the exact
  418. 14:40same security checks across your code
  419. 14:43base, okay? This is the simplest,
  420. 14:45clearest example of scaling your compute
  421. 14:48to scale your impact. The big difference
  422. 14:49here with a tool like C Mux or T Mux is
  423. 14:52that this is fully visible, okay? So, we
  424. 14:55have Minimax and three giving a shot at
  425. 14:57this, GLM 5.2, and of course, the
  426. 14:59state-of-the-art models, GPT 5.5 and
  427. 15:02Opus 4.8. They're all applying their
  428. 15:05opinions, their perspective, their
  429. 15:07expertise, their specific model
  430. 15:08advantage against this problem of
  431. 15:11checking for security vulnerabilities, a
  432. 15:13big topic right now in the age of
  433. 15:15agents. One of the key pieces of this is
  434. 15:17now inside of our orchestrator, because
  435. 15:19remember, the way I'm looking at this
  436. 15:21tool is any point to be able to use my
  437. 15:24orchestrator to drive results in any one
  438. 15:26of my windows, any one of my workspaces,
  439. 15:29and then the individual panes. But, also
  440. 15:32have the ability to go into any
  441. 15:33individual agents and really just prompt
  442. 15:36out and dial into any details we need to
  443. 15:39on an agent level, okay? So, this is
  444. 15:42important. Want to be able to jump into
  445. 15:43the process at any point, understand
  446. 15:45what every agent is doing, who's got the
  447. 15:47advantage, who's running patterns we
  448. 15:48want to replicate, and who's doing
  449. 15:50stupid we don't want to do again,
  450. 15:52okay? And that's on a agent to coding
  451. 15:55tool level all the way down to, of
  452. 15:56course, the model level, and then
  453. 15:59further on down, right? Context model
  454. 16:00prompt tool, system prompt context. So,
  455. 16:03great. These are all done, and the
  456. 16:05orchestrator is reading it back out.
  457. 16:07This is now in idle mode because the
  458. 16:09orchestrator has read the response, it's
  459. 16:11read the surface, right? It knows that
  460. 16:14things are done. This is where we start
  461. 16:15getting out of what tmux can do, right?
  462. 16:18We're working on multiple problems,
  463. 16:19we're scaling our computer, scaling our
  464. 16:21impact, and we can see everything, and
  465. 16:23we can understand everything, okay?
  466. 16:25Fantastic. So, we are doing multi-agent
  467. 16:28delegation, but of course, one of the
  468. 16:30key things here is any agent can prompt
  469. 16:32any other agent. So, I'll just try to do
  470. 16:34something random here. Inside of this
  471. 16:36cloud code worker, I'll type tmux to
  472. 16:37activate the skill ping your other fleet
  473. 16:40co-workers. So, very powerful stuff
  474. 16:41here. It's going to read the screen of
  475. 16:43each surface. I've been seeing really,
  476. 16:44really great success with this
  477. 16:46three-tier architecture with my agents,
  478. 16:48right? You have a top-level
  479. 16:49orchestrator. You then have team leads,
  480. 16:51and then the leads have workers that
  481. 16:53actually do the work, okay? So, we're
  482. 16:54replicating traditional hierarchy
  483. 16:56structures without the true cons and the
  484. 16:59true problems with hierarchies, right?
  485. 17:01This is not a top-down structure. Any
  486. 17:03agent can prompt any agent. You can see
  487. 17:05that here thanks to this skill here.
  488. 17:07We're getting a nice simple prompt
  489. 17:09coming into every single agent from
  490. 17:11inside tmux, right? So, our agents can
  491. 17:14prompt our agents. This is a flat
  492. 17:15hierarchy even though there is one
  493. 17:17orchestrator is at the top, and so I
  494. 17:19like to put my team lead on the left as
  495. 17:20you see in a moment, but we can just
  496. 17:21drag and drop this down here, or we'll
  497. 17:23move it over here. And this very quickly
  498. 17:25kind of shows you the organizational
  499. 17:27structure that you can build. Lead here,
  500. 17:29workers here. And you can build any
  501. 17:31structure you want. The point is is that
  502. 17:32the communication channel is flat, all
  503. 17:34right? So, fantastic. What else can we
  504. 17:36do with this tool? Let's scale into
  505. 17:38workspaces. Let's really push what we
  506. 17:40can do with this. So, I'm going to copy
  507. 17:41this larger prompt here. I'm going to
  508. 17:42have agent do this. Here we're going to
  509. 17:43showcase like the importance of
  510. 17:45organization inside the workspace. Now,
  511. 17:47you can see here we're starting to
  512. 17:49already have a lot more organization
  513. 17:50than normal if we were just in a single
  514. 17:52terminal, or if we were using a single
  515. 17:53terminal with tabs. We're getting
  516. 17:54notification events, which are pretty
  517. 17:56pluggable. You can do a lot more with
  518. 17:58them than we are. But you can see here,
  519. 18:00imagine you're booting up multiple teams
  520. 18:02to solve multiple problems. We have
  521. 18:03gamma, beta, alpha. We can jump into
  522. 18:05these, and we can see our Let me pull up
  523. 18:07the orchestrator so we can see what's
  524. 18:08going on here. Right, our orchestrator
  525. 18:09getting work done, booting up sets of
  526. 18:12agents programmatically. Let's close our
  527. 18:14security fleet here. Okay, so we have
  528. 18:16gamma, we have beta, and we have alpha
  529. 18:18booted up. Okay, so you know, imagine
  530. 18:21any multi-agent orchestration set of
  531. 18:23teams you want. That's a key value
  532. 18:25proposition here. You have multi-agent
  533. 18:27coordination at a massive scale, right?
  534. 18:29At just an absolutely massive scale, and
  535. 18:31you're in control, and you have
  536. 18:33visibility into it. Okay, super super
  537. 18:35important. If you hold command, you can
  538. 18:36see all the hot keys for each workspace.
  539. 18:38This is clearly the unit that tmux sees
  540. 18:41as the most important to be navigating.
  541. 18:43It's at that workspace level. But of
  542. 18:44course, we can quickly move through all
  543. 18:46of our surfaces as well. Right? So,
  544. 18:48again, just expressing that idea here,
  545. 18:50you can scale agents across multiple
  546. 18:52workspaces as well.
  547. 18:58So, let's look at the scenario where you
  548. 19:01need to fix a bug right away. Say
  549. 19:03production's going down, your customers
  550. 19:05and your users are completely blocked.
  551. 19:07So, you're losing money by the second.
  552. 19:09Okay, so I'm going to hit new here just
  553. 19:11to reboot everything and then paste the
  554. 19:13send here. It's a longer prompt, but
  555. 19:15we're going to have agents race toward a
  556. 19:16solution. Okay, so I'm going to close
  557. 19:18all these windows here. Say there's a
  558. 19:19production issue and you need to resolve
  559. 19:22it yesterday. This is going to be a
  560. 19:23differentiating agentic engineering
  561. 19:26pattern that you can use. It's super
  562. 19:27simple. Throw more computer at the
  563. 19:29problem. Have your agents race toward a
  564. 19:31solution. We're going to do a needle in
  565. 19:32a haystack search. In reality, this will
  566. 19:34be a hot fix you'll need to deploy, but
  567. 19:37you can just throw a bunch of agents at
  568. 19:38a problem at the same time in parallel.
  569. 19:41You want the first available answer so
  570. 19:42you can deploy the fix back into
  571. 19:43production, okay? So, in this scenario,
  572. 19:46we're going to boot up an eight agent
  573. 19:47race to just race toward a solution. So,
  574. 19:50there we go. All the windows popping
  575. 19:52open here and we're going to deploy a
  576. 19:53variety of compute to get the job done.
  577. 19:56This is needle in a haystack, capture
  578. 19:58the flag, first agent to the goal post
  579. 20:00wins type of task, okay? And multi-agent
  580. 20:03orchestration lets you do this really,
  581. 20:05really well. Every contact model prompt,
  582. 20:07every agentic coding tool is going to
  583. 20:09have their unique advantages, strengths,
  584. 20:11and weaknesses. And so, when you need to
  585. 20:13deploy something quickly, when you have
  586. 20:14a hot fix you need to deploy, throwing
  587. 20:16different types of intelligence at the
  588. 20:18problem is going to get you the better
  589. 20:21result pretty much every single time if
  590. 20:23you're willing to, of course, pay for
  591. 20:25the compute. And so, you can imagine,
  592. 20:26you know, you have your red team eight
  593. 20:29agent race here, and then you might have
  594. 20:30another set of agents in a, you know,
  595. 20:33your infrastructure agents or your
  596. 20:34deploy agents here, and then you might
  597. 20:36have your review set of agents here to
  598. 20:39at scale quickly review the issue so
  599. 20:41that you can then hand it off to your
  600. 20:43infra team of agents, right? Your deploy
  601. 20:46agents. And now we have a bunch of
  602. 20:48compute thrown at the problem. We've got
  603. 20:50Opus, we've got Sonnet, and another
  604. 20:52advantage here, you can see a couple of
  605. 20:53my Pi agents didn't even fire. Looks
  606. 20:55like an environment variable setup
  607. 20:56problem. That's fine. My local agent, my
  608. 20:59local Quinn, is working. All the Codex
  609. 21:01and all the Sonnet models quickly found
  610. 21:03the solution. That's done. And now this
  611. 21:05issue can be reported and now we're
  612. 21:07waiting for that notification event for
  613. 21:10my orchestrator and needs input. There
  614. 21:12we go. Okay, so it finally triggered
  615. 21:13there and now our orchestrator should
  616. 21:15pick this up. Let's go ahead and see if
  617. 21:17it does pick it up cuz all the agents
  618. 21:19are complete. Maybe this is a good time
  619. 21:20for us to transition a little bit and
  620. 21:22talk about the pros and cons of this
  621. 21:24tool, right? And maybe my agents just
  622. 21:26don't understand the tool properly.
  623. 21:27That's fine. It could be a mistake on my
  624. 21:29part. When you're using tools like this,
  625. 21:30these new tools, tools that are just
  626. 21:32kind of appearing overnight and I know
  627. 21:34Cmux deserves more credit than that.
  628. 21:36This is a solid tool that's been around
  629. 21:37for a while. There's a whole wave of
  630. 21:39agentic tools coming and you're always
  631. 21:40going to want to compare that against
  632. 21:42tried and true technology. So, when I
  633. 21:44sit down to solve problems and learn
  634. 21:46with agents, I'm always comparing
  635. 21:48against what else exists. For a lot of
  636. 21:50the capability we've looked at here,
  637. 21:51Cmux can do the job. The thing is that
  638. 21:54it's not going to be as customizable and
  639. 21:56aesthetic and the developer experience,
  640. 21:59I think, with Cmux is a little harder to
  641. 22:01get right. That's what Cmux does really,
  642. 22:03really well. It's made for the modern
  643. 22:05era of building with agents
  644. 22:08programmatically on Mac devices. Okay?
  645. 22:11So, yeah, probably should have mentioned
  646. 22:12that earlier. If you're on Linux,
  647. 22:14Windows, WSL, you know, you're going to
  648. 22:15need to use a tool like Cmux. This is
  649. 22:18Mac only. The big problem with this is
  650. 22:19just maturity, right? These brand new
  651. 22:21tools have issues and it could be me,
  652. 22:24but you can see here, you know, in our
  653. 22:25red team response here, our
  654. 22:27orchestrator's done nothing. Check and
  655. 22:29understand why you stalled there, right?
  656. 22:31Because really we wanted to ping on the
  657. 22:33first completion of our tool, right?
  658. 22:36First completion of any window. Okay, so
  659. 22:38foreground 10 minute. Okay, very weird.
  660. 22:40So, we did get a notification event. It
  661. 22:42just seems like our agent didn't
  662. 22:44register it. This is one of the things I
  663. 22:46need to spend more time on to make sure
  664. 22:47I'm getting right and it's just one of
  665. 22:49the things that you'll have to
  666. 22:50understand when you're building and
  667. 22:52teaching your agents how to use the
  668. 22:53tool. Something to be improved there,
  669. 22:54but the high-level is still there. There
  670. 22:56are notification events you can plug
  671. 22:57your agents into to wait for responses
  672. 23:00from your agents.
  673. 23:06We're going to stand up eight agents
  674. 23:07across four workspaces, two agents in
  675. 23:09each, give them each a two-column
  676. 23:11layout. The left is the agent, and the
  677. 23:13right is going to be a browser. Now,
  678. 23:15this direction is fine. tmux is, you
  679. 23:17know, trying to grow as a product, so it
  680. 23:19has an app browsers. That's really cool.
  681. 23:21The real killer feature here is
  682. 23:23programmability. This is the most
  683. 23:25important thing. It's nice that it's
  684. 23:26lightweight, of course, open source is
  685. 23:28super important, but customizability is
  686. 23:30what comes next. And there's a whole
  687. 23:32slew of customization you can build out
  688. 23:35into your tmux application that we're
  689. 23:38going to gloss over because these are
  690. 23:40extra features. You can change the theme
  691. 23:42and feel, you can add custom action
  692. 23:43buttons. That's all well and good. The
  693. 23:46most important thing here, by far, is
  694. 23:48agentic access, right? This is a huge
  695. 23:51theme. This is one of the key pillars of
  696. 23:54agentic engineering, right? It's making
  697. 23:55sure that you have agentic access to
  698. 23:58every tool, to every service, to every
  699. 24:00product that you want to interact with
  700. 24:02at the speed of agents, not the speed of
  701. 24:04humans. I think we can just say that,
  702. 24:06right? In the digital world, eventually
  703. 24:08the physical world, too, we move very
  704. 24:10slowly now. And there are advantages to
  705. 24:13moving slowly. Coding is not our domain
  706. 24:15anymore. That is the domain of agents.
  707. 24:18Okay, but orchestrating intelligence is
  708. 24:20our domain. This is one of the five
  709. 24:21pillars of agentic engineering. We
  710. 24:23covered this in previous video. I'll
  711. 24:24link that below if you're interested.
  712. 24:26Here's the kind of high level of the
  713. 24:28five pillars I'm really, really focusing
  714. 24:30on right now over 2026, and agentic
  715. 24:33access is number five. Even your agents
  716. 24:36should have agentic access, right? You
  717. 24:37want that meta level of control. And
  718. 24:40this is all to raise the ceiling of your
  719. 24:42agentic engineering, not the floor of
  720. 24:45vibe coding. When these mythos class
  721. 24:46models come out, a lot of engineers are
  722. 24:48just going to sit, they're going to get
  723. 24:49lazy, they're going to stop thinking,
  724. 24:51and just hand the wheel to the agent. On
  725. 24:53the channel, we're not going to be doing
  726. 24:54that. If you agree with that ideology,
  727. 24:57like, follow, subscribe, all that good
  728. 24:58stuff. The kind of one-liner is, if a
  729. 25:00tool does not have programmatic access,
  730. 25:02I just completely ignore it now. I don't
  731. 25:04give it another second of my time, okay?
  732. 25:07Agentic access gives you the agentic
  733. 25:09speed. Let's see where our team is. FS,
  734. 25:12Delta, Gamma, Beta, Alpha team. Imagine
  735. 25:14these are, you know, the names of
  736. 25:16features, the names of bug fixes, the
  737. 25:18names of things you are actually
  738. 25:19building against. We have a nice browser
  739. 25:21on the side, and we have a two-agent
  740. 25:23team per workspace to work on that
  741. 25:26browser, okay? So, you get the idea
  742. 25:27here, right? We have a little custom
  743. 25:29theme in here to help us get back in the
  744. 25:32loop when we need to be in the loop to
  745. 25:34orchestrate our agents. So, again, you
  746. 25:36know, having visual identifiers improves
  747. 25:38your developer experience, lets you
  748. 25:39focus on what matters the most, and then
  749. 25:41you can just move on. The biggest risk
  750. 25:44with C mux is that this is a new,
  751. 25:46relatively fast-moving tool. I'm going
  752. 25:48to be using both of these tools side by
  753. 25:50side, not so much using Warp anymore,
  754. 25:52but C mux and T mux I'm going to be
  755. 25:54spending some time on. And that leads us
  756. 25:56to the kind of final problem. I need to
  757. 25:58be able to quickly launch agents for the
  758. 25:59thousandth time. So, let me show you
  759. 26:01really concretely how I'm using a tool
  760. 26:03like this. So,
  761. 26:08I have a just file inside of my code
  762. 26:11bases, and this lets me give a really
  763. 26:13quick one-tap command to boot up new
  764. 26:15agent teams, okay? So, I'll just type J
  765. 26:17fast CC. If I hit enter here, I need to
  766. 26:20pass in a feature. So, what's the focus
  767. 26:23of this agent team, okay? So, I'll type
  768. 26:25fast CC, and then we'll call this SSE.
  769. 26:28Let's assume we're adding server-sent
  770. 26:30events into our web server, okay? So,
  771. 26:32we'll hit enter there, and this is going
  772. 26:33to pretty much instantly boot up an
  773. 26:36agent team. And this is a unique agent
  774. 26:38team in the multi-agent orchestration
  775. 26:40pattern that I like. This is three-tier
  776. 26:43multi-agent orchestration, and it looks
  777. 26:44like this. The orchestrator here, team
  778. 26:46leads here. Every one of these is a team
  779. 26:48lead in my workspace, and so this
  780. 26:50specifically is the team lead. Right now
  781. 26:52I'm using a GLM 5.2 and then every team
  782. 26:55lead gets access to worker agents. Okay,
  783. 26:57so here's my plan agent, here's my
  784. 26:59theoretical build agent, here's the
  785. 27:01build front end, and here's the testing
  786. 27:03agent. Might seem complex to add one
  787. 27:06additional level of agent, but it helps
  788. 27:08a lot and I've needed a tool like C mux.
  789. 27:11T mux wasn't cutting it for the right
  790. 27:13organizational structure and so I'm
  791. 27:15picking up a tool like C mux to kind of
  792. 27:17help me solve this multi-agent
  793. 27:18orchestration problem. These sets of
  794. 27:20problems, it's starting agents, it's
  795. 27:22monitoring agents so you can improve
  796. 27:24them, and then it's being able to scale
  797. 27:26your orchestration to whatever level you
  798. 27:28need to. And so as mentioned, this is
  799. 27:30not top-down agent communication, right?
  800. 27:33Any agent can prompt any agent. I also
  801. 27:35have my specialized coms net pi agent
  802. 27:37coding extension, but C mux lets me push
  803. 27:40outside of the extension and have any
  804. 27:42agentic coding tool talk to any agentic
  805. 27:45coding tool thanks to the C mux skill.
  806. 27:47Bidirectional flat agent communication
  807. 27:49is super important while maintaining an
  808. 27:52orchestrator, a lead, and then a worker
  809. 27:55level setup. And I'll link the video
  810. 27:57where we go into multi-tiered agent
  811. 27:59orchestration. This isn't for everyone.
  812. 28:01A lot of engineers are going to look at
  813. 28:02this and say, "Why do I need this? It's
  814. 28:04slop. This isn't useful." That's fine.
  815. 28:06It just means it's not for you, okay? As
  816. 28:08I mentioned in the beginning, there's
  817. 28:09many ways to do this. You can use the
  818. 28:10Ralph to-do list. You can use the new
  819. 28:13loop engineering patterns and you can
  820. 28:15just use classic cloud code sub agent
  821. 28:16delegation. That's fine. Right? They
  822. 28:18have the {slash} workspaces, they have
  823. 28:20{slash} loop, they have {slash} goal,
  824. 28:21right? Use whatever works for you. My
  825. 28:24goal here is just to show you the
  826. 28:26optionality of what's available to you
  827. 28:28and to re-emphasize agentic access and
  828. 28:31full control over the primitives of
  829. 28:34agentic engineering, right? Context
  830. 28:36model prompt tool. Once you have an
  831. 28:37agent up and running, you can scale it,
  832. 28:39right? Now I have a team here that has,
  833. 28:42let's say these are each 1 million
  834. 28:43contexts each, specialized. That gives
  835. 28:46me 5 million tokens of context to work
  836. 28:48with, quite literally. Right? That's not
  837. 28:50an exaggeration. When you put together
  838. 28:51your agents in a way where they can all
  839. 28:53communicate, you're getting a bigger
  840. 28:55team of intelligence to work on your
  841. 28:57behalf. Okay? So, um you know, what's
  842. 28:59the verdict? I like Cmux. I'm going to
  843. 29:01be using this tool. It stands up to Tmux
  844. 29:03pretty well. I'm going to be keeping my
  845. 29:05eye on any glitches or bugs with this
  846. 29:08tool, but so far I'm a big fan. It's the
  847. 29:11scriptable service API, the agentic
  848. 29:13access, that really matters with this
  849. 29:15tool. There are a bunch of other
  850. 29:16features here I didn't mention. I'm sure
  851. 29:18some Cmux hardcore users are going to be
  852. 29:21flaming me for this being so relatively
  853. 29:22simple, but the key here is it's
  854. 29:25programmable. Right? That's the most
  855. 29:26important thing by far. Agentic access
  856. 29:29is a requirement
  857. 29:31for agentic engineering. And this is
  858. 29:33going to compound every single thing you
  859. 29:36set up here from this five-item list is
  860. 29:39going to give you a compounding
  861. 29:40advantage for agentic engineering. Once
  862. 29:42again, we want to be moving up with the
  863. 29:44ceiling of agentic engineering, not the
  864. 29:46floor of vibe coding. All these ideas
  865. 29:49are big ideas we talk about and really
  866. 29:51break down in tactical agentic coding.
  867. 29:54I'll leave a link in the description for
  868. 29:56that if you're interested in paying a
  869. 29:57little bit to get a massive advantage.
  870. 29:59If you're not though, that's totally
  871. 30:01fine. I'll leave my entire guide code
  872. 30:02base here to really break down Cmux
  873. 30:05capabilities. If you made it to the end
  874. 30:06and you want to see more agentic
  875. 30:07engineering content like this, drop a
  876. 30:09like, share the video with a friend,
  877. 30:11with a coworker, and then comment down
  878. 30:12below, how are you thinking about
  879. 30:14multi-agent orchestration? Do you have
  880. 30:16any unique experiments or tools you're
  881. 30:18running to better scale your computer,
  882. 30:20scale your impact? You know where to
  883. 30:22find me every single Monday. Stay
  884. 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.