Wink Pings

A 500K-View Multi-Agent Demo, but Erwin Says It’s Just a Toy

In Part 2, Erwin unpacks the productionization problems of multi-agent orchestration: ACP-driven execution, worktree isolation, hybrid workflows, and an outer sandbox. The demo runs, but it’s still several layers of dirty work away from being usable.

After Erwin’s Part 1 passed 500K views, he opens Part 2 with a bucket of cold water: simply wiring the basic modules together still leaves you with a demo toy. The hard part of a multi-agent orchestrator isn’t getting it to run the first time; it’s how to drive, isolate, approve, and roll back when coding agents from different vendors enter the same repository at the same time. The original article is here.

First, clarify the direction. MCP has the orchestration tool act as a server, exposing collaboration capabilities for models to call—an outward-facing direction. ACP has the orchestration tool act as a client to drive the underlying harness, taking over the session flow and permission callbacks—a downward-facing direction. Erwin divides the practice of driving harnesses into three stages: headless CLI, native SDK, and ACP. CLI is simple, but a one-way pipeline clogs when it hits dynamic input and blocking approvals. SDK can be bidirectional, but every vendor has a different interface; with five or six agents, you have to maintain five or six adapters. ACP aims to become the LSP of coding agents, wrapping file IO, terminal execution, and permission requests into a unified protocol. Reality isn’t that tidy: mature tools let Claude Code and Codex use private protocols to preserve functionality, while other harnesses use ACP to save on maintenance.

Once multiple agents run concurrently, the first wall is the same repository. Isolation comes in three layers, from narrow to broad: directory/file locks, git worktree, and worktree inside Docker. File locks are simple to implement but destroy parallelism and still collide in the Git staging area and build artifacts. Worktree isolates source code but doesn’t handle ports, global caches, or local credentials. Containers go further by separating ports and environment variables too, at a higher memory cost. In the comments, @damir_maham mentions that two agents fixing package-lock.json in parallel is the new merge conflict. It’s funny—and accurate.

Logical conflicts don’t disappear because of containers. A backend agent changes a response field on one branch, while a frontend agent writes calls against the old field on another branch; each side looks clean on its own, but the merge explodes. Erwin’s judgment is: don’t build complex machinery to catch every logical conflict—borrow the old methods of human teams. Contract-first: before dispatching parallel tasks, lock the shared interfaces and type files, and make downstream consumers read-only. Directory ownership: give each worker a whitelist of writable paths, and when it touches shared files like package.json, stop it and hand it to the coordinator. Merge queue: workers don’t merge into main directly; when done, they enter a queue to be rebased one by one and run through CI, with conflict context sent back to the corresponding worker to fix.

The degree of automation is another system design question. Lock everything down, and the agent won’t adapt when something unexpected happens; open everything up, and it skips standards, forgets reviews, and two agents loop around each other. Mainstream tools fall into three camps: deterministic DAG orchestration, such as LangGraph and Microsoft Conductor; hybrid orchestration, where an outer state machine locks stages and hard gates while nodes are handed to a native harness, such as Orca’s DAG scheduling and T3 Code’s workflows; and high-autonomy soft guidance, using prompts and skills to teach the coordinator how to divide work, such as Claude Code’s Agent Teams and the collaboration Skills in Paseo. The principle is clear: dependencies, quality gates, and cost ceilings go to deterministic code; execution freedom stays with the model.

Why still build an outer sandbox? Flagship harnesses have OS-level sandboxes, but with multiple harnesses on a real project, that isn’t enough. Sandbox maturity varies; the weakest open-source CLIs can punch through the security gate. Native sandboxes only protect the host machine and don’t manage agents competing for shared caches and local resources. Builders need read/write, reviewers should only read—permissions can’t be one-size-fits-all. An outer sandbox does three things: externalize credentials—API keys, Git tokens, and cloud secrets go in the sandbox or proxy layer, with outbound requests injected according to policy; mount directories, IO permissions, and tools by role; and intercept and unify approval requests bubbling up from each harness into the orchestrator’s own approval UI. Using the OS and container layer as the boundary is far more reliable than begging the model in a prompt not to change code. Erwin’s original article has a smiley face after this sentence.

A lightweight in-house build doesn’t need everything on day one. Getting ACP-driven execution, worktree isolation, and hybrid workflow gates running smoothly already covers most everyday engineering; add the outer sandbox and unified approvals as team size and automation depth grow. In the comments, @EmanuelCastillo says this is exactly where the gap shows up in AI engineer interviews: many people can build a demo, but few can explain retries, eval, and production failures of agents. @Denys puts it more bluntly: running a demo once is easy; the boring engineering SOPs—retries, clear handoffs, timeouts—are what keep it alive. Erwin also admits in his reply that, in most cases, agent problems are just a new version of database and distributed-systems problems.

Demos can be handed to AI to write, but architectural trade-offs still need humans to think them through. Original article: How to Build a Multi-Agent Orchestrator from Scratch (Part 2). Part 1 link: https://x.com/ErwinWu000/status/2127418399672463751

发布时间: 2026-12-03 03:26