You already know an AI coding agent can build a website. The question worth asking in 2026 isn’t can it. It’s this: what does the environment around the agent do to the output?
Because here’s what we keep seeing: the same model, in the same session window, produces wildly different results depending on what’s already in the repo. A blank folder gives you a plausible-looking homepage with a lorem ipsum card still in it. A framework with opinions, guardrails, and a machine-checkable definition of “done” gives you something you could invoice a client for.
We ran the comparison we would want to see before betting agency delivery on agents. Three builds of the same fictional client site, a homepage for Agent Agency, an AI-automation shop, under three different conditions.
The experiment
The brief, identical all three times: Build the homepage for Agent Agency. It needs a hero, three services (Workflow Automation, AI Chat Agents, Data & Insight Pipelines), a stats band, a testimonial, and a CTA. It must be presentable to a paying client.
The runner, identical all three times: One coding agent, one model, one 60-minute session budget per build. No human steering between the start gun and the buzzer. The agent could run whatever the environment allowed.
| Build A | Build B | Build C | |
|---|---|---|---|
| Starting point | Empty folder | Roots Sage 11 | WP Rig 3.5 |
| What the agent got | A brief and a directory | composer create-project roots/sage | npx @wprig/create-rig + npm run ai:setup |
| Feedback loop | Self-judged | Build output only | ai:check + inspect + audit gates |
| Time budget | 60 min | 60 min | 60 min |
We scored each build on five axes: visual quality, accessibility, editor integration, code quality, and the number of improvement cycles completed inside the budget. Editor integration matters here because a WordPress theme has to work in WordPress, not just look good as a static page.
Build A: from scratch, competent but forgettable
Score: 4/10. Cycles completed: 1.

The agent produced a working page in about 20 minutes and spent the rest of the session not really knowing what to do with itself.
You’ve seen this page. Centered hero on a blue-purple gradient. Three equal cards in a row. A stats band. It’s fine. It’s also the homepage equivalent of small talk:
- Inconsistent everything, because nothing enforced consistency. Border radii of 4px and 16px in the same section. Margins of 13px and 37px. Two font families that do not agree with each other. Every color is a hard-coded hex value, and most of them are near-duplicates.
- Accessibility misses with nobody to catch them. A
#999-on-white paragraph fails contrast by a wide margin. A nav toggle has no aria-label. There is no skip link and no focus styling. The agent knows these things matter, but with no linter, gate, or checklist, knowing and doing drift apart. - The lorem ipsum tell. One service card shipped with placeholder text still in it. With no theme-review audit to fail, “done” was whatever the agent decided done meant.
- Zero WordPress integration. What it built was a webpage, not a theme. No
theme.json, no block editor story, no templates.
One cycle, no feedback, generic output. The agent did not fail here. The environment failed to give it anything to be better than.
Build B: Roots Sage 11, a beautiful screenshot on a fragile foundation
Score: 7/10. Cycles completed: 2.

Roots Sage is genuinely good, and Build B looked like it. This was the best-looking screenshot of the three: a modern Tailwind aesthetic, soft neutral palette with an emerald accent, gradient-blob hero, rounded cards with real hover states, and generous whitespace on a consistent 4px grid.
Sage’s strengths are real, and the agent benefited from them:
- Opinionated stack equals fewer decisions. Blade templating, Acorn (Laravel components), Tailwind v4, and Vite gave the agent a clear path. It did not waste cycles inventing an architecture because
composer create-projectanswered the architectural questions before they were asked. - Tailwind to theme.json generation. Sage’s killer trick is that your Tailwind config generates the block editor’s
theme.jsonautomatically. Palette and font settings show up in the editor with zero extra configuration. That is a real, thoughtful feature.
But two structural problems showed up, and both are about what happens after the first good pass:
1. No feedback loop. Sage ships no test suite, no linting gate, and no theme audit. The agent built the page, saw Vite compile cleanly, and called it done at cycle two. The heading hierarchy jumps from an h2 to an h4. The testimonial is attributed to “John Doe, CEO” because the agent invented placeholder content and nothing stopped it. A decorative image also ships with an empty src. It is a screenshot-perfect build with nobody checking the details.
2. The Laravel tax. To work effectively in Sage, the agent had to be fluent in Blade directives and Acorn’s Laravel idioms. That is a second framework layered on top of WordPress. It managed, but every minute spent reasoning about @props and service providers was a minute not spent on the design or integration. When a human teammate who is not a Laravel developer opens that theme later, the maintenance story becomes the agency’s problem.
Sage is an excellent framework for developers who already think in Laravel. For an agent, it is a framework that trusts the builder, and the builder is a stochastic parrot on a clock.
Build C: WP Rig 3.5, where the guardrails are the product
Score: 9/10. Cycles completed: 5.

