
Working With AI in the Frontend Implementation Loop
AI assist can be fast at scaffolding and confident-and-wrong about the platform. A frontend account of the review gate, the signature work, and reduced debugging as the goal.
TL;DR: On this article's working assumption, AI coding assistance speeds up the frontend developer's loop at scaffolding, boilerplate, refactors, and explaining unfamiliar code — and that speed is worth using deliberately, although controlled studies disagree on the size and even the direction of the effect. It can also produce plausible-but-wrong output: hallucinated APIs, outdated APIs that still compile and run in the developer's environment, and code that is performance-blind and cross-browser-blind. The failure mode to plan for is confident-and-wrong, which is why the human review gate is not optional: the frontend developer owns correctness, every assisted change passes a review and a platform-fit check, and the signature interaction stays human-defined. Reduced debugging is the goal of working this way; removing the gate is not, and "AI writes perfect code" is not the claim being made here.
Where AI assist tends to help frontend work
The acceleration is worth naming precisely, because the value of the gate later depends on not pretending the assistance is worthless. On this article's working assumption, AI coding assistance is useful inside the frontend loop at four kinds of work; controlled studies disagree on the size and even the direction of the speed effect — a 2023 controlled experiment with GitHub Copilot found that recruited developers asked to implement an HTTP server in JavaScript finished 55.8% faster with the tool, while METR's 2025 randomized controlled trial found that allowing early-2025 AI tools increased completion time by 19% for experienced open-source developers working on mature projects they already knew. Scaffolding: turning a clear intent into a structural starting point. Boilerplate: the repetitive, low-judgment code that has to exist and carries no decision. Refactors: mechanical transformations across a known shape. And explaining unfamiliar code: reading an existing surface back to the developer faster than the developer could read it cold.
What these four have in common is that they are production, not judgment. They move a developer from nothing to a starting artifact, or from an opaque artifact to a readable one, without making the decisions that the artifact will eventually have to be correct about. A frontend developer who uses assistance deliberately for exactly this work can get a speed gain on the parts of the loop that were never where the value sat. Refusing the acceleration on principle is not caution; it is declining a possible reduction in the time spent on the parts of the work that carry no decision.
The word that matters in "use it deliberately" is deliberately. Assistance reflexively reached for on every part of the loop blurs exactly the line this article is about, because the developer stops being able to say which parts of what shipped were a decision and which were a generation. Used on the four no-decision categories specifically, the line stays legible: the assistance occupied the parts of the loop that never carried a decision, and the developer can still point at every part that did. The discipline is not "use AI" or "do not use AI." It is using it on the work that has no decision in it and keeping it off the work that does, which is a choice the developer makes per change, not a setting.
The precise statement is the one that makes the rest of this article coherent: acceleration, where it happens, is not the same as correctness. The assistance can be fast at producing a candidate. Whether the candidate is right is a separate property, decided by a separate step, and conflating the two is where the loop breaks.
Where it produces plausible-but-wrong output
The output that breaks the loop is not output that looks wrong. Output that looks wrong is cheap — the developer sees it and discards it. The expensive output is the kind that looks right and is not, because it passes the developer's first read and the cheapest checks before its defect surfaces.
On this article's working assumption, three forms of it recur in frontend work; research on LLM code completion has documented one of them, deprecated API usage, across eight popular Python libraries (Wang et al., 2024). The first is the hallucinated or outdated API: a call to a method that does not exist, or that existed and was removed, or whose signature changed. In a typed project, a method missing from the type definitions fails the type check, and calling a method that does not exist at runtime throws when the line runs; the case that slips through is code that is syntactically valid and, because the type definitions or the local runtime still include the method or its old signature, compiles and runs without an immediate error while being wrong about the platform. The type checker does not catch that case because it checks the code against the definitions it has, not against the platform the team supports; it is a fact problem, and nothing in the assistant's tone reliably marked the fact as wrong. The second is performance-blind output: code that produces the right visual result through a path that does unnecessary work, re-renders more than it has to, or loads more than it should — correct on screen, wrong in cost. The third is cross-browser-blind output: code that works in the environment where it was first run and fails or degrades in another, plausibly because the assistant was steering toward a working answer rather than toward the platform's actual support surface.
The outdated-API case is worth walking because it is the one most easily mistaken for a non-problem. A developer asks for a piece of behavior, the assistant returns a method call that reads exactly like the dozens of correct ones it has returned before, the code runs in the developer's environment, and the change ships. The method was removed two versions ago and is still present in the runtime the developer happened to be on. The defect is not a crash; it is a behavior that is correct in one environment and absent in another, discovered by a user on the environment the developer was not testing. Nothing in the loop flagged it, because nothing in the loop checked the claim against the platform — the compiler checked the code against the definitions it had, the developer checked plausibility, and both passed a fact that was false.
On this article's working assumption, the common shape is the one that makes a gate mandatory rather than advisable: the failure mode is confident-and-wrong. The assistant does not reliably flag the API it invented, annotate the render path it made expensive, or warn about the browser it did not account for. A wrong answer delivered with the same fluency as a right one cannot be filtered by reading fluency. It can only be filtered by a step that checks the claim against the platform rather than against the assistant's confidence.
The human review gate and signature work
The gate is the answer to confident-and-wrong, and it is owned by the frontend developer, not by the tool and not by a later stage. The rule is narrow: the frontend developer owns correctness, and every assisted change passes a review and a platform-fit check before it is the team's code. Not review-in-principle — a specific check that the API exists and is current, that the render path is not gratuitously expensive, and that the behavior holds across the platform the team actually supports. For the cross-browser part, Baseline on web.dev tracks which features are interoperable across the core browsers, and MDN's introduction to cross-browser testing names implementation differences and bugs, uneven feature support, and device constraints among the common reasons behavior still diverges. That platform reality is the thing the gate verifies against — not the assistant's certainty, which, on this article's working assumption, does not reliably track whether it is right or wrong.
The gate is not distrust of a useful tool. It is where accountability becomes a person's. The Nielsen Norman Group's The Return of the UX Generalist makes the general point: current large language models (LLMs) still require careful human oversight because of hallucinations and context drifting, and trained professionals will be necessary to catch errors, align AI outputs with real-world constraints, and coordinate across teams. The same logic holds in code. "AI produced this" and "a named developer is accountable for this" are different sentences, and the gate is the exact point where the second becomes true.
It is worth being exact about what the gate is, because "review the AI output" is the version that quietly fails. The gate is not a feeling that the code looked fine; it is a specific verification with a specific object. "The assistant is usually right" is not a check — it is the absence of one, dressed as judgment. "I read it and it seemed correct" is not a check either, because the entire failure mode is output that seems correct. The check is the act of confirming the claim against something that is not the assistant: the method against current documentation, the render path against an actual profile, the behavior against the platform the team supports. A gate that consults the assistant's confidence to clear the assistant's output is not a gate; it is the confident-and-wrong problem with an extra step.
The other thing that stays human is the signature work. Scaffolding and boilerplate are the parts of the loop with no decision in them, which, on this article's working assumption, is exactly why assistance is good at them and exactly why handing them over costs nothing. The distinctive interaction — the behavior that is the reason this build is not interchangeable with another — is the part with the decision in it, and it stays human-defined. An assistant can produce a generic version of an interaction; on the same working assumption, it does not supply the version that is specifically this product's, because that version is a judgment, not a generation. Reduced debugging is the explicit goal of working this way: assistance removes the rework around the parts that never carried a decision. Reduced debugging is not the removal of the gate, and a developer who reads it that way has not sped the loop up — they have moved the debugging downstream and made it more expensive.
What the developer keeps owning
What stays with the frontend developer is short and exact: the result, the platform fit, and the distinctive parts. The result, because a candidate is not a deliverable until a named person commits to it. The platform fit, because, on this article's working assumption, the assistant aims at an answer that works where it is tried, and the developer is accountable for a working answer on the platform the team ships to, which is a stricter condition. The distinctive parts, because they are the decision the build exists to make, and a decision does not have a candidate form.
The working instruction is one sentence: verify against current documentation and real devices, not against the assistant's confidence. On this article's working assumption, the assistant's tone does not reliably signal whether its output is correct, and the only thing that tells correct output from incorrect output is a check against the platform rather than against the tool. A developer who internalizes that has the acceleration without the confident-and-wrong tax. A developer who trusts the fluency has imported the tax and deferred the bill.
This article covers the frontend implementation loop only. How a system developer collaborates with AI — a different surface, different failure modes, a different gate — is covered by another article on this topic and is referenced here as the concept it is, not re-derived. Stated plainly and without either fear or over-promise: AI assistance can make the frontend loop faster at the parts that never held a decision, the frontend developer still owns every part that does, and the gate between those two facts is the whole of working with it well.