Open-Source Agents for Full-Stack App Generation: Workflow, Acceptance Testing, and Risks

    Open-source AI agents can now generate and run small full-stack applications in sandboxed environments. This article explains how these agents decompose requirements, use multimodal inputs, execute and repair code, and handle feedback loops. It also reviews three application scenarios, covering database concurrency, scroll-driven storytelling, and visual effects, while outlining reproducible acceptance tests, structured requirements, and practical boundaries for reliable delivery.

    Open-Source Agents for Full-Stack App Generation: Workflow, Acceptance Testing, and Risks

    1. Introduction: What Agent-Generated Applications Can Really Do

    Large language models were initially used mainly for text generation, question answering, and summarization. With tool-calling capabilities, open-source multimodal models can now write code in a sandbox, start services, read error messages, and modify the code accordingly. They can produce a small, runnable application with limited direct implementation from the developer.

    As a result, developers are shifting from writing code line by line to describing goals, constraints, and acceptance criteria.

    This approach is well suited to prototypes, internal tools, and content-driven websites. Whether it can scale to systems involving payments, authorization, or high concurrency must be determined through reproducible testing rather than demonstrations alone.

    This article examines the process from four perspectives: the technical foundation, case reviews, engineering practices, and system boundaries. It also explains what should be recorded at each stage of an Agent-generated full-stack application project.

    2. How an Agent Generates a Full-Stack Application

    2.1 How Agents Decompose Tasks

    A typical full-stack application includes visual design, page layout, interaction logic, backend APIs, data models, and test cases. The Agent should first break the natural-language requirements into atomic tasks and identify their dependencies.

    A more reliable sequence is:

    1. Define the information architecture.
    2. Generate the page structure.
    3. Implement the APIs.
    4. Add database tables and tests.

    This sequence can be specified in the system prompt. Doing so helps prevent the model from building the interface first and adding the data structures later, which can result in mismatched APIs and application logic.

    2.2 Using Multimodal Inputs and Outputs

    Multimodal models can process text, images, and code at the same time. When a user provides a design file or screenshot, the Agent can analyze the image and generate CSS, SVG, or WebGL code.

    However, descriptions such as “premium” or “business-oriented” are ambiguous. The Agent should translate them into concrete parameters, including:

    • Color values
    • Font families
    • Grid widths
    • Animation durations

    Writing these parameters into the requirements document makes the result easier to evaluate than relying on adjectives alone.

    2.3 Building a Generate–Execute–Feedback Loop

    Generating code is not enough. The Agent must also run the application in a controlled environment.

    A typical feedback loop works as follows:

    1. Start a local development server.
    2. Open the page in a headless browser.
    3. Read console errors and failed network requests.
    4. Send the error information back to the model.
    5. Let the model modify the code.
    6. Run the application and tests again.

    Common tools include file operations, terminal commands, HTTP requests, and database operations.

    The sandbox should restrict network access, file paths, and process permissions. This reduces the risk of the Agent accidentally deleting files or accessing external services.

    2.4 Code Self-Checks and Automated Repair

    The Agent can write unit tests together with the application code and run static analysis tools, such as type checkers, linters, and dependency vulnerability scanners.

    When a test fails, the Agent can use the error message to locate and repair the problem. The number of repair attempts should be limited. For example, if the same error remains after three consecutive repair attempts, the process should stop and be handed over to a human.

    Without such a limit, the model may repeatedly modify the same code, consuming significant compute resources without making progress.

    3. How to Review Three Application Cases

    The original cases describe three website scenarios but do not provide the model version, Agent framework, complete prompts, execution logs, or code repositories. Therefore, success rates should not be inferred, and visual descriptions should not be treated as acceptance results.

    The following sections describe what should be added for a reproducible evaluation.

    3.1 An Orbital Travel Website: Ensuring Inventory Consistency Under Concurrency

    The scenario requires users to select a date and seat, submit a reservation, and write the data to a database. Each flight has a maximum of six seats.

    The core issue is concurrency. If two users attempt to reserve the last available seat at the same time, a read-then-write implementation may overbook the flight.

    One common approach is to lock the flight row inside a transaction:

    1. BEGIN;
    2. SELECT seat_count FROM flights WHERE flight_id = ? FOR UPDATE;
    3. -- The application checks whether seat_count < 6.
    4. -- If not, ROLLBACK and return "Sold out".
    5. INSERT INTO reservations (flight_id, passenger_name, seat_no) VALUES (?, ?, ?);
    6. UPDATE flights SET seat_count = seat_count + 1 WHERE flight_id = ?;
    7. COMMIT;

    FOR UPDATE is supported by MySQL with InnoDB and by PostgreSQL. SQLite does not support this syntax. For a local SQLite database, the operation can instead use an atomic conditional update:

    1. UPDATE flights
    2. SET seat_count = seat_count + 1
    3. WHERE flight_id = ? AND seat_count < 6;
    4. -- If the affected row count is 1, insert into reservations and commit.
    5. -- If it is 0, roll back and return "Sold out".

    Both approaches must use parameter binding. User input must never be concatenated directly into SQL statements.

    If the reservation insert fails, the entire transaction must be rolled back. Otherwise, the inventory count and reservation records may become inconsistent.

    Acceptance testing should include concurrency tests. For example, a script can send 20 reservation requests at the same time. The test should verify that:

    • The number of successful reservations does not exceed six.
    • The number of records in the reservations table matches seat_count.
    • Failed operations do not leave partial updates behind.

    3.2 A Deep-Sea Research Website: Implementing and Evaluating Scroll-Driven Storytelling

    The main challenge in this scenario is balancing scroll-driven storytelling with reading rhythm.

    The page includes submersible specification cards, organism profiles, and articles presented from multiple perspectives. The implementation can use CSS scroll-driven animations or IntersectionObserver to trigger animations when elements enter the viewport.

    Both approaches should be evaluated against three requirements:

    1. Animations must not obscure the main text.
    2. The system’s reduced-motion preference must be respected.
    3. Scrolling must remain smooth on mobile devices.

    Acceptance testing can include recording the scrolling process, counting dropped frames, and comparing screenshots at different viewport widths.

    The Agent can generate the code and initial screenshots, but a human still needs to determine whether the storytelling pace is appropriate for the target audience.

    3.3 A Perfume Brand Website: Choosing the Right Technology for Visual Effects

    This scenario involves bitmap images, vector graphics, typography, and liquid-like animations.

    If WebGL or Three.js is used to create rotating liquid effects and caustics, the project should document the library, its version, and the supported device range.

    Using CSS and pre-rendered video may provide more stable performance, but it offers less interaction flexibility.

    Acceptance testing should cover:

    • Above-the-fold loading time
    • Frame rate on low-end devices
    • Fallback fonts when the primary font fails to load
    • Image file sizes

    Without these metrics, it is impossible to determine whether the intended “premium” visual quality has actually been achieved.

    4. Engineering Practices for More Reliable Agent Delivery

    4.1 A Structured Requirements Template

    The Agent’s output depends heavily on the prompt. The following template defines the role, features, constraints, and acceptance criteria. It also includes environment and sandbox fields to make the process easier to reproduce:

    1. [Role] Senior full-stack engineer responsible for implementation and self-testing.
    2. [Environment]
    3. Model: <name and version>
    4. Agent framework: <name and version>
    5. Sandbox: Access limited to the project directory and local ports.
    6. External network requests are prohibited.
    7. [Feature List]
    8. - Homepage: above-the-fold visual design, data dashboard, and scroll-driven storytelling
    9. (copy provided in the requirements document)
    10. - Product display: card-based layout with category filtering
    11. - Order system: product selection, quantity validation, inventory deduction,
    12. and data persistence
    13. [Technical Constraints]
    14. - Frontend: HTML/CSS/JavaScript, with no external CSS or JavaScript libraries

    A structured prompt should make the implementation order, environmental restrictions, and acceptance requirements explicit. This gives the Agent a clearer operating boundary and provides the project team with information that can be checked and reproduced.