Skip to main content
The preview sits next to the chat. When a build finishes, your app appears there and works like the real thing: click buttons, fill in forms, play the game. There’s nothing to install.
The AI Code Zero workspace with the chat on the left and a tip calculator app running in a phone frame on the right, under the preview toolbar

The chat on the left and the live preview on the right, with the toolbar along the top.

While your app builds

The preview shows the AI Code Zero logo drawing itself, with the stage the build is at underneath and a row of dots for how far along it is. The stages are:
  1. Understanding your idea
  2. Reasoning (only when the AI is thinking, see Reasoning)
  3. Writing the code (on a multi-page website, the line below names the page being written)
  4. Checking for errors
  5. Finishing up
A count of lines written sits at the bottom. Click Show code to watch the code appear, and Hide code to go back. To remove the Show code button, turn off Live code preview in Settings → Workspace. If AI Code Zero finds an error after a build, the screen switches to Auto Error Checking while it fixes it. Click Cancel to stop. See Automatic error fixing.

Choose a device view

Three keys in the toolbar set the screen size. Hover over one to see its size.
  • Smartphone shows your app in a phone frame.
  • Tablet shows it in a tablet frame.
  • Desktop shows it at desktop width.
Next to them:
  • Rotate switches a phone or tablet between portrait and landscape.
  • Full size (Desktop only, on by default) fills the preview with your app at its real size. Click it to see a fixed-size desktop window scaled to fit.
  • Reload restarts your app.
  • Zoom out and Zoom in change the zoom. The box between them shows Auto when the preview fits the pane. Click it to go back to fitting. Zoom is off in Full size.
Apps and games open in Smartphone view, and websites in Full size. AI Code Zero remembers your choice. In a narrow window, some keys move into the Preview tools menu, and Chat and Preview take turns on screen. On a phone or tablet, your project always fills the screen.

Browser bar and pages

In Desktop and Full size views, a browser bar above your app has Back, Forward and Reload buttons that work inside your app. Phone and tablet views leave it out. When a website has several pages, use the page picker in the toolbar. For an imported site, the bar shows an address like aicodezero.local/about that you can edit to go to another page.

Open it in a new tab

Click Open in a new tab to try the current version in a full browser window. It isn’t available for imported sites. To put your project online, use the publish button beside it. See Publish to the web.

Read the code

Click Code at the left of the toolbar to read the code behind your app, and Preview to go back. For an imported site, this tab is called Files and shows every file.
The Code tab showing the app's HTML with line numbers, and Edit and Copy buttons at the top right

The Code tab. Click Edit to change the code yourself.

Two settings in Settings → Workspace affect it:
  • Code view shows or hides the Code tab.
  • Auto Follow Code scrolls along with the newest line during a build.

Edit the code yourself

If you know some HTML, CSS or JavaScript, you can change the code by hand.
1

Open the page

Click Code and pick the page you want.
2

Click Edit

It’s at the top right of the code.
3

Make your change

Type your changes. Tab indents.
4

Save

Click Save, or press Ctrl+S (⌘S on a Mac). Click Cancel to throw changes away.
You can’t edit while the AI is working. Each save is a new version, so you can undo it. If you switch to Preview before saving, your changes are kept until you return. Switching to another page first asks whether to discard them. If your change causes an error, the chat tells you where. AI Code Zero doesn’t ask the AI to fix your own edits, so your work is never overwritten. Fix it in the Code tab, or ask the AI in the chat. While you edit, suggested words appear under the cursor. Use the arrow keys to choose, then Enter or Tab to insert, or Escape to close. Suggestions come from your own code plus common JavaScript, HTML and CSS words. They’re worked out on your computer and use no tokens. Turn them off with Code autocomplete in Settings → Workspace.

Versions and history

Every build, AI change and edit of your own is saved as a new version, so you can always go back.

Step back and forward

The toolbar shows your version, such as v3/5, between two arrows:
  • Previous version steps back one.
  • Next version steps forward.
Keyboard: Ctrl+Z steps back, and Ctrl+Y or Ctrl+Shift+Z steps forward (⌘Z and ⌘⇧Z on a Mac). These are off while a build is running. If you step back and ask for a change, the new version builds on the one you’re viewing.

The history drawer

To jump to any version, click History in the side panel. In a narrow window, open the menu (☰) and click History. Versions are grouped by chat, and a click restores one. They’re saved with the project.
The history drawer listing two versions of a project, with the newest marked Active

The history drawer. Click a version to restore it.

Your app runs in a safe space

The preview is sandboxed, so your app can’t read your other projects, settings or API keys, or change AI Code Zero. It can still save its own data, like a high score or to-do list. That data belongs to this project only.