Building an Operating System with 1,000+ AI Agents: How Multi-Agent Collaboration Is Evolving Software Development

    This article analyzes an experiment in which over a thousand specialized AI agents worked for eight days to build a bootable operating system prototype from an empty directory. It explains why fine-grained task decomposition combined with automated verification allows agent count to scale output, outlines what multi-agent systems do well and where they struggle, and breaks down five key mechanisms for stability: task decomposition, layered context, verification loops, conflict isolation, and cost governance. It also covers building a similar workflow on general cloud infrastructure, along with the cost, quality, and organizational implications for engineering teams.

    1. What a “From Empty Directory to Bootable System” Experiment Reveals

    A recent experiment has drawn wide attention in the industry: a software engineering system started from an empty directory, orchestrated more than a thousand specialized agents working continuously for eight days, and ultimately produced a prototype operating system that boots on an ordinary laptop, complete with basic drivers, file storage, window management, and an installer.

    The value of this kind of experiment is not about replacing operating system engineers. Rather, it validates an engineering problem at a relatively large scale for the first time: when tasks can be decomposed into sufficiently fine-grained units and every step has an automatically executable verification method, the number of agents can translate into effective output in a nearly linear fashion across a fairly wide range.

    In traditional software development, the relationship between headcount and output has long been non-linear, because communication overhead, context synchronization costs, and conflict resolution costs rise quickly as teams grow. The reason multi-agent experiments can break through this ceiling is that they replace ambiguous human-to-human communication with standardized task interfaces and machine-readable verification signals.

    2. Capability Boundaries: What These Systems Do Well and What They Don’t

    Three capability boundaries can be abstracted from the public description, and developers should focus on them when deciding whether to adopt such a system.

    First, they excel at tasks with clear goals and automatic pass/fail criteria. Examples include implementing a feature module that conforms to a specification, fixing a reproducible bug, or migrating code from one interface style to another. These tasks share a common trait: whether they are complete can be determined by a program.

    Second, they excel at long-running, rollback-friendly exploratory tasks. Eight days of continuous operation means the system must have checkpoints, version rollback, and failure isolation; otherwise, errors amplify along the call chain.

    Third, they struggle with vaguely defined requirements that lack acceptance criteria. When “done” cannot be judged automatically, multi-agent systems simply produce divergent artifacts faster, and integration costs rise instead.

    For this reason, the layered strategy widely recommended in the industry is to assign complex, open-ended, exploratory technical challenges to high-capability models and multi-agent orchestration, while routing high-frequency tasks such as routine coding, code completion, and documentation writing to faster, lower-cost general-purpose models. A routing layer directs requests by task type rather than sending every request through the same expensive pipeline.

    3. Architecture Breakdown: Five Key Mechanisms for Stable Multi-Agent Systems

    3.1 Task Decomposition and Dependency Orchestration

    The system typically starts with a planning role that breaks the overall goal into a directed acyclic graph, then schedules work in batches based on dependencies. Granularity control is the core challenge: tasks that are too coarse overload a single agent’s context, while tasks that are too fine make scheduling and integration overhead exceed the benefits. A reliable practice is to make each task correspond to “one independently verifiable artifact.”

    3.2 Layered Context and Memory

    Effective layering usually includes three levels: global specifications (coding style, interface conventions, directory structure), module-level design notes, and local context for the current task. Compressing long-lived information into specification files significantly reduces redundant repeated transmission.

    3.3 Verification Loops First

    Every artifact should be bound to automated verification: compilation, static analysis, unit tests, and integration tests. Agent output without a verification step should not be merged into the main branch. This is the most effective way to control error accumulation.

    3.4 Conflict Isolation and Integration Strategy

    Parallel writes to the same codebase inevitably create conflicts. Common solutions include dividing write permissions by directory or module, using independent working copies, having an integration role merge changes centrally, and triggering full verification after each merge.

    3.5 Cost and Quota Governance

    Long-running processes must set budget caps, per-task retry limits, and human intervention points. Consumption can be metered separately for input and output, and an accelerated lane can be prepared for high-throughput scenarios—typically a mode with a higher unit price but faster generation, suitable for interactive debugging rather than large-scale batch processing.

    A sample task description structure is shown below (pseudocode, expressing organization only):

    1. task:
    2. id: "fs-write-read"
    3. goal: "Implement file write and read that satisfy the agreed interface contract"
    4. context_refs: ["global_spec", "module_design"]
    5. acceptance:
    6. - "Compilation passes"
    7. - "All unit tests pass"
    8. write_scope: "src/fs/**"
    9. budget: { max_retries: 3 }

    4. Engineering Implementation: Building a Controllable Workflow on the Cloud

    To reproduce similar capabilities in your own environment, it is advisable to build a five-layer structure on general cloud capabilities, avoiding lock-in to any specific product:

    • Compute layer: A container platform hosts agent runtimes and compilation/testing tasks, scaling elastically by task.
    • Storage layer: Object storage holds checkpoints and artifact archives, while code hosting preserves version history.
    • Messaging layer: A message queue handles task distribution and status reporting, enabling peak shaving and retries.
    • Observability layer: Logging and monitoring/alerting services track success rate, latency, token consumption, and failure clustering.
    • Governance layer: A unified gateway handles model routing, quota control, and sensitive information filtering.

    Observability is the most commonly underestimated. Without metrics aggregated by task, it is impossible to tell whether a problem lies in planning, generation, or verification, and tuning degrades into blind trial and error.

    5. Cost, Quality, and Organizational Impact

    The cost structure has three components: model invocation fees, compute for verification and integration, and human review time. In practice, the share of verification is often underestimated, but it determines the rework rate and is therefore the dominant variable in total cost.

    At the organizational level, the more notable shift is the migration of role focus: engineers move from “writing implementations” to “writing specifications, writing verification, making architecture decisions, and judging risk.” This further amplifies the importance of code review, interface design, and test system development.

    6. Conclusion and Actionable Recommendations

    Building a system with over a thousand agents in eight days essentially validates the engineering hypothesis of “verification-driven scaling.” Four recommendations for developers: start with a pilot on medium-sized tasks that can be automatically accepted; write specifications and acceptance criteria as machine-readable files; establish checkpoints and failure isolation; and use a unified gateway for model routing and budget control. Baidu AI Cloud can support building such workflows with general capabilities in containers, storage, messaging, and observability, but the specific approach should be determined after evaluating your own task characteristics and compliance requirements.