All posts

Edit an existing website with AI while keeping control of its code

Plan one website edit, review the preview and source diff, check mobile and affected links, then publish with a rollback revision you control.

· CodePress

To edit an existing website with AI, first locate its source and identify who can publish it. Request one small change, inspect both the preview and the source diff, check affected behavior, then approve publication with a known rollback revision. If your site lives inside a hosted builder, you may need to rebuild its public pages before you have a codebase to edit.

Start with the source you actually have

If you already own a repository, work from its current revision and existing build instructions. Confirm that it is the source deployed to your domain; an old ZIP or a browser's downloaded HTML may omit the application that runs the site. Give the agent access only to the project and services the edit needs. Keep secrets out of the request.

If you only have a builder login, decide whether leaving is necessary for this edit. Changing opening hours in the current editor may be easier than moving the site. CodePress's public migration page describes reading a public URL and rebuilding it as React. That is a separate project from editing the builder's original source. It requires permission to reuse the site's content and assets; public access alone does not grant that right.

CodePress describes carrying over pages, text, images, colours and fonts. Its hosting FAQ says animations, working forms and blog posts may need follow-up edits. A preview that resembles your contact page does not prove it sends messages, and a list of posts does not prove that a private CMS or its publishing workflow was transferred. These are current first-party product descriptions, checked October 29, 2026, rather than an observed migration result.

Write down the controls before the edit

  • Source: repository or downloaded project, current revision, build command and dependency lockfile.
  • Rights: permission for the copy, photographs, fonts and any third-party components you will retain.
  • Preview: a development URL with representative content and a way to compare the current page.
  • Publish owner: the person who approves deployment and controls the host and domain.
  • Recovery: a saved source revision, previous publish and instructions for restoring the working version.

Read what owning your website code means if any of these are unclear. Possessing source gives you something to inspect and move; it does not transfer a vendor's private database or remove the need to maintain dependencies, credentials and backups.

Worked example: change opening hours

Hypothetical example. The request, diff and checks below are an illustration for a small business site, not a customer migration or a recorded AI execution. Assume its React source is already available and the current hours appear in one visible paragraph.

On the Contact page, change Saturday opening hours from 9–5 to 10–4. Keep the address, phone number, form destination and layout unchanged. Find any other copy of these hours and report it before changing it. Show the source diff and a preview. Do not publish.

The intended source change might be as small as this. The actual file and representation will depend on your project:

- <p>Saturday: 9–5</p>
+ <p>Saturday: 10–4</p>

Ask where the text comes from before accepting this diff. If the paragraph is generated from business-hours data, update that data instead of a rendered copy. Search for duplicates in the footer, translated pages and structured opening-hours metadata. Confirm the intended time zone and any seasonal exceptions with the owner. Do not silently change every occurrence of “9–5.”

Check the page and the underlying change

  1. Copy: confirm Saturday says 10–4 in the preview and any approved repeated location. Other days remain unchanged.
  2. Layout: inspect desktop and a narrow phone viewport. Check line wrapping, contrast, navigation and whether the contact button remains reachable.
  3. Diff: inspect every changed file. Ask about unexpected dependency, configuration, tracking, styling or form changes before accepting them.
  4. Behavior: follow the Contact link, check phone and email destinations, and compare the form's fields and destination. Use an approved test inbox and synthetic data only if a submission test is authorized.
  5. Build: run the project's relevant build and existing checks. Resolve a failed check before declaring the edit ready.

If the preview is right but the diff is broader than the request, ask for an explanation or a narrower revision. If the diff looks right but the page breaks, investigate the runtime before publishing. Neither view alone proves the edit works.

Make publication a separate decision

Have the publish owner approve the reviewed revision through your existing process. Save its identifier and the previous working revision. After publishing, check the actual public page, its links and mobile layout; a development preview is not evidence that the production domain changed. Restore the previous publish if the live change fails, and verify the restored page. If deployments also change data, plan data recovery separately.

CodePress's migration terms, checked October 29, 2026, require a card on file to publish or download code, described as $0 today. That is not free ongoing hosting or unlimited AI editing. Check current hosting and AI terms, or use the hosting and AI cost worksheet before budgeting recurring work.

When your current editor is the easier choice

If the task is routine text editing and the builder already serves your needs, use its editor. For an existing code site, a source-based text editor may also be enough: Refino describes writing text edits back to existing source (vendor description checked October 29, 2026). That narrow capability is not evidence of arbitrary AI application changes. For a larger builder exit, compare the tradeoffs in CodePress vs Webflow or CodePress vs Squarespace first.

Next action: write one edit request and identify its source and publish owner. If you need a builder-site rebuild first, inspect your public site with CodePress, then validate what needs follow-up before moving the domain.