Multi-Agent Software Development: From Code Generation to System Delivery
This article examines multi-agent collaboration in software R&D, moving beyond code generation toward system delivery. It argues that agent count is an input metric while delivery quality is the outcome, and uses operating system development to show why cross-module semantics, verification, and integration governance matter. It outlines a planning-execution-verification-integration architecture, contract-based task decomposition, layered validation, cost and performance measurement, security boundaries for long-running autonomy, and a pilot adoption path. Readers gain a practical framework for judging whether multi-agent development can produce repeatable builds, independently acceptable work items, diagnosable failures, and maintainable engineering outcomes.
1. The R&D Paradigm Is Changing, but System Delivery Is Not Just About Scale
The evolution of intelligent programming is changing how software R&D is organized. Early applications focused on code completion, function generation, and error explanation. Further development has enabled agents to read engineering context, run builds and tests, fix defects based on feedback, and continue tasks within a defined scope.
When multiple agents are organized to work on the same engineering project, the question is no longer whether a correct piece of code can be generated. The question becomes whether a consistent, verifiable, and maintainable system can be delivered under shared constraints.
The original material referenced a large-scale experiment on multi-agent collaborative development of an operating system. However, the model names, participant scale, development duration, billing, and performance information lack verifiable evidence and should not be treated as confirmed facts. The more valuable discussion is to extract the general technical issues behind such experiments: if R&D work is carried out by many agents, which parts can be parallelized, which parts must be centrally governed, and how can the reliability of the final result be demonstrated?
A basic judgment is needed here: the number of agents is an input metric; delivery quality is the outcome metric. More execution units may increase local development speed, but they may also increase duplicated work, interface conflicts, and integration rework. Whether R&D efficiency improves depends on the collaboration mechanism, not on concurrency scale alone.
2. Why an Operating System Is a High-Difficulty Collaboration Task
Operating system development includes multiple interdependent subsystems, such as boot and initialization, memory management, task scheduling, device access, file storage, and user interaction. Different systems have different design goals and implementation scopes, but they share common characteristics: many low-level constraints, a large failure propagation range, and high verification difficulty.
Take file storage as an example. Implementing read and write operations is only the first step. The project also needs to define the directory structure, metadata updates, state consistency after abnormal interruption, and error handling when device access fails. If upper-layer programs assume that a successful write means data has been persisted, while the lower-layer implementation only updates an in-memory buffer, an individual module may pass tests while the overall system still has a data-loss risk.
Similar problems can appear between window management and input events, drivers and memory access, and scheduling and synchronization mechanisms. Multi-agent systems can generate these modules separately, but that does not automatically guarantee semantic consistency between them.
Therefore, “it can boot” only means the system has reached an observable operating state. It does not mean the system has complete stability, security, or compatibility. When evaluating results, it is necessary to distinguish:
- Boot demonstration: initialization can complete and basic output or interaction can be shown.
- Functional prototype: a clearly limited core usage flow can be executed.
- Engineering deliverable: repeatable builds, automated verification, fault localization, and maintenance mechanisms are available.
- Production-grade system: reliability, security, compatibility, and operational requirements are met for a specific environment.
These levels cannot substitute for one another, and the acceptance scope must be clarified before R&D begins.
3. Multi-Agent Architecture: Design Collaboration Rules Before Adding Execution Units
Multi-agent R&D can adopt a separation of responsibilities across planning, execution, verification, and integration, but no single organizational structure should be treated as a fixed answer for every project.
3.1 The Planning Layer Defines Scope and Dependencies
The planning layer first determines the goal: which hardware environments the system should support, which user flows it should complete, which constraints are allowed, and what acceptance evidence will be used. It then decomposes the goal into work items with clear inputs and outputs, and establishes dependencies.
A good task description contains at least six elements: objective, input materials, allowed modification scope, interface constraints, acceptance method, and failure-handling approach. For example, instead of asking an agent to “improve the file system,” it is better to specify “implement directory enumeration on top of the existing storage abstraction, preserve the existing error-return conventions, and add tests for empty directories and corrupted metadata scenarios.”
The clearer the task, the less the execution stage needs to guess.
3.2 The Execution Layer Implements Within a Limited Scope
Execution agents should operate in isolated workspaces to prevent multiple execution units from directly overwriting the same set of files. Each change should record the associated task, modification content, test results, and known limitations.
For modules with dense interfaces and shared state, it is appropriate to reduce concurrency and strengthen centralized review. For work with clear boundaries and independent verification, such as supplementing documentation, constructing test data, or implementing independent parsing logic, parallel processing is more suitable.
3.3 The Verification Layer Looks for Counterevidence
Verification cannot simply ask another agent to read the implementation and express approval. A more effective approach is to have the verification stage independently design checks based on requirements and interface contracts, looking for evidence that the implementation does not satisfy the constraints.
Even when implementers and verifiers are separated, it does not mean errors will necessarily be found, because they may share similar misunderstandings. Therefore, evidence from different sources is also needed, including build results, automated tests, runtime logs, and manual review.
3.4 The Integration Layer Controls System Consistency
The integration stage should check public interface changes, dependencies, build configuration, and full test results. For high-risk code such as boot, memory access, and permission control, it should not be automatically merged merely because local tests pass.
Clear integration rules are often more important than adding more execution agents. Parallel development without rules will only produce code that is harder to integrate, faster.
4. Task Decomposition: Contracts Matter More Than Granularity
If tasks are too large, objectives tend to drift. If tasks are too small, scheduling, context transfer, and review costs increase. A reasonable granularity should satisfy two conditions at the same time: the task can be completed relatively independently and accepted relatively independently.
Each shared interface should clearly define data structures, input validity, error semantics, resource ownership, concurrency conditions, and compatibility boundaries. For example, should the caller or the callee release a buffer? Is an object still valid after an operation fails? Can the interface be called in a concurrent environment? These questions require consistent agreements.
When an interface changes, dependent modules must be evaluated at the same time, rather than having each agent “fix” the same issue separately within its own task. Otherwise, local implementations may be compatible with each other while the global implementation remains inconsistent.
In addition, the project needs to maintain a trusted state record, including design decisions, interface definitions, completed tasks, unresolved defects, and verification results. Chat records can provide discussion context, but they are not suitable as the only source of engineering truth. Confirmed conclusions should be captured in version-controlled documents and code.
5. Build a Layered Validation Loop So Progress Is Backed by Evidence
Verification of complex systems should proceed in layers based on cost and risk.
The first layer is basic checks, including syntax, types, dependency integrity, static rules, and build verification. These checks provide fast feedback and are suitable for execution after every change, but they can only eliminate some problems.
The second layer is module testing, focusing on normal inputs, boundary inputs, error handling, and resource release. For stateful modules, it is also necessary to verify state changes after multiple operations, not just the return value of a single call.
The third layer is integration testing, which checks behavior after modules are combined. For example, can a device access failure be correctly propagated to file operations? Can an input event reach the application through the complete path? Does the module initialization order satisfy dependency constraints?
The fourth layer is end-to-end testing, verifying the complete flow from build artifact to boot, interaction, and exit. When the test environment differs from the target environment, its coverage must be clarified, and a pass result in one environment cannot be directly extrapolated to all environments.
The fifth layer is fault injection and continuous operation testing, including scenarios such as insufficient storage space, corrupted input data, abnormal device responses, and task interruption. The purpose is not only to find crashes, but also to determine whether the system can retain diagnostic information, maintain a reasonable state, and execute recovery procedures.
After a defect is fixed, a regression test that can reproduce the problem should be added. Otherwise, the same issue may reappear in later changes, creating a cycle of repeated fixes without real quality improvement.
6. Performance and Cost: Optimize Each Accepted Work Item, Not Generation Speed
The total cost of agent-based R&D is not limited to model invocation fees. It also includes execution environments, build and test costs, task retries, manual review, and integration rework. Faster generation does not necessarily mean delivery time is shortened by the same proportion.
If the main waiting time occurs in test environment queues, shared module conflicts, or manual approval, further increasing generation speed may only make the review backlog grow faster. Conversely, for small tasks with frequent feedback and clear scope, a faster generation and repair loop may be more valuable.
Cost evaluation can use the following general measure:
Cost per accepted work item = total R&D investment for the stage / number of accepted work items.
Here, “total investment” should include failed attempts and rework, not only the final successful execution. When work item complexity varies greatly, statistics should also be calculated separately by task category, avoiding direct comparisons between documentation changes and low-level module implementation.
It is recommended to track first-pass acceptance rate, average repair rounds, integration failure rate, manual review time, and delivery cycle. Only with these metrics can a team judge whether multi-agent collaboration actually reduces R&D burden or shifts the burden to integration and review.
7. Long-Running Autonomy Requires Security Boundaries
Agents need access to code, files, execution environments, and some engineering services, but permissions should not expand indefinitely just because a task is complex.
In practice, the principle of least privilege should be applied to limit readable and writable directories, network access scope, credential usage, and resource budgets for individual tasks. High-risk operations, such as deleting critical data, changing access permissions, or modifying release configuration, should require explicit approval rather than relying entirely on an agent’s own judgment.
External documents, dependency descriptions, logs, and test samples should all be treated as data sources. They should not be granted the authority to change engineering rules simply because they contain instruction-like text. Suggestions involving command execution, content downloads, or configuration changes need to pass established policy checks.
Stop conditions should also be defined. When builds fail repeatedly, repair loops repeat, tasks drift from the objective, or resource consumption exceeds budget, pausing for manual diagnosis is usually more effective than continuing to add more invocations.
Security boundaries are not an add-on outside R&D. They are a prerequisite for long-running autonomy to remain controllable and auditable.
8. Adoption Path: Start with Clearly Bounded Pilots
Teams should not use a complete operating system as their first pilot. A safer starting point is to select tasks with clear interfaces, sufficient tests, and controllable failure impact, such as compatibility fixes for existing modules, implementation of independent components, or completion of automated tests.
Before the pilot begins, the delivery time, defect situation, and manual effort of the existing R&D approach should be recorded as a comparison baseline. The task scope, execution permissions, resource budget, and acceptance criteria should then be limited, and complete process records should be retained.
After the pilot, the team should not only check whether the function is complete. It should also review which tasks were suitable for parallelization, which design decisions had to be centralized, which errors were not found by tests, and whether people had to bear additional context-rebuilding costs.
Only when quality and cost performance are stable is it appropriate to gradually expand concurrency scale and task complexity. Scaling should be the result of validation, not the goal at the start of the pilot.
Conclusion
Multi-agent collaboration extends AI applications from local code generation to engineering organization, but it does not eliminate the basic constraints of software R&D: requirements must be clear, interfaces must be consistent, results must be verified, and risks must be controlled.
Judging whether a solution is effective cannot rely only on how many agents participated, how many days it ran, or how much code it generated. A more reliable standard is whether it can continuously produce engineering outcomes under explainable resource investment that are repeatably buildable, independently acceptable, diagnosable, and easy to maintain. The R&D paradigm truly worth pursuing organizes collaboration through contracts, confirms progress through evidence, and safeguards delivery through governance.
