Multi-Agent Orchestration: Building an Operating System from Scratch

    This article examines how frontier LLMs are shifting from single-turn question-and-answer tools to long-horizon orchestrators. Using an extreme case—over a thousand sub-agents delivering a bootable operating system in about eight days—it shows that the real value lies in orchestration, not raw model capability. It walks through a minimal local agent framework (goal/acceptance layer, task graph and queue, execution sandbox, observability), model-tier routing for cost control, and how the approach extends to hardware and 3D content. It closes with the key risks (amplified hallucination, runaway cost, permission exposure, reproducibility) and practical adoption advice.

    Beyond Benchmark Scores: A Shift in Usage Paradigm

    Over the past two years, most teams have treated large models as a “stronger search engine”: ask a question, get an answer, and information is acquired in a single round trip. But once models gained long-horizon planning and tool-calling abilities, this paradigm began to look inefficient—the real time sink is not “thinking through one step,” but organizing hundreds of steps into a deliverable pipeline.

    Public benchmarks (general reasoning, code, and math evaluations) reflect the upper bound of single-step capability, yet they struggle to capture three things: whether task decomposition is sound, whether self-repair after failure is effective, and whether the cost of long-running jobs stays controllable. So the value of a frontier model should be judged against real engineering tasks.

    The Extreme Case: A Thousand-plus Sub-Agents, a Bootable System in Eight Days

    Building an operating system is a notoriously hard engineering problem: kernel scheduling, memory management, hardware drivers, file systems, and the user interface are tightly coupled, and a single mistake anywhere can leave the machine unable to boot. Under traditional methods, even a mature team needs years of iteration.

    An engineer at a cloud provider ran the following experiment: provide an empty folder and describe only the goal—build an operating system prototype. Instead of immediately producing scattered scripts, the model first stepped into the role of “chief architect”:

    1. Task decomposition: split the system into modules—kernel, memory, process scheduling, block devices and file system, network stack, driver layer, window system, and login interface—and draw a dependency graph.
    2. Concurrent dispatch: launch more than a thousand sub-agents, each claiming fine-grained tasks and running continuously day and night for about eight days.
    3. Verification loop: after each sub-agent produces code, it runs tests itself; a review agent then evaluates the submission, and only branches that pass verification are allowed to merge into the trunk.
    4. Conflict convergence: the architecture layer owns interface contracts and merge ordering to prevent interface drift from parallel development.

    The final artifact booted on a physical laptop and included a custom kernel, persistent file storage, disk and network drivers, and a window system with a login interface. The key takeaway is not “the model can write a kernel,” but that long-horizon, tightly coupled engineering can be reliably converged through an orchestration mechanism.

    Bringing the Method into Your Own Engineering: Designing a Local Agent Framework

    To reproduce similar results, the focus belongs on the orchestration layer rather than the model itself. A minimal viable framework typically has four kinds of components:

    • Goal and acceptance layer: turn vague requirements into decidable acceptance conditions (it boots, it can read and write files, it passes a given set of test cases).
    • Task graph and queue: express dependencies as a directed acyclic graph, decouple dispatch from execution with a message queue, and persist state and artifacts to object storage so runs are resumable after interruption.
    • Execution and sandbox layer: a container platform provides isolated environments; sub-agents can only change code within their own branch and are forbidden from accessing the trunk or secrets beyond their scope.
    • Observability layer: logging and monitoring/alerting record every call, failure reason, and resource consumption, making it easy to locate “which step is stuck.”

    Illustrative pseudocode:

    1. plan = architect.analyze(goal, acceptance_criteria)
    2. dag = plan.task_graph # nodes carry dependencies, acceptance scripts, budget
    3. for node in dag.ready_nodes():
    4. worker = route(node) # select model by difficulty tier
    5. patch = worker.run(node, sandbox=container)
    6. if verify(patch, node.acceptance):
    7. review_agent.review(patch) -> merge_to_trunk(patch)
    8. else:
    9. requeue(node, feedback=verify.log) # retry with failure context

    Model-tier routing is the core of cost control: hand mechanical, templated work to faster, cheaper lightweight models, and reserve architectural decisions and hard debugging for the flagship model.

    1. if node.complexity == LOW and node.risk == LOW:
    2. return light_model
    3. return flagship_model

    From Software to Hardware: A World with a Much Lower Fault Tolerance

    Software still has room for rollback—a bad commit can be reverted. Hardware is nearly one-shot: a PCB routing error or improper power sequencing can render the whole device dead on arrival. So when applying models to physical product design, you must add steps that software scenarios don’t need:

    • Constraints up front: write electrical rules, manufacturability constraints, and interface standards as machine-checkable items.
    • Simulation first: complete signal-integrity, thermal, and power simulations before fabrication.
    • Small-step prototyping: validate the core chain with a minimum viable prototype, then expand gradually.

    In the experiment, from a single text description the model produced design proposals for several products, including a home voice assistant and a hands-free calling device—showing that the “text-to-engineering-artifact” pipeline is coming together, though its maturity still depends on how complete the verification toolchain is.

    3D and Interactive Content: Another Kind of Structured-Generation Test

    The same capability shows up in 3D content production: one developer generated an interactive 3D typewriter from a single sentence, where the model had to handle mesh topology, lighting and materials, web interaction, and the mechanical logic of “keys moving in sync with input”; another case generated more than 450 3D scenes interconnected by portals from a single prompt. The difficulty in these tasks lies in cross-modal consistency: geometry, physics, and interaction state must be self-consistent, not merely visually similar.

    Risks and Boundaries

    • Amplified hallucination: errors spread along the merge chain, so mandatory test and review gates are essential.
    • Runaway cost: without budget caps and tiered routing, thousand-scale agents can consume resources an order of magnitude higher.
    • Permission risk: agents that can modify code should have no production credentials by default, and artifacts should require human sign-off before release.
    • Reproducibility: fix randomness, pin dependency versions, and retain complete call traces.

    Adoption Recommendations

    1. Start with low-risk tasks that can be automatically verified (internal tools, test completion, documentation generation).
    2. Build the orchestration and observability foundation first, then push up the model capability ceiling.
    3. Treat acceptance scripts as first-class citizens—they are the safety belt for long-running jobs.
    4. Keep the human-machine division clear: the model handles breadth and speed; humans own goal definition and final responsibility.

    The conclusion is clear: the real increment of frontier models is “taking the role of commander-in-chief.” The developer’s new homework is to design the architecture, define acceptance, and build the framework so that thousands of execution units keep converging within controllable boundaries.