How I Use AI Coding Agents to Ship Client Websites Faster Without Losing Quality

By Eoin Villarin, 2026-10-11, updated 2026-10-28

The exact workflow I use with AI coding agents on client websites in 2026: context files, guardrails, automated quality gates, and the code I still write by hand.

How can a freelance web developer use AI coding agents without losing quality?

AI coding agents speed up client web work when they operate inside a strict workflow: an AGENTS.md brief with a definition of done, one small task per branch, no production credentials, automated lint, type, unit and end-to-end checks, and human review of every diff. Payments, authentication, pricing logic and live data migrations stay human-written or line-by-line reviewed.

Key takeaways

  • In the 2026 Stack Overflow Developer Survey, coding assistants and agents were the top AI use case at 66%.
  • METR found experienced open-source developers took 19% longer on tasks using early-2025 AI tools, despite feeling faster.
  • A USENIX Security 2025 study found hallucinated packages averaged at least 5.2% for commercial models and 21.7% for open-source models.
  • The Done means section of AGENTS.md lists verifiable checks, such as shopify theme check and Playwright tests passing.
  • No new dependency is added until its package page, maintainers, download history and licence have been checked.

AI coding agents can now scaffold a Shopify section, refactor a WordPress plugin or write a Playwright test suite in minutes. They can also confidently invent an npm package, skip an accessibility requirement or quietly break a checkout. The difference between those outcomes is rarely the model. It is the workflow around it.

I have been building websites for clients for more than eight years, across Shopify, WordPress and custom Next.js apps. In 2026, agents are part of almost every project I ship, but they work inside a process with clear rules, automated checks and a human, me, who is accountable for every line that goes live.

This post is that exact workflow: what I hand to agents and what I never do, the context files and guardrails I use, the quality gates every change must pass, and what it all means for clients in cost, timelines and privacy.

What AI coding agents are actually good at in client web work

The hype and the skepticism are both partly right, and the data reflects that. In the 2026 Stack Overflow Developer Survey, coding assistants and agents were the most common AI use case at 66%, yet trust was conditional: 48% said they trust AI when they can easily validate the answers.

Robotic arm working inside an automated tape library, handling repetitive tasks
Agents handle the repetition, humans keep the judgement. Photo: rawpixel, CC0

Speed is not guaranteed either. A randomised study by METR found that experienced open-source developers took 19% longer on tasks when using early-2025 AI tools, even though they believed they were faster. METR describes that result as a snapshot of early-2025 tools, but the lesson still holds: without a good process, AI can feel productive while slowing you down.

Google's 2025 DORA report on AI-assisted software development describes AI as an amplifier: strong teams get better, while teams with weak practices see their problems intensify. It also found that AI adoption improved delivery throughput while still increasing delivery instability. That matches my experience exactly, so this is how I divide the work:

TaskHow well agents handle itMy rule
Boilerplate: Liquid sections, block patterns, API routesVery wellAgent writes, I review the diff
Refactoring and renaming across filesVery wellOnly once tests are in place
Writing tests and fixturesWellI check the assertions test real behaviour
Migrations and redirect mapsWellAgent drafts, I verify against real data
Visual design and brand feelPoorlyHuman-led, always
Payments, auth and pricing logicRiskyI write or review it line by line
Accessibility detailsInconsistentAutomated checks plus manual keyboard and screen reader testing
Performance budgetsInconsistentMeasured with Lighthouse and real-user data, never assumed

My setup: AGENTS.md files, permissions and guardrails

Agents are only as good as the context they get. Every client repository I work in has three things in place before an agent touches it.

An AGENTS.md file as the project brief

AGENTS.md is an open, plain-Markdown format for giving coding agents project instructions. Since December 2025 it has been stewarded by the Linux Foundation's Agentic AI Foundation alongside the Model Context Protocol, and most major agents read it automatically. Here is a trimmed version of what I put in a Shopify theme repository:

# AGENTS.md

## Project
Custom Shopify theme for an Australian retailer.
Liquid, vanilla JavaScript and CSS. No frameworks.

## Commands
- Dev: shopify theme dev --store client-dev
- Lint: shopify theme check
- Tests: npm run test:e2e

## Rules
- Never edit layout/theme.liquid without asking first.
- Never add an npm package or Shopify app without approval.
- Every section needs schema settings with sensible defaults.
- Images use image_url with width and srcset, and always have alt text.
- Keep JavaScript under 20 KB per section. No jQuery.
- Australian English in all customer-facing copy.

## Done means
- shopify theme check passes with no errors
- Playwright tests pass
- Screenshots at 375px and 1440px are attached to the pull request

The "Done means" section is the most important part. It turns a vague request into something the agent can verify itself before it reports back.

Permissions and sandboxes

  • Agents work on a branch or a separate git worktree, never directly on the main branch.
  • There are no production credentials in the environment. Agents get a development store, a local WordPress install or a staging database with anonymised data.
  • Any command that deploys, deletes data or touches payment settings needs my explicit approval.
  • Secrets live in environment variables that are never committed and never pasted into prompts.

Connected tools, kept to a minimum

Through the Model Context Protocol, agents can read documentation, drive a browser or query a database. I connect only what a task needs, usually framework docs and a local browser for checking layouts, and almost never live client systems. Frameworks are helping here too: Next.js now writes a version-matched AGENTS.md block that points agents at the docs for your installed version, which I cover in what's new in Next.js 16.4 and React 19.3.

Step by step: how a client website moves through my workflow