Same agent. Same brief. Same 60 minutes. The difference was not talent. WP Rig turned the session from “generate and pray” into a closed feedback loop, five cycles deep.
The build came out looking like a design-system project because, mechanically, it was one:
- The palette was enforced, not chosen. WP Rig’s design tokens v2 (
config/tokens.json, DTCG-format, Figma round-trip) feed a generator that writestheme.jsonand validates WCAG contrast at build time. The agent could not ship a failing color pair if it tried. The build would yell at it. That is why the navy/electric-blue/amber system in the final design is coherent and AA-compliant. A machine checked it, instead of leaving it to a token-guesser. - The agent could see. WP Rig ships a Playwright-based
inspecttool that returns the semantic DOM, element rects, computed layout, spacing, sibling proximity, overlap detection, and screenshots. The agent did not imagine the layout. It measured it, noticed the hero panel and text column were fighting on the first pass, and fixed the grid. That is the difference between a layout that probably works and one that measurably does. - Every cycle ended with a gate.
npm run ai:checkchains end-to-end tests, screenshot comparison, and block/pattern/CSS/JS linting. Invalid block markup gets caught against core block schemas before it ever reaches the editor. The custom stylelint rules, including no hard-coded colors, no undefined custom properties, and a specificity budget, mean the CSS in the final build is uniformly token-driven. That is why it looks like one hand wrote it. - The 28 skills are the senior-dev brain.
.ai/skills/contains step-by-step recipes for design tokens, block architecture, accessibility, theme review, and even a self-review protocol the agent is required to run before claiming done. The agent did not have to remember best practices. It read them at onboarding and had them on tap. - Onboarding took four minutes, once.
npm run ai:setupgenerated the agent’s own rule files (CLAUDE.md, .cursorrules, copilot-instructions, and friends) from WP Rig’s canonical AGENTS.md. It also loaded the agent-state tracker so the next session does not redo setup and pre-seeded PROJECT_RULES.md, the agent’s long-term memory of the project’s conventions. - The WordPress parts shipped WordPress-shaped. Templates and patterns validated.
theme.jsonv3 generated from tokens. Customizer-ready components included. And when the client’s copy edits arrive via the Site Editor,rig:bakecan move those edits back into the theme’s files as reviewable artifacts.
Five cycles, each one ending in machine-verified checks, each one measurably better than the last. The final design had an asymmetric editorial hero with a live “agent console” panel, a tabular-numeral stats band, real testimonial attribution, a skip link, focus-visible states, and prefers-reduced-motion support. That is what a good feedback loop accumulates into.
The scoreboard
| Axis | A: Scratch | B: Sage 11 | C: WP Rig 3.5 |
|---|---|---|---|
| Visual quality | 4/10 | 7/10 | 9/10 |
| Accessibility | 2/10 | 6/10 | 9/10 |
| Editor integration | 1/10 | 6/10 | 9/10 |
| Code quality | 3/10 | 6/10 | 9/10 |
| Improvement cycles in budget | 1 | 2 | 5 |
| Overall | 4/10 | 7/10 | 9/10 |
The pattern across the three builds is clear: quality did not track the framework’s cleverness. It tracked the number of independent feedback channels the agent had. Scratch had zero, only self-judgment. Sage had one, whether it compiled. WP Rig had four: does it compile, does it pass the gates, does it measure correctly in a browser, and does it pass theme review.
The feature-by-feature breakdown
What actually moved the needle, in order of impact:
ai:check, the instant feedback loop. This was the single biggest factor. Five cycles happened because each cycle had a cheap, fast, objective referee. Agents improve dramatically when “done” is checkable.- The
inspecttool. Giving the agent eyes, with structured layout measurement plus screenshots, closed the gap between “generates plausible CSS” and “verifies the rendered result.” - Design tokens with a WCAG gate. Contrast validation at build time turned accessibility from an aspiration into a constraint the agent works within, not against.
- The skills library and AGENTS.md protocol. Encoding house standards as files the agent reads is better than hoping the model remembers them. That includes CSS architecture budgets, block-validation-before-editor, and mandatory self-review.
- The audit suite. Eleven theme-review checks with severity levels make the difference between “probably submission-ready” and a machine-checked report.
- The docs MCP bridge. The agent could query wprig.io’s documentation directly instead of guessing from memory. That means fewer hallucinated APIs.
Honest caveats
Because this only means something if we’re straight with you:
- WP Rig’s onboarding is real overhead, briefly.
ai:setup, reading AGENTS.md, and the onboarding protocol take about four to five minutes before the first keystroke. In a 60-minute session, that is cheap. In a 10-minute fix, it is friction. The agent-state file exists so you only pay that cost once per project. ai:checkcovers the front end. It chains e2e, screenshots, and block/pattern/CSS/JS linting. The PHP-side standards, PHPCS and PHPStan, are separate composer scripts, not part of that single gate. Wire them into your loop yourself.- Sage is a legitimate choice. If your shop is Laravel-fluent and you love Tailwind, Sage 11 is actively maintained (v11.2.x, MIT, 13k+ stars), and its Tailwind-to-theme.json generation is best in class at that one job. This comparison is not “Sage is bad.” It is that Sage optimizes for developer experience, while WP Rig, uniquely as far as we can measure, optimizes for agent experience too.
- And the obvious one: a well-steered human plus an agent on any stack beats an unsteered agent on the best stack. What WP Rig changes is the floor, meaning how good the output is when nobody is watching.
What this means for agencies
The theme starter you choose in 2026 is no longer just a scaffolding decision. It is a supervision decision. Your agents are already writing your themes; the question is whether they are doing it in an environment that checks their work.
A blank folder trusts the model’s averages. Sage trusts your Laravel fluency. WP Rig bets on the loop: structure the agent can read, skills it can follow, tools it can see with, and gates it cannot talk its way past.
The third build looks like it cost $5k. The loop that produced it costs nothing to run. That trade is the whole article.
Agent Agency is fictional. The guardrails are real. Every feature described here ships in WP Rig 3.5.0, and you can verify each one in the repo. Run your own three-build test. The design is the fun part, but the scoreboard above is the part that should make you think.
