Documentation
Guides2. Set it up

Config

Set up which pages the loop builds, from what, and how hard it tries.

Config is where you prepare a build: the pages, where each one comes from, and how close to the design it has to get. A good setup turns a night of building into finished work.

Config: the Pages card, How hard should it try, General, and the sections rail on the right.

Click Save at the bottom to keep your changes. They apply to the next build.

Add a page

Adding a page in Config and pasting its Figma frame.
  1. In the Pages card, click Add page. The new page opens below the others.
  2. Give it a Name, for example about. The page file is named after it.
  3. Check its Mode and fill in the source: a Figma link, a page address or a brief. A new page starts in the mode of your other pages.
  4. Click Save.

You can also add pages in the Sitemap, which shows where each one sits in the site.

Pages

A page opened in Config: Protect from runs, Name, Mode, the Figma links and No tablet design.

Each page is built from one of three sources. Click a page to open it, then pick its Mode:

ModeThe page is builtYou provide
Figma: match a frameTo match a Figma designThe link to the desktop frame. Add tablet and mobile frames if you have them.
URL: rebuild a live pageAs a copy of a page that already existsIts address
Generate: from a briefFrom a descriptionA few sentences about the page

Useful fields on every page:

  • Name: what the page is called in the Sitemap and in reports.
  • Parent page: puts the page under another, for example pricing under services.
  • Note (extra prompt): anything the build should know: what matters, what is decorative, what moves. Added with priority.
  • Reference files: images and documents for this page.
  • No tablet design: tick it when the design has only desktop and mobile. The tablet view is then made as a step in between.
  • Protect from runs: a build never touches this page. Turn it on for a page you finished by hand.

Give a page context

Writing a note for a page: what must stay, what is decorative, what matters.
The Note and Reference files fields of a page in Config.

Context is what you would tell a developer before they start. Each page has two places for it:

  • Note (extra prompt): a few sentences on what matters. "The pricing table comes first. The shapes behind the FAQ are decorative." The build reads it before anything else.
  • Reference files (this page): Attach files or Attach folder. Images, such as annotated mocks or before and after shots, are looked at and matched. Text files (.md, .txt, .csv, .json) are read as content, so a copy deck or a price table lands on the page word for word.

Context for the whole site goes in General, under Reference files (whole project): a brief, brand guidelines, examples.

The switch next to each page decides whether Start builds it. Build this page builds just that one, now.

How hard should it try?

SettingWhat it means
DraftStops at the first result that is roughly right. To check a direction.
StandardThe level most pages ship at. Recommended.
ExactingKeeps going while it still improves. For a page that has to be right.

Harder takes longer and uses more of your Claude plan. After the first build, the Pages card shows how much it used.

General

Adding the design system frame, logo, OG image, a font and a brief.

Optional, for every page:

  • Design system frame: a Figma frame with the colors, type and components. Every page uses it.
  • Logo and OG image (the picture shown when a link to the site is shared): click Upload. Replace swaps the file later.
  • Fonts: click Add fonts and drop in the real font files (.woff2, .woff, .ttf, .otf), so the site uses them instead of a lookalike. The family, weight and style are read from each file; Override corrects a file that is labelled wrong.
  • Reference files (whole project): click Add files for a brief, brand guidelines or code to reuse. They are read for every page.

Each upload says what it did, and nothing is written into the config until you click Save.

General in Config: Design system frame, Logo, OG image, Fonts and Reference files.

Advanced

Setting Sections at once to 2 and looking at the passes.

Most of Advanced can stay as it is: the defaults balance quality and cost. Keep Model on its default in particular, because one model for everything makes builds noticeably more expensive. The settings worth knowing:

SettingWhat it does
Sections at onceBuilds several sections in parallel. Faster, not cheaper. Start at 2.
Page draft (coarse-to-fine)One quick pass for the whole page, then each section refines it. About 60% cheaper.
Draft every page firstDrafts all pages, then refines them one by one. Off: each page finishes before the next starts.
Polish passOne cleanup pass after a section passes.
Read Figma commentsOpen comments in the Figma file go to the build.
Inter-section spacing checkFixes the gaps between sections against Figma.
Generate style guide after a runWrites a style guide page from the real components.
BreakpointsThe screen widths each page is built and checked at.
The Passes part of Advanced: Sections at once, Draft every page first, Polish pass and the style guide switch.

Every Advanced setting

Project

SettingWhat it does
FrameworkHow pages are built and served. Set when the project was created.
DirectoryWhere the site lives. AUTO means the folder the project is in.
RepoWhere the result goes after a build.
Build commandRuns before each round. Empty for a plain HTML site.
Server portLeave empty: every project gets its own, so two can run at once.
Settle time (ms)How long to wait after a build before the screenshots, for pages that animate in.

Breakpoints: the screen widths every page is built and checked at, each with a Name, Width and Height. Add breakpoint adds one.

Loop

SettingDefaultWhat it does
Score threshold85The score a section needs to pass. How hard should it try? sets it for you.
Max iterations / pagefrom How hardStops a page even if the score is not reached.
Budget minutesnoneA time limit across all pages. Empty or 0 for none.
Max turns160How long the fixer may work in one round. Too low cuts a repair short.
Judge max turns160Too low and the reviewer returns no score.
Figma reading max turns160Reading a frame; a landing page takes 50 to 100.
Interactions max turns120Menus, tabs and motion, added after a page passes.
Stagnation window3Rounds without enough gain before a page stops.
Smallest score gain that counts as progress2Less than this over the window counts as stuck.

Model & effort defaults: Model and Effort for every stage at once. Keep them on the defaults.

Stages: each step of a build can have its own model and effort. The defaults:

StageWhat it doesDefault
Page draftA quick first version of the whole pageOpus
Design-initReads the design system into tokensSonnet
Figma-initReads each page's frameSonnet
Generate-initPlans a page from its briefSonnet
Asset-fetchDownloads logos, icons and imagesHaiku
FixerWrites the code each round, where the likeness is madeOpus
JudgeScores the result against the design and never editsOpus
PolishSmall details after a section passesSonnet
InteractionsMenus, tabs and motion after the page passesSonnet

Passes: the switches in the table above, plus Sections at once.

Every field of a page

FieldWhat it does
Switch (left of the name)Whether Start builds this page.
Protect from runsA build never touches the page, not even Build this page.
NameWhat the page is called; the page file is named after it.
Parent pagePuts the page under another; its file moves with it.
ModeFigma: match a frame, URL: rebuild a live page, or Generate: from a brief.
Figma node URL (desktop, tablet, mobile)The frames to match. Only desktop is required; without the others, those sizes are made to fit and checked for working well.
No tablet designTablet is made as a step between desktop and mobile instead of being matched.
Page fileThe file the page becomes. Follows the name.
Preview pathWhere the preview shows the page, such as /pricing/. Leave it empty to follow the page file.
SelectorCompares only one part of the page with the design, such as .hero. Leave it empty to compare the whole page.
Note (extra prompt)What matters on the page. Read first.
Reference filesImages to match and text files to use as content.
Build this pageBuilds this page now.
Remove page (the trash icon)Takes the page out of the project. In a project with one page it clears the page instead, because a project always keeps one.