By Zahi Raifer
Most small business websites start as one page. That is how Orivox builds them too: the owner answers a few questions in a short conversation (what the business does, the main call to action, a phone or WhatsApp number), and the model returns one complete page of HTML and Tailwind in a single pass.
One page is the right place to start, and a bad place to stay. A few weeks later the owner wants a page for each service, a separate contact page, or a long section moved somewhere it can breathe. That is the moment an AI editor can do real damage, because growing a site touches more than one file at once.
This post is about how we handle that growth: the tools the planner gets for it, and the rules that keep a one-page site from falling apart as it becomes a five-page site.
Pages are part of the vocabulary, not a special case
The planner never writes files. It writes a list of operations, and Python applies them. The grammar has 14 verbs, and one of them crosses page boundaries: move_to_page. Like every other operation, it addresses an element by its id (for example [data-ai-id='a0f0']), so "move the opening hours to the contact page" is one precise instruction rather than a cut, a retype and a hope.
Alongside the edit tool, the planner has page-level tools among its 11: it can create a page, create a page per card, read another page, and rewrite a whole page. That means the common requests for a growing site ("give each service its own page", "add an About page", "move the FAQ off the home page") have a named path instead of being improvised from raw HTML.
The page-level tools follow the same loop as everything else. An edit call completes the turn. The other tools feed their result back so the planner can continue, within a fixed budget of six model calls. A request to split a home page into several pages doesn't turn into an open-ended agent session.
Shared parts stay shared as the site grows
The first thing that breaks when people copy pages by hand is the shared layout. Someone fixes the phone number in the footer of one page and forgets the other four.
We avoid that by construction. The header, footer and head scripts are kept as partials with include markers, so a change to the footer reaches every page at once. When the planner works on a page, the editing service assembles that page in memory with its partials inlined, so the model sees the page the way a visitor does. The partials themselves stay single files on disk.
So adding pages doesn't multiply the places a change has to be made. A five-page site still has one footer.
A page is read before it is written
Multi-page editing raises a question a one-page site never asks: which version of the other page is the model working from?
Our answer is a save-time rule written in Python: a page is read before it is written. Edits to another page are based on that page as it is now, not on what the model remembers from three turns ago or on a guess. One of the planner's tools exists for this. It reads another page, and that result goes back into the planner before it acts.
The same discipline protects content in transit. When text moves, a separate check confirms that moved text is preserved. Splitting or moving a paragraph keeps every sentence. Moving a section to a new page is exactly the kind of operation where a sentence could quietly go missing, so the rule doesn't trust the model to be careful.
Every new page inherits the same guarantees
A new page isn't a second-class page. Every save runs through the same deterministic checks, whichever page it touches and whichever tool produced it:
- A save may never empty a live page, so a working page is never replaced by an empty or near-empty one.
- A whole-page rewrite keeps every section the owner did not name.
- Image addresses are re-checked on every save, so every image keeps loading at the size the page asked for. Our resizing service serves the precise sizes each page registers.
- The business logo is protected and never swapped for a placeholder.
- The contact form's privacy notice stays next to the form.
- A claim of success needs a real change. The assistant can't report a new page that wasn't actually created.
The build-time rules carry over too. Every element gets a short, unique data-ai-id, so later edits on the new page are as precise as edits on the home page. And Hebrew is built in at the root: the root element declares lang and dir, and the page loads a font with full Hebrew coverage.
Growth is reversible, one turn at a time
Turning one page into several is a structural change, and owners sometimes change their minds. So the structure has to be as undoable as a headline.
Each edit turn is its own commit in the project's Git repository, and the original site is committed as a baseline before the first edit. One of the planner's tools restores an earlier version. If "a page per service" turns out to be too much, going back is a restore, not a manual reassembly.
There is also exactly one writer at a time. A single project lock is held for the whole turn by whoever is writing: an edit, a manual commit, a site copy or a background job. A multi-page change can't interleave with another change halfway through. Either the whole turn lands as one commit, or it doesn't.
A side effect on the model's context
The planner reads the page as raw HTML. We benchmarked raw HTML against a compact JSON summary on real edit requests: raw HTML gave the same understanding at about half the tokens. Very large pages switch to the summary automatically.
Across 15 real pages, the page with header and footer inlined came to a median of 16,273 tokens (range 6,302 to 17,767), out of a total context of about 42,000 tokens per turn. My own takeaway, not a measured result: a site that grows by adding pages, rather than by piling everything onto one page, keeps each page small enough that the model sees every element in full.
What I'd suggest to anyone building this
If you are building an AI editor for sites that will grow, don't treat new pages as a special mode. Make page creation and cross-page moves first-class operations. Keep shared layout in one place. Make the system read a page before it writes it. Run the same checks on every save, whatever page it touches. And make every turn a commit, so structural changes are as easy to undo as small ones.
Orivox is the product this describes, an AI website builder with Hebrew built in: https://www.orivox.pro/
Disclosure: I'm the founder of Orivox, and this post describes our own system.
