# SEE CMUX SOLVE Multi-Agent Orchestration (Claude Code and Pi Agent)
<!--
ref: @content/youtube/indy-dev-dan/2026-07-06-cmux-multi-agent-orchestration
version: 3
updated_at: 2026-10-31T18:25:25.787Z
-->

From Indy Dev Dan, 2026-07-06: Dan's orchestration argument rests on one requirement: if a tool has no programmatic access, it cannot operate at agent speed and he ignores it entirely.

*Synthesized from IndyDevDan on Indy Dev Dan, 2026-07-06.*

IndyDevDan, a 15-plus-year engineer who has built with agents since it was first possible, evaluates the cmux terminal multiplexer against three specific multi-agent orchestration problems, learning the tool on camera with agents.

## Core Thesis

Dan's orchestration argument rests on one requirement: if a tool has no programmatic access, it cannot operate at agent speed and he ignores it entirely. He evaluates cmux not as a shiny tool but against three named problems — no programmatic access to running agents, no visibility to improve them, and the cost of booting an agent team by hand for the thousandth time — and concludes that agentic access, not aesthetics, is what makes the tool worth adopting alongside tmux.

## Key Insights

- Dan opens by disagreeing publicly with the claim (he attributes it to Boris and Peter) that loop engineering is the future and prompt engineering is already dead. His counter-list of viable patterns includes the Ralph-style to-do list, classical sub-agent delegation, and his own preference: three-tier orchestration where an orchestrator prompts leads and leads prompt specialized worker agents.
- He names a structural incentive to be skeptical of: AI labs benefit from you token-maxing, while a dozen distinct agentic patterns can ship the same work.
- Problem framing before tool selection. He states he does not pick up a tool until he has the problem, and that his first move when learning any tool is having a state-of-the-art agent build a comprehensive HTML guide with incremental tier-based explanations tailored to his use case — learning, in his view, is the killer use case for agents, ahead of coding.
- The cmux mental model he teaches: window (control-shift-N), workspace (command-N), and pane, with command-T opening a new surface inside an existing pane. He puts agent teams at the workspace level, the team lead in the left pane, and workers to the right, so he can watch at the altitude he needs without losing low-level visibility.
- The control loop is four operations: send keys, read the screen after the action completes, open surfaces, close surfaces — repeat. On top of that, cmux exposes lifecycle events you can push and pull, so an orchestrator agent can subscribe to agent lifecycle rather than poll.
- His visibility argument is the ideological core: a sub-agent black box is a fine place to start and a terrible place to finish, because a fleet you never watch discards the mistakes and successes you would otherwise re-emphasize or cut. He ties reinforcement back to the "core four" primitives he uses throughout — context, model, prompt, tools (plus system prompt).
- Demonstrated escalation, simple to complex: an agent creating 60 throwaway files in a temp workspace and reading back the ls; a 2x2 grid with htop, a per-second date, and a tick each labeled by workspace name; renaming, flashing, and closing panes programmatically; then Claude Code and the Pi coding agent side by side in one workspace.
- The security fleet demo runs four coding agents at once — Claude Code, Codex, and two Pi agents on MiniMax M3 and GLM 5.2 — against the same prompt, listing the top three security vulnerabilities in a repository. State-of-the-art models in the mix include GPT 5.5 and Opus 4.8, which he calls one of the best orchestrator models available. The point is the same validation pattern run by different intelligences, fully visible.
- Communication is flat, not top-down. Using a cmux skill he can, from inside one Claude Code worker, have it read every other surface and ping its fleet co-workers — so any agent can prompt any agent while the orchestrator/lead/worker hierarchy still holds for organization.
- The production hotfix pattern: an eight-agent race, needle-in-a-haystack style, where a variety of compute is thrown at the same problem and the first correct answer ships. In the demo the Codex and Sonnet agents found the solution first, a local Qwen agent worked, and a couple of Pi agents failed to fire on an environment variable problem — which he shows rather than edits out.
- He also shows the failure honestly: the orchestrator did not register the completion notification and stalled, when he wanted it to trigger on first completion of any window. He attributes it to immaturity in a fast-moving tool or to his own teaching of the tool, and flags it as work to be done rather than glossing it.
- Scaling layout: eight agents across four workspaces, two per workspace, each in a two-column layout with the agent on the left and a browser on the right, with workspaces named alpha, beta, gamma, delta as stand-ins for features or bug fixes. Holding command reveals workspace hotkeys, confirming the workspace is the unit cmux treats as primary.
- Instant team launch is solved with a `just` recipe committed in the codebase: `just fast-cc <feature>` (his example feature is SSE for server-sent events) boots the whole three-tier team instantly — orchestrator on top, team leads per workspace (his lead runs GLM 5.2), and each lead with plan, build, build-front-end, and test workers.
- The context arithmetic he draws out: five specialized agents at one million context each is five million tokens of working context, which he states plainly is not an exaggeration when the agents can communicate.
- Tool verdict and caveats: cmux is Mac-only, so Linux, Windows, and WSL users need tmux; its risk is immaturity as a fast-moving tool; and its real differentiator is the scriptable service API rather than themes or custom action buttons. He plans to run cmux and tmux side by side and has moved off Warp.
- Agentic access is pillar five of the five pillars of agentic engineering he is focused on across 2026, and he extends it recursively: even your agents should have agentic access, the meta level of control.

## Actionable Takeaways

1. Filter tools by one criterion first — does it expose programmatic access? Dan drops any tool that fails this, since human-speed interaction caps the whole system.
2. Learn a new tool by having a state-of-the-art agent generate a tiered HTML guide targeted at your specific use case, then work the tool from simplest demo upward.
3. Organize agents at the workspace level, one workspace per team, lead pane on the left and workers to the right, so you can supervise at the altitude you need without losing depth.
4. Drive multiplexer panes with the four-op loop — send keys, read screen, open surface, close surface — and hook lifecycle notification events so the orchestrator reacts instead of polling.
5. Commit a `just` recipe (Dan's is `just fast-cc <feature>`) that boots your entire three-tier team in one command; optimize for the thousandth launch, not the first.
6. For hotfixes, run a race: eight agents on different tools and models against the same needle-in-a-haystack problem, ship the first correct answer, and accept the compute cost.
7. For audits like security review, run the same prompt across heterogeneous agents (Claude Code, Codex, Pi with MiniMax M3 and GLM 5.2) so different model strengths surface different findings.
8. Keep flat agent-to-agent messaging via a multiplexer skill so any worker can ping any other, rather than routing everything through the orchestrator.
9. If you are not on macOS, use tmux — cmux is Mac-only — and expect to manage rough edges either way.

## Notable Quotes

> "An agent you can't monitor is an agent you can't improve." — IndyDevDan

> "If a tool does not have programmatic access, I just completely ignore it now." — IndyDevDan

> "We want to rise with the ceiling of agentic engineering, not the floor of vibe coding." — IndyDevDan

> "Coding is not our domain anymore. That is the domain of agents. But orchestrating intelligence is our domain." — IndyDevDan

> "Prompting in a black box in sub-agents is a great place to start, terrible place to finish." — IndyDevDan

> "Scale your compute to scale your impact." — IndyDevDan

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*