From Requirements to Deployment: What LLM Agents Can and Cannot Do in Full-Stack Development

    Large language models have significantly improved their code-generation capabilities, allowing AI agents to participate in multiple stages of development—from requirement analysis to deployment. However, benchmark scores measure basic model competence, not real-world project delivery. This article takes an engineering perspective to examine what agents can actually handle, the technical constraints involved, and where human judgment remains indispensable. It covers requirement parsing, front-end generation, database-level concurrency control, cross-scenario prompt reuse, and deployment risk management.

    Large language models have made measurable progress in code generation. When long-context understanding, file parsing, and code-writing capabilities are combined, AI agents can take part in multiple stages of the development lifecycle—from requirement analysis to deployment. Public benchmarks can indicate a model’s underlying capability, but whether a project can be delivered depends on more practical factors: whether requirements are clear, whether the code runs correctly, and whether deployment is controllable. This article offers an engineering-oriented review of what agents can handle, and where human oversight is still essential.

    1. Requirement Parsing: Long-Context Understanding and File Comprehension Reduce Information Loss

    Agents are well-suited to consolidating scattered requirement materials into a structured task list, but the requirements themselves still require human confirmation.

    An agent can read lengthy requirement documents, API specifications, and design briefs, then break them into concrete tasks such as pages, endpoints, and database tables. This capability is bounded by the model’s context window. When input exceeds the window limit, earlier content may be truncated or lost. Long documents should therefore be fed in segments, with chapter indexes preserved.

    File format also affects parsing quality. Plain text, Markdown, JSON, and OpenAPI specifications are generally parsed reliably. Scanned PDFs and complex design mockups yield poorer results and should first be converted into structured text. As for access control, only files required for the current task should be provided to the agent. Documents containing credentials, personal information, or internal financial data must not enter the conversation.

    2. Visual and Interaction Design: Generating Modern Front-End Code

    Agents can generate page layouts, animations, and state indicators from textual descriptions—for example, full-screen background videos, dynamic data dashboards, and blinking status lights for operational states. In practice, such output closely resembles contemporary front-end design. The final result depends on the model version, prompt specificity, and acceptance criteria.

    The more concrete the description, the more predictable the output. A prompt that only says “make it look premium” tends to yield inconsistent results. If the prompt specifies typography, color palette, animation duration, and responsive breakpoints, the outcome becomes much more stable.

    Video backgrounds, large imagery, and complex animations can degrade page performance. Agents generally do not proactively consider load time. Before release, teams should use browser performance tools to measure first-paint time, and run real-device tests on mobile and low-end hardware. Accessibility also matters: animations should respect the system “reduce motion” setting, and status indicators must not rely on color alone.

    3. Back-End Logic: Concurrency Control Must Rely on Database Mechanisms

    The back end is where agents make the most mistakes. Consider a flight seat-booking scenario: each flight has 6 seats, and bookings are rejected once the flight is full.

    A common erroneous implementation reads the current seat count, checks whether seats remain, and then writes. If two concurrent requests both read “not full,” both proceed to write, causing overbooking. The correct approach merges the check and the update into a single conditional update statement, letting the database handle the lock and the seat-availability check.

    1. // Prerequisite: relational database (e.g., PostgreSQL, MySQL)
    2. // The flights table contains id, capacity, and booked_seats columns
    3. // A check constraint (booked_seats <= capacity) should also be added
    4. // This example uses question-mark placeholders; actual syntax depends on the database driver
    5. async function bookSeat(flightId, passenger) {
    6. const tx = await db.beginTransaction();
    7. try {
    8. // Conditional update: only increments when the flight is not full.
    9. // A rowCount of 0 means the flight is full or does not exist.
    10. const result = await tx.query(
    11. 'UPDATE flights SET booked_seats = booked_seats + 1 WHERE id = ? AND booked_seats < capacity',
    12. [flightId]
    13. );
    14. if (result.rowCount === 0) {
    15. throw new Error('Flight is full or does not exist');
    16. }
    17. const { rows } = await tx.query(
    18. 'SELECT booked_seats FROM flights WHERE id = ?',
    19. [flightId]
    20. );
    21. const seatNumber = rows[0].booked_seats;
    22. await tx.query(
    23. 'INSERT INTO passengers (flight_id, name, id_number, seat_number) VALUES (?, ?, ?, ?)',
    24. [flightId, passenger.name, passenger.idNumber, seatNumber]
    25. );
    26. await tx.commit();
    27. return { success: true, seatNumber };
    28. } catch (err) {
    29. await tx.rollback();
    30. throw err;
    31. }
    32. }

    This code works only under the following conditions, each of which is required:

    1. The database supports transactions and row-level locking. The UPDATE statement locks the affected row, so concurrent requests are queued and executed sequentially.
    2. A check constraint exists at the database level. It acts as the last line of defense beyond the application logic.
    3. Isolation level is validated with the default READ COMMITTED. If another isolation level is used, the logic must be re-tested.
    4. Seat-number generation rules need business confirmation. In this example, seatNumber is simply an incrementing sequence number—it is not a specific seat assignment. If the business requires seat selection, a separate seat table and an occupancy tracking mechanism are needed.

    This example does not cover payment handling, duplicate-submission prevention (idempotency keys), timeout-based seat release, or operation logging. It is pseudocode and cannot be used directly in production.

    The proper validation method is concurrency testing. Fire 20 simultaneous booking requests against the same flight and verify that no more than 6 succeed, and that the number of seats sold in the database matches the passenger records. Only when such tests pass can concurrency control be considered effective.

    4. Cross-Domain Generalization: Prompt Templates and Acceptance Criteria

    The same prompt structure can be adapted across different business domains. For instance, a deep-sea exploration institute’s website could use a deep-to-light blue gradient and display submersible specification cards. A luxury perfume brand site might use serif typography and a glass-caustics visual effect. The visual priorities and back-end constraints differ between the two, but the prompt structure can be shared.

    Domain Visual Priorities Back-End Constraints Acceptance Focus
    Deep-sea exploration institute Blue gradient, specification cards Permission management for content and attributions Correct content display, readability on mobile
    Luxury perfume brand Serif typography, dynamic light effects Inventory consistency with orders First-paint speed, animations can be disabled

    A reusable prompt skeleton looks like this:

    1. Role: You are an experienced full-stack engineer responsible for generating front-end and back-end code for a [domain] website.
    2. Input: [Requirement summary, page list, API specification, design notes].
    3. Constraints: Tech stack is [framework and version]; database is [type];
    4. do not introduce third-party dependencies not listed;
    5. all logic involving inventory or monetary values must use transactions.
    6. Output: List all files by directory, and provide request and response examples for each endpoint.
    7. Acceptance criteria: [Testable conditions].

    Acceptance review should cover three dimensions:

    1. Functionality: every page and endpoint works per the requirements, and automated tests pass.
    2. Edge cases: empty input, oversized input, duplicate submission, and concurrent requests have clear expected outcomes.
    3. Visual and performance standards: first-paint time on target devices, text contrast, and the ability to toggle animations all meet the team’s bar.

    5. Engineering Delivery: Deployment Strategy and Risk Control

    Agent-generated code can be deployed using standard cloud-native approaches. Back-end services can run on container platforms with elastic scaling. Front-end static assets and media files can be hosted on object storage. Integrating logging and monitoring systems helps with troubleshooting. Major cloud providers—such as Baidu AI Cloud and equivalents—offer the necessary services; the choice should be based on the team’s existing tech stack and compliance requirements.

    Generated code should never go straight to production. Before release, at minimum the following must be done:

    1. Code audit: check for security issues in permission checks, input validation, and SQL construction.
    2. Dependency scan: verify that packages introduced by the agent actually exist, have no known vulnerabilities, and have not been replaced by same-name malicious packages.
    3. Least-privilege access: database accounts, object storage, and container services should be granted only the permissions they truly need.
    4. Canary release and rollback: route a small percentage of traffic to the new version first, and have a tested rollback path ready so that issues can be resolved quickly.

    Conclusion

    Agents can compress the time from requirements to a working prototype and take on a substantial amount of repetitive coding work. Whether the outcome is good depends on how well humans define requirements, constraints, and acceptance criteria—and how thoroughly the results are checked through testing and security audits. With these conditions in place, teams can direct more of their energy toward business decisions and architecture design.