Full-Stack Development with AI Agents: Capabilities, Limits, and Production Checklist

    This article examines how AI agents perform in real full-stack development, based on practical analysis rather than benchmark scores. It covers which parts of front-end and back-end work can be delegated to an agent, which parts require human review, how to handle concurrency and data integrity in business logic, how to reuse prompt templates across domains, and provides a pre-deployment checklist for running agent-generated code in production on Baidu AI Cloud.

    In recent years, open-source large language models have achieved impressive results on benchmarks for general knowledge, software engineering, and terminal-based coding. But the question frontline developers really care about is this: once an LLM is packaged as an agent, can it go beyond single-shot code completion and deliver a complete application with both front-end pages and back-end logic? This article does not rely on benchmark scores. Instead, it breaks down how agents actually perform in full-stack development, clarifying which tasks can be handed over to them and which must be verified by humans.

    1. Front-End: Animations and Components Can Be Generated, but Require Human Review

    The front end is the first thing users see. Given natural language instructions, an agent can typically generate well-structured pages, components, and animations. For example, a description like “a small fluorescent cyan dot that slowly pulses to simulate an online system status” can be converted into a CSS @keyframes animation:

    1. .status-dot {
    2. width: 8px;
    3. height: 8px;
    4. border-radius: 50%;
    5. background: #00ffc8;
    6. animation: pulse-blink 3s ease-in-out infinite;
    7. }
    8. @keyframes pulse-blink {
    9. 0% { opacity: 0.4; box-shadow: 0 0 4px 2px rgba(0, 255, 200, 0.2); }
    10. 50% { opacity: 1; box-shadow: 0 0 12px 4px rgba(0, 255, 200, 0.6); }
    11. 100% { opacity: 0.4; box-shadow: 0 0 4px 2px rgba(0, 255, 200, 0.2); }
    12. }
    13. /* Disable animation for users who enable "reduce motion" */
    14. @media (prefers-reduced-motion: reduce) {
    15. .status-dot {
    16. animation: none;
    17. opacity: 1;
    18. }
    19. }

    The final prefers-reduced-motion block matters. Some users are sensitive to motion and may experience dizziness or distraction; the relevant operating system setting tells web pages to stop animating. Agent-generated code often omits this block, so it deserves a dedicated check during review.

    A full-screen video background with CSS filters, or a slowly rotating globe arc, is achievable in mainstream browsers. Video elements also need a fallback: when bandwidth is limited or the device blocks autoplay, a static cover image should be displayed instead.

    Physics-based rendering effects such as liquid rotation or light caustics usually depend on WebGL or Canvas. An agent can generate basic lighting simulation code, but the team needs to test performance on low-end phones. If the browser does not support WebGL, the page should fall back to CSS gradients or static images. Before launch, test once in a browser with WebGL disabled.

    Overall, agents can significantly reduce the workload of layout and repetitive components. Accessibility, performance, and fallback logic still need to be owned by engineers.

    2. Back-End: Business Rules Must Be Guaranteed by Transactions and Constraints

    Take flight booking as an example. The requirement is “6 seats per flight; lock automatically when full.” An agent will typically generate a function that first queries the remaining seats and then decrements the count. This approach has a concurrency problem: two requests may both read 1 remaining seat, both pass the check, and cause overselling.

    A more robust approach has three elements:

    1. Perform the decrement with a single conditional UPDATE and check the number of affected rows. If the count is 0, the flight is full — roll back and return an error.
    2. Create a unique index on (flight ID, seat number) in the bookings table to prevent the same seat from being booked twice.
    3. Put the inventory decrement and the booking record insertion in the same transaction, so any failure rolls back everything.

    The corrected pseudocode is below. API names depend on the database driver in use and must be adjusted to the actual driver before going live.

    1. class BookingError extends Error {
    2. constructor(code, message) {
    3. super(message);
    4. this.code = code;
    5. }
    6. }
    7. async function bookSeat(flightId, seatNumber, passengerInfo) {
    8. return db.transaction(async (trx) => {
    9. // Conditional update: only decrement when seats are still available
    10. const dec = await trx.query(
    11. 'UPDATE flights SET available_seats = available_seats - 1 WHERE id = ? AND available_seats > 0',
    12. [flightId]
    13. );
    14. if (dec.affectedRows === 0) {
    15. throw new BookingError('FLIGHT_FULL', 'The flight is fully booked');
    16. }
    17. try {
    18. // Unique index on (flight_id, seat_number) prevents double-booking the same seat
    19. await trx.query(
    20. 'INSERT INTO bookings (flight_id, seat_number, passenger_info) VALUES (?, ?, ?)',
    21. [flightId, seatNumber, JSON.stringify(passengerInfo)]
    22. );
    23. } catch (err) {
    24. if (err.code === 'ER_DUP_ENTRY') {
    25. throw new BookingError('SEAT_TAKEN', 'This seat is already taken');
    26. }
    27. throw err;
    28. }
    29. return { status: 'SUCCESS' };
    30. });
    31. }

    The key point of this code is that the outcome is determined by the database’s row locks and unique index, not by a check-then-write judgment. In production, confirm that the transaction wrapper automatically rolls back when an exception is thrown. Verification is straightforward: fire 50 concurrent requests at 6 seats — the number of successful requests should be exactly 6, and no duplicate seat numbers should appear in the booking records.

    Data persistence also needs separate verification. Some generated demo pages keep state only in memory or localStorage, so data is lost after a page refresh. Booking data must be written to the database and returned by the back-end API, so the front end displays it correctly after a refresh.

    3. Cross-Domain Migration: Templates Help, but Domain Rules Must Be Explicit

    The same prompt structure can be reused across industries — for example, migrating from space travel to deep-sea exploration, or from a perfume brand to another consumer brand. Here is a reusable skeleton:

    1. [App type] Single-page showcase application
    2. [Domain] {industry name}
    3. [Hero section] {camera or background description}, {animation description}
    4. [Core modules] {module 1}, {module 2}, {module 3}
    5. [Business rules] {rule description, e.g., "max N participants per session; block submissions once full"}
    6. [Data] {fields to persist}, retained after page refresh
    7. [Non-functional requirements] Support reduced-motion settings; fall back to static images when WebGL is unavailable

    A common failure: when the flight booking template was adapted for group tour registration, the agent carried over the “max 6 people” logic but missed the “minimum group size” rule. As a result, tours with insufficient participants could still be confirmed. Therefore, business rules should specify both upper and lower bounds, and these should be required fields in the template. A template only provides structure — the specific rules must still be confirmed item by item by the requirements owner.

    4. Engineering for Production: A Pre-Deployment Checklist

    Agent-generated code can run in cloud-native environments, but getting from prototype to production requires substantial additional work. The table below compares the two usage modes:

    Dimension Single-shot code completion Agent full-stack generation
    Output scope A function or code snippet Pages, APIs, table schemas, deployment configs
    Delivery boundary Developer reviews and integrates Must run end-to-end and be accepted as a whole
    Main risks Local logic errors Inconsistencies between modules, concurrency issues, missing permissions
    What humans must fill in Integration tests Business rules, security, performance, operations

    When deploying on Baidu AI Cloud, you can refer to the following checklist:

    • Images: Package back-end services as container images, pin dependency versions, and avoid using the latest tag directly.
    • Configuration: Inject database addresses and credentials via environment variables or a key management service; never write them into code or print them to logs.
    • Database: Perform a backup before launch, verify unique indexes and transaction isolation levels, and only then run schema migrations.
    • Permissions: Grant service accounts only the permissions needed for the required tables and operations; do not run business services with admin accounts.
    • Multimedia assets: Store videos and images in object storage (BOS), use private buckets, and serve them through time-limited access URLs.

    In summary, an agent can produce a runnable full-stack application from natural language, but “runnable” is not the same as “production-ready.” Accessibility, concurrency safety, data persistence, domain rules, and deployment security all require deliberate human review. Treat the agent as a fast first-draft generator, and keep acceptance criteria in the hands of engineers.