verified analytics
Agent harnesses

How we get agents to build a website in one shot: decide first, then build

A harness that keeps a coding agent deciding in plan mode, freezes the decisions, then builds on a private preview with an independent check.

Short answer. Don’t let the agent build until every decision that shapes the site is made and written down. While it scopes the site, the agent stays in plan mode, where it can read but change nothing. It asks one question at a time, each with a recommendation, and logs every answer. We approve the plan, the decisions freeze, and only then does it build, on a private preview that a second agent checks. Nothing goes live until we type yes in the session that owns the server.

What it saved. While we planned the rework of this site, the positioning changed four times in 37 minutes. Each change was an edit to a spec, so nothing was rebuilt. The two earlier runs, a full site and a single page, went from request to live in 1 h 44 min and 1 h 30 min.

The problem: agents build at the first prompt

Ask a coding agent for a website and it starts writing pages straight away. Every guess it makes goes into the pages: who the site is for, what the sitemap is, whether to show prices, which claims to make. You discover those guesses only at the preview, and changing one means rework. Worse, the copy drifts. Each time the agent restyles a section it rewrites a few sentences, so the words you approved last round aren’t quite the words on the page now.

On some sites a guessed claim is more than a style problem. On a research site regulated by India’s market regulator (SEBI), a line like “guaranteed returns”, or an unlabelled testimonial, is a compliance issue. Those decisions have to be made by a person, from the source text, before anyone writes a page.

The approach: separate deciding from building

We wrote this up as a reusable skill called the website harness. It has three ideas.

  1. Decide in plan mode, build in normal mode. While scoping, the agent can read the live site, the brief, regulations and reference sites, but it can’t change anything on any server. It leaves plan mode when we approve the plan, and no earlier.
  2. One owner, one checker. The agent that owns the server and the domain runs the job. A separate agent, which we call the bridge, checks the work and never builds. A builder that grades its own work reports success too often.
  3. The words are written once. A content writer produces plain-text copy files. The design session merges them into pages but never edits the words.

Plan mode deciding, nothing built

  1. D0IntakeRestate the intent, check the inputs load, open the decision log
  2. D1DecisionsOne question at a time, each with a recommendation, logged with its time
  3. D2FormatLayout and sitemap options (full runs only)
  4. D3Sign-offThe checker maps every requirement to a page. The operator approves the plan.Operator’s yes: decisions freeze

Normal mode building on a private preview

  1. B1ContentA writer produces the only copy files
  2. B2DesignIts own session merges the copy; phone and desktop screenshots every round
  3. B3CheckA separate agent reviews the merged preview against the plan
  4. LiveGo liveBackup first, with a one-command rollbackOperator’s typed yes, in the owner’s session

A change to a frozen decision comes back to the operator as one question. It doesn’t reopen the plan.

The gates. Nothing is built until the decisions freeze, and nothing goes live without a typed yes.

In the diagram, the operator is us.

1. Size the job

A full run is for a new site, several pages, a site with regulated claims, or one built from a reference site. Every role and gate runs. A light run is for one page or one flow where the requirements are already clear. Roles with nothing to do are skipped, and the gates shrink to decisions, freeze, build, check and live.

2. Pick the orchestrator by ownership

The orchestrator is the agent that owns the box (the server) and the domain, not whichever agent is the general coordinator. It can see the server configuration, and it’s the one that has to roll back.

3. Ask questions one at a time, each with a recommendation

The agent turns open questions into gate questions and asks them one at a time, each with what it would pick and why. Every answer is logged with its time. Plain facts can go in one batch. Decisions can’t, because a pile of ten questions gets ten rushed answers.

Everything the plan produces lives inside the plan, not in files: the requirements matrix, the decision log, the sitemap and the content inventory. Each requirement traces to a source:

id   element        requirement                                   tag             source
P1   home page      one paragraph, links to every section,        required        operator, 18 Nov 04:53
                    no blog posts
P2   bespoke link   rail, footer and end of posts only;           required        operator, 18 Nov 04:42
                    never in nav or hero
P3   research       no buy/sell calls, targets or return claims;  required        SEBI RA text
                    disclaimer on every note
P4   digest         fix "All issues" link (points to #)           required        live page
P5   reference      newsletter popup on scroll                    example-specific (skip)

Required gets built. Good to have is built if there’s time. Example-specific marks something a reference site does that we deliberately don’t copy. Yours marks something of ours to bring in.

4. Freeze, then build

Our approval of the plan is the freeze. The agent exits plan mode, writes the frozen brief into a shared doc marked with the time, and starts building. After that, a change to a frozen decision comes back to us as one question. It doesn’t reopen the plan.

The build has two parts:

  • Content writer: a background helper agent. It writes every word on every page as plain-text files, within word limits, from the frozen matrix.
  • Design session: a separately named coding session, so we can join it and give feedback directly. It merges the copy into the pages on a private preview marked noindex, which tells search engines not to list it. It sends phone and desktop screenshots every round. If the copy doesn’t fit, it flags the problem back and never trims the words itself.

5. Check the merged preview, then go live

The checker compares the merged preview against the matrix, not the copy and the mock-ups separately, because errors hide in the merge. It also checks footers, repeated blocks across pages, redirects and structured data. Going live needs our typed yes in the owning session, a backup first, and a rollback that is one command.

Worked example: reworking this site

The plan for this site’s rework went through four versions in one sitting, between 04:16 and 04:53 IST on 18 Nov 2026:

  1. A plain-spoken AI implementation and analytics service.
  2. Bespoke solutions, a techniques blog, the AI Digest and finance research.
  3. Blog first. Bespoke work becomes a quiet link in the side rail and footer, and the analytics layer becomes its own product.
  4. A one-paragraph home page with no blog posts, linking to every section.

Each version was a few edits to a written spec. If the agent had built version 1, we’d have thrown away three builds. The decision log for the final version has 8 open questions for us, including prices, the phone number, which credentials can be stated, and whether research belongs on this site or on the regulated one.

Planning also caught something before it could break. The old home page linked to sections with anchors like #system. Browsers never send the part after # to the server, so a server redirect can’t move those links. The plan now has a ten-line script on the new home page that maps old anchors to the new pages, with plain links as a fallback.

A light run looked different. One new criteria page on poshflats.in went from a few decisions to freeze, build, check and live, with the compliance and reference roles skipped.

Results: gate questions, issues caught and time to live

Run Size Gate questions asked Issues caught at the check Request to live
Verified Research site full 16, plus one list of 9 facts 4 notes and 4 compliance questions 1 h 44 min
poshflats criteria page light 3 recorded 0 of 12 checks failed; 1 gap found after go-live 1 h 30 min
verifiedanalytics.dev rework (planning) full 8 open n/a (planning only) 4 versions, 0 rebuilds, 37 min

“Request to live” runs from the request reaching the server-owning agent to the site being public. Both runs were on 28 Oct 2026.

On the full run, 12 of the 16 questions were scoping decisions and 4 were choices on the mock-ups. The check passed the copy with 1 wording note and the mock-up with 3 notes for the merge: incomplete footer links, a missing footer line, and a mix of “we” and “I”. It also sent back 4 compliance questions.

On the light run, decisions made before the request reached the owning agent weren’t counted, so 3 is a floor. All 12 checks passed before go-live. An outside check three minutes later still found one gap, a missing privacy line.

Cost. The cost is our time at the gates: the questions above, plus one look at the screenshots each round. We counted the questions and did not time the answers. Tokens per run: not recorded. Both runs shared one long session with other work, so a per-run figure would be an estimate. We now run each build in its own session, so its tokens can be counted.

Failure modes we hit

  • “Spawn agents” was read as “use background helpers for everything.” Design needs its own session. Now every role in the skill names how it runs: background helper or its own session.
  • A relayed approval didn’t count. The server-owning agent refused to read code or take screenshots on an approval relayed through the coordinating chat. It went ahead once we typed the approval in its own session. We kept that rule: the yes has to be typed where the action happens.
  • Promises the system can’t keep. A line like “we’ll reply within 24 hours” is easy for a writer to add and hard for a box to honour. The rule is to flag it before go-live, not soften it quietly.
  • Redirecting URL anchors. Anchors never reach the server. Plan the redirect table at intake, not at go-live.

What we’d do differently

  • Write the redirect table and the list of routes to preserve on day one. On this server those include pages and a login-protected app that the new build must never overwrite.
  • Put word limits in the content prompt from the start, so the design session never has to trim copy.
  • Ask for phone and desktop screenshots from round one, not only once the layout feels done.

Use it: the gate list to copy

The skill is short. Copy its gate list into your own setup:

D0 intake      (plan mode)  restate intent, check inputs load, open decision log
D1 decisions   (plan mode)  one question at a time, each with a recommendation, logged with time
D2 format      (plan mode)  layout or sitemap options (full runs only)
D3 sign-off    (plan mode)  checker maps every requirement; operator approves → freeze → exit plan mode
B1 content     (build)      writer produces the only copy files
B2 design      (build)      own session merges copy on a private noindex preview, screenshots each round
B3 check       (build)      checker reviews the merged preview against the matrix
Live                        operator's typed yes in the owner's session; backup first; one-command rollback

We build bespoke AI systems for businesses

Tushar writes about AI techniques he has implemented. Published by Verified Analytics, Unicorn Technologies.