Multi-Agent Programming in Practice: From Custom Tools to System Prototypes

    AI-assisted software development is easy to demonstrate at the code-generation stage and much harder to prove at the level of usable software. This article examines two representative cases—custom image and video editing tools built around team workflows, and an operating system prototype assembled through multi-agent collaboration—to explain how natural-language goals can be turned into decomposable, implementable, and verifiable engineering tasks. It covers task dependencies and interface contracts for multi-agent work, layered validation for OS prototypes, requirement-driven testing, the limits of formal verification, permission and input governance, and a phased adoption path. The central argument is that engineering closure—clear requirements, stable interfaces, independent verification, traceability, and recoverability—determines the value of faster code generation.

    1. From Generating Code to Delivering Software: What Really Changes

    The easiest outcome to show when AI participates in software development is code. The hardest outcome to prove is software usability.

    A program that compiles, an interface that opens, or even a system that boots represents only a stage in the engineering chain. What users actually need is that tasks can be completed, data is not easily lost, exceptions can be recovered from, and later changes do not break existing functionality.

    The source material describes two representative types of exploration. One focuses on building image and video editing tools around the habits of individuals or teams. The other uses extensive multi-agent collaboration to construct an operating system prototype that includes a kernel, drivers, file storage, and a graphical interface.

    These two tasks differ greatly in scale, but they point to the same technical question: how can a goal expressed in natural language be transformed into software engineering tasks that can be decomposed, implemented, and verified?

    It should first be clear that narratives about short-time, large-scale parallel development in the source material should not be treated directly as universally reproducible efficiency metrics. How much compute is invested, which foundational components are reused, how much hardware is covered, and which tests are performed all affect judgments about the outcome. What deserves more study is not the speed of a single demonstration, but the engineering organization behind it.

    2. Why Custom Tools Are a More Realistic Starting Point

    2.1 Focus on High-Frequency Workflows, Not Full Feature Parity

    Mature editing software often accumulates a large number of features, but a specific team may repeatedly use only a small subset every day.

    For example, a content production team’s image processing workflow may center on importing assets, adjusting the canvas, editing layers, adding text, and exporting images. Video production may mainly involve clipping segments, arranging tracks, adjusting subtitles, processing audio volume, and exporting the final output.

    If the goal is to reimplement a complete professional editing suite, the development scope will quickly get out of control. If the goal is to let a fixed team complete a few stable workflows, the problem is easier to constrain.

    Therefore, the reasonable positioning of a custom tool is not “a full replacement for general-purpose software,” but “reducing operation and collaboration costs within clearly defined boundaries.”

    2.2 Turn Usage Habits into Executable Requirements

    “Works smoothly” cannot be used directly for development acceptance. It needs to be broken down into observable behaviors:

    • After assets are imported, are the original files kept unmodified?
    • After layer positions are adjusted, do they remain consistent after saving and reopening?
    • During continuous editing, can undo and redo correctly restore state?
    • Do exported files meet requirements for dimensions, duration, and transparency information?
    • After an unexpected software shutdown, is there a recoverable working copy?

    These details determine whether a tool is a demo program or software that can enter daily production.

    AI can help organize requirements, but business users must participate in confirmation. In particular, asset formats, font licensing, color consistency, encoding compatibility, and delivery standards cannot be left to the model to assume from vague descriptions.

    2.3 Custom Does Not Mean Lower Total Cost

    Faster development does not mean maintenance costs disappear. After a tool is put into use, teams still need to handle dependency upgrades, system compatibility, vulnerability fixes, data migration, and personnel handover.

    Whether it is worth building in-house should consider:

    Total cost = initial development cost + operating cost + maintenance cost + migration cost + failure loss.

    For scenarios with stable requirements, a small user base, and clear business differences, custom tools may have advantages. For scenarios with complex format ecosystems, frequent cross-organizational collaboration, and high reliability requirements, the long-term accumulation of mature software still matters.

    3. The Core of Multi-Agent Collaboration Is Not Simply Adding More Agents

    3.1 Establish Task Dependencies Before Arranging Parallel Execution

    Software modules have dependencies. If the file storage interface is not yet determined, it is difficult for upper-layer applications to implement saving reliably. If the window event model changes repeatedly, graphical interface tests are difficult to reuse consistently.

    Therefore, multi-agent development first needs a task dependency graph.

    For example, a custom editing tool can be divided into:

    • Project data model
    • Asset import and parsing
    • Editing state management
    • Graphical interface interaction
    • Output processing
    • Automated testing
    • Packaging and delivery

    Some of these tasks can proceed in parallel, while others must wait until foundational agreements are stable. Blindly pursuing concurrency often just makes more agents build on different assumptions at the same time.

    3.2 Interface Contracts Are a Prerequisite for Parallel Development

    Before each module begins implementation, its inputs, outputs, error handling, state changes, and resource ownership should be clarified.

    Take asset import as an example. The interface agreement should answer at least:

    • Is the input a file location, a data stream, or in-memory content?
    • On success, does it return an asset description or already decoded data?
    • How are corrupted files, unsupported formats, and insufficient permissions distinguished?
    • Can large-file imports be canceled?
    • Who releases temporary resources?
    • Does the import process modify the source file?

    These agreements are not just documentation. Parts that can be checked automatically should be converted into tests, data constraints, and static analysis rules.

    The upper limit of multi-agent collaboration often depends on the quality of shared agreements, not the number of participants.

    3.3 Provide Different Contexts for Different Tasks

    Having every agent read all project materials is not necessarily more effective. Excessive information increases processing overhead and may let irrelevant details interfere with local judgment.

    A more reasonable approach is to provide the necessary context per task, including:

    • The current module’s responsibilities and boundaries
    • Related interfaces and data structures
    • Confirmed design decisions
    • Tests that must pass
    • Public agreements that must not be modified
    • Exception conditions that require escalation

    At the same time, a unified decision record should be maintained to prevent different modules from separately “fixing” the same issue and ultimately producing incompatible implementations.

    4. Why an Operating System Prototype Tests Engineering Capability More Severely

    4.1 “It Boots” Is a Milestone, Not Proof of Maturity

    An operating system must manage processors, memory, devices, interrupts, files, and execution units. A prototype that can display a login interface may already represent substantial engineering work, but it is still not enough to infer that it has the security and compatibility of a mature system.

    Evaluating a system prototype should distinguish at least several levels:

    • Can it complete booting and enter the expected execution state?
    • Are memory allocation and reclamation basically correct?
    • Do input devices, display devices, and storage devices work reliably?
    • When file writes fail, is there consistent error semantics?
    • Does concurrent execution produce deadlocks or data races?
    • Can abnormal programs be contained rather than bringing down the whole system?
    • Can it run repeatedly across different hardware configurations?

    These levels correspond to different validation work and cannot be replaced by a boot demonstration.

    4.2 Expand Gradually from a Minimal Runnable Path

    When developing a system prototype, a more reliable order is to establish a minimal closed loop first, then add complexity layer by layer.

    A general path is:

    First, complete booting, basic output, and fault localization mechanisms so developers know where the program has reached.

    Second, implement basic memory management and interrupt handling so the system has a foundation for further expansion.

    Third, connect necessary devices and establish clear read/write and error-handling agreements.

    Fourth, implement simple file access and program execution capabilities.

    Fifth, consider upper-layer features such as windows, login, installation, and application interaction.

    This order is not the only option, but it reflects a principle: prioritize infrastructure that helps discover problems in the next layer.

    4.3 Kernel Errors Require Stronger Isolation and Diagnosis

    Ordinary application errors can usually be limited by process boundaries. Low-level system errors may directly cause crashes, downtime, or storage corruption.

    Therefore, low-level code generated by agents especially needs controlled validation. Common measures include running in isolated environments, using reproducible test inputs, preserving execution logs and failure states, and conducting targeted checks on memory access, resource release, and concurrency control.

    When moving to real-device validation, dedicated test devices and disposable data should be used to avoid putting prototypes directly into important work environments.

    5. Continuous Validation Is More Important Than Continuous Generation

    5.1 Tests Should Be Requirement-Driven, Not Adapted to the Implementation

    If code and tests are both produced from the same set of mistaken assumptions, the software may still fail to meet real requirements even if all tests pass.

    Therefore, acceptance criteria need to be established independently. Key scenarios, expected results, and failure conditions should be defined before development, and then the implementation should be made to satisfy those constraints.

    For an editing tool, one can verify that “after saving and reopening, layer order and text content remain consistent.” For a file storage module, one can verify that “after an interrupted write, the system does not mistakenly treat incomplete content as successfully committed.”

    These checks are closer to real business outcomes than “the function returned success.”

    5.2 Build a Layered Testing System

    Different tests are responsible for finding different types of problems:

    • Unit tests: check local algorithms, state transitions, and boundary conditions
    • Interface tests: check data and behavioral agreements between modules
    • Integration tests: check collaboration results after multiple modules are combined
    • End-to-end tests: check whether users can complete full tasks
    • Exception and recovery tests: check cases such as insufficient disk space, corrupted input, and task cancellation
    • Performance and resource tests: check runtime, memory usage, and resource leaks

    For parsers, storage, and low-level system code, fuzz testing can also be used to find crashes and undefined behavior through large volumes of abnormal input.

    5.3 Formal Verification Has Value and Clear Boundaries

    Formal methods can express some properties as rigorous logical statements and then use checking mechanisms to verify whether proofs hold. They are suitable for certain critical algorithms, protocol properties, and high-risk modules.

    But it is necessary to distinguish “a certain property has been proved” from “the entire system has no defects.” If preconditions, the system model, or property descriptions are incomplete, a correct proof does not necessarily mean real-world use is safe.

    Likewise, converting an existing mathematical proof into a machine-checkable form is not the same as discovering a new mathematical proof. Evaluating related results should focus on definition scope, proof coverage, dependencies and assumptions, and whether unfinished parts remain—not merely on the number of participating agents or processing time.

    6. What Governance Is Needed to Bring Agents into the Development Process?

    6.1 Follow the Principle of Least Privilege

    Executing code, reading files, accessing networks, and modifying configurations can all have real effects. Agents should not have all permissions in the development environment by default.

    It is advisable to separate authorization for code generation, test execution, dependency retrieval, and formal release. Operations involving data deletion, access control changes, reading sensitive information, or modifying production configurations should require explicit approval and audit records.

    6.2 Treat External Input as Untrusted Content

    Code comments, requirement attachments, logs, and test data may all contain text intended to steer agents away from their tasks. Such content should be treated as data to be processed, not as new authorized instructions.

    From an engineering perspective, impact should be limited through tool permissions, network boundaries, file access scope, and approval mechanisms, rather than relying only on the model to identify risks by itself.

    6.3 Preserve Traceable Change Records

    Every change should be able to answer: why it was made, what changed, which tests support it, and how to roll back if problems occur.

    For multi-agent projects, records should also include task owners, related requirements, interface versions, and merge rationale. In this way, when defects occur, the team can locate the problem instead of only regenerating the entire codebase.

    At the same time, automatic generation does not mean intellectual property and dependency governance can be ignored. Introduced components, assets, and code snippets still require source and license checks.

    7. A Practical Implementation Path

    For teams preparing to introduce multi-agent programming, it is better to start with a small-scale pilot.

    Phase 1: Choose tasks with clear boundaries.
    Prioritize internal auxiliary tools, format conversion, batch processing, and test completion. Avoid taking on core transactions or critical infrastructure at the beginning.

    Phase 2: Write acceptance criteria first.
    Clarify inputs and outputs, supported scope, exception behavior, data protection, and performance requirements. Also document capabilities that are not yet supported.

    Phase 3: Establish a minimal architecture and shared contracts.
    Define module responsibilities, data models, error semantics, and test entry points before opening parallel development.

    Phase 4: Integrate continuously in small batches.
    Keep each batch of changes within a reviewable scope, run automated checks, and focus review on cross-module changes to reduce the risk of a final concentrated integration.

    Phase 5: Trial under control in real workflows.
    Use non-critical data to validate operational efficiency, result correctness, and recovery capability, while retaining the original workflow as a fallback.

    Phase 6: Use long-term metrics to decide whether to expand.
    Track not only initial delivery time, but also defect rates, repair cycles, maintenance investment, and manual review costs. Expansion is appropriate only when overall benefits are established.

    Conclusion: Engineering Closure Determines the Value Ceiling

    From custom editing tools to operating system prototypes, AI-assisted development is expanding the boundaries of software that can be explored. But the stronger code generation becomes, the more teams need clear requirements, stable interfaces, independent validation, and strict permission control.

    What is truly worth pursuing is not having more agents write code at the same time, nor demonstrating the most features in the shortest time. It is building a repeatable delivery chain: requirements have a basis, designs have boundaries, changes are traceable, results are verifiable, and failures are recoverable.

    Only when these conditions are met can rapidly generated software gradually become software that is worthy of trust.