By Zahi Raifer
There is a tempting way to build an AI editor for websites: hand the model the page, ask for the new page, and save whatever comes back. It demos well. It also means the model's worst output goes straight to a customer's live site, and that every small request ("make the FAQ cards dark") risks quietly changing things nobody asked about.
At Orivox, an AI website builder for Hebrew-speaking businesses, we went the other way. The model does not write files. It writes a plan made of small, named operations, and ordinary Python decides whether and how to carry that plan out.
When a site is first built, Python walks the generated page and gives each element a short, unique data-ai-id. From then on every edit points at that id, not at fragile CSS paths. Shared chrome (header, footer, head scripts) lives once as partials. The untouched original is committed to Git before any edit runs.
The editing vocabulary fits on one line:
set_text, replace_html, insert_before, insert_after, append_html, prepend_html, remove, set_attr, remove_attr, add_class, remove_class, move_before, move_after, move_to_page.
Each verb targets one element by id. A typical request maps onto a small number of them. "Make the FAQ cards dark" becomes a few class changes; nothing else on the page moves. The model is describing a diff, not reproducing a document.
The model sits in step 4 only. Everything before is plumbing; everything after is deterministic code. Other tools return within a six-call budget, but an edit ends the turn.
You can inspect the plan before it lands — an operation list is plain data. Outputs stay small (in our benchmark, median planner reply was 141 tokens). Code gets the final word: no save can blank a live page; relocated text must arrive intact; logo and form privacy notice are off-limits; "done" is only reported when something changed. Undo is a Git restore.
Because the editing service accepts a plain list of operations, the same 14-verb contract is exposed over MCP. Whether Claude or our planner wrote the list, it meets the same gates and lands as the same kind of commit.
None of this makes the model smarter. It makes the system around the model boring in the right places, which is what lets you put an LLM in front of real customers' live sites. The grammar described here powers every edit in Orivox.
Zahi Raifer is a software developer with 23 years of experience in AI development, Python, .NET and databases, and the founder of Orivox.