Here is how a typical build flows, from first call to launch:

  1. Discovery and design are human. I talk to the client, define goals, sitemap and content, and design the key templates. Agents do not decide what a business needs.
  2. Specs become small tasks. Each section, template or feature becomes a ticket with acceptance criteria an agent can check, such as "the product grid shows two columns below 768px".
  3. I set the patterns, agents follow them. I build the first component of each type by hand, so the agent has a reference to copy rather than inventing its own conventions.
  4. One task, one branch, one diff. Small diffs are reviewable. Big ones hide bugs.
  5. Automated gates run on every change. More on these below.
  6. I review every diff before merging, reading the code itself, not just the agent's summary of it.
  7. The client reviews on staging, on real devices and with real content.
  8. Launch follows a human checklist: redirects, analytics, forms, payments, backups and monitoring.

The biggest time savings show up in steps 3 and 5: repetitive sections, test writing and lint fixes. That saved time goes back into design polish, content and testing, which is what clients actually notice.

The quality gates that keep AI-written code client-ready

Every change, whoever or whatever wrote it, has to pass the same checks before it reaches staging. No exceptions for small fixes, and no exceptions for code I wrote myself.

Row of turnstiles with glowing card readers, like automated checks every change must pass
Every change passes the same automated gates. Photo: MTAPhotos, CC BY 2.0

For a Next.js project, the scripts in package.json look like this:

{
  "scripts": {
    "lint": "eslint .",
    "typecheck": "tsc --noEmit",
    "test": "vitest run",
    "test:e2e": "playwright test",
    "check": "npm run lint && npm run typecheck && npm run test && npm run test:e2e"
  }
}

AGENTS.md tells the agent a task is not done until npm run check passes, and continuous integration runs the same command on every pull request. Nothing depends on the agent being honest about its own work.

An agent's summary of its own work is a claim, not evidence. The evidence is a passing test suite and a diff that a human has actually read.

Vet every new dependency

Language models sometimes recommend packages that do not exist, and attackers register those names to catch the installs. A USENIX Security 2025 study of 16 code-generating models found that hallucinated packages averaged at least 5.2% for commercial models and 21.7% for open-source models. My rule is simple: no new dependency until I have checked the package page, maintainers, download history and licence myself.

Measure performance and accessibility, never assume them

Agents will happily add a carousel library or an unoptimised hero video. Lighthouse CI, automated axe accessibility checks and real-user Core Web Vitals catch those regressions before clients do. In my experience, the metric AI-generated JavaScript hurts most often is Interaction to Next Paint, which I explain in my INP guide.

Where I still write code by hand

Some code is too costly to get subtly wrong. For these areas, an agent may help me explore options, but I write or review every line myself:

  • Payments, checkout and discount logic, including Shopify Functions.
  • Authentication, user roles and anything that touches personal data.
  • Custom pricing calculations, like the dimension-based pricing on the Century Foam & Rubber Shopify store, where customers order foam cut to size.
  • Data migrations and redirect maps on live sites, where one wrong rule can wipe out years of search rankings.
  • Security hardening on WordPress, such as file permissions, login protection and plugin vetting.

This is also why I am cautious about fully AI-built sites for established businesses. I compared what AI builders can and cannot do in vibe coding vs hiring a web developer.

What AI-assisted development means for clients

Clients often ask whether AI makes websites cheaper. Honestly, it shifts where the time goes more than it removes it.

  • Faster first drafts. Scaffolding, repetitive sections and test coverage take less time, so prototypes reach clients sooner.
  • More time on what matters. Saved hours go into design refinement, content, SEO, accessibility and testing on real devices.
  • The same accountability. A fixed-price quote covers the outcome. If an agent introduces a bug, fixing it is my job, not an extra line item.
  • You own the code. AI-assisted code lives in your repository, with the same documentation and handover as any other project.

How I protect client data and privacy when using AI

Speed means nothing if a client's customer data ends up somewhere it should not. These rules apply on every project.

Credit cards and a combination padlock on a keyboard, a reminder to protect client data
Client data never goes into a prompt. Photo: rawpixel, CC0
  • I use business or team plans whose terms say inputs are not used for model training, and I re-check those terms when they change.
  • Customer data, credentials and private keys never go into prompts. Agents work with anonymised or sample data.
  • If a contract or NDA restricts third-party processing, agents stay off that codebase entirely.
  • Clients know AI tools are part of my process, and they can ask me to opt their project out.

Frequently asked questions

Do AI coding agents replace web developers?

No. Agents are excellent at producing code quickly, but someone still has to understand the business, design the experience, decide what to build, review the output and take responsibility when something breaks. In my work they replace repetitive typing, not judgement. The developers who benefit most are the ones with strong fundamentals and disciplined review habits.

Which AI coding tools do you use?

I use a mix depending on the task, including terminal-based agents for multi-file changes and editor assistants for small edits. The specific tool matters less than the setup around it: an AGENTS.md file, small tasks, branch isolation, automated checks and human review. Those habits carry over between tools as the market changes, which it does every few months.

Is AI-generated code safe for a business website?

It can be, if it meets the same standards as human-written code: code review, automated tests, security checks and dependency vetting. The risk is not that AI wrote it, but that nobody checked it. Ask any developer who uses AI to explain their review and testing process. If they cannot answer clearly, treat that as a red flag.

Will using AI make my website cheaper?

Sometimes a little, but mostly you get more for the same budget. Agents shorten scaffolding and repetitive work, and that time usually goes back into design polish, content, SEO and testing. Be wary of quotes that look dramatically cheaper because of AI, since they often skip the review and testing that keep a site reliable after launch.

Next steps: build with speed and accountability

AI coding agents are now a normal part of professional web development. Used well, they let a solo developer deliver the testing, documentation and polish that used to need a team. Used carelessly, they ship confident bugs faster than ever before.

If you want a website or store built with modern tooling and an old-fashioned commitment to quality, browse my case studies and tell me about your project.

Related reading