On October 26, a colleague posted in Slack what our AI Extension Builder knew about an app's design. The theme it handed the model had the app's published palette, with its gradients and the colors of its buttons. It had the fonts of nine text levels. It had none of what the GoodBarber back office sets in its five global design panels: the shape of buttons (square, rounded or round; the theme calls square sharp), text fields, thumbnails and their hover effect, default margins, the app's background. So, the message went on, a generated section could come out in the right colors, with round buttons, in an app with square corners.
That morning, the agent behind the builder had started reading the design system our designers wrote. While writing that tool, we had found a line of our own prompt, there since early August, that told the model what each text level was for. It ended with "minimal for fine print". In our designers' table, minimal is the largest level an app has: 40 px on a phone, 44 px on a tablet or a desktop, for the title of a full-page detail screen.
I run backend engineering at GoodBarber, an app platform. Our AI Extension Builder writes a custom section of an app from a description. Since early November, an agent does that work, and tests each section in a browser at the width of a phone before handing it back (the announcement). In late October, that agent was live for our test apps only, behind an allowlist (Behind the allowlist). Quotes from French are my translations.
The designers' half: a tool and a frozen copy
The tool started with a question I asked the Claude Code session working on the agent: "The designers have done some work. If I give you the repo, shall we make a tool for it?" They keep their design system in their own repository, in two Markdown files. One holds the allowed values a screen takes its text sizes, spacing, corner radii, shadows and colors from, and how a screen is put together. The other is a catalog of components, each with when to use it.
The tool, read_design_system, cuts those files into 17 topics on a closed list: an overview, ten families of values, two topics on how a screen is composed, and four on the catalog. Each topic stays under 12,000 characters, so a tool result never cuts it. The text is the designers' own, in French, untranslated. The prompt tells the agent to read the overview, then the topics the page needs, before it picks any style. The user's request and the app's palette and fonts come first. Where the design system and our prompt's generic visual rules disagree on a value, the design system wins.
The builder's code keeps a frozen copy, with the designers' commit and a SHA-256 of each file. The session proposed it in its first answer: the agent has nothing to fetch during a run, and an update from the designers goes through us. The import reads their files with git show at a given commit, never from the working tree. It writes nothing if a heading was renamed, added or removed, or if a topic outgrew its cap, so the list of topics only changes in code. The tool went live for our test apps.
Our notes from that morning say what it would change on screen. The agent didn't know which shape an app had picked, so it took the designers' default, sharp: 0 px corners, where pages used to get 8 to 12 px. So the tool turned the colleague's error around: an app set to round would have had square buttons, until the agent got the app's setting that afternoon.
The app's half: add keys, rename nothing
The shape settings live in the back office, and an internal service of ours builds the theme the builder reads. I pasted the colleague's message into another Claude Code session, on that service. Then I added one rule: "Don't remove or rename keys. You're only allowed to add some." Other code reads that theme, our publishing path among it. So the settings went behind an opt-in flag, in one new design object, and a response without the flag keeps every key it had.
Before deploying, the session saved the production response for one app. The rule is about keys, and values could still move: the deploy finished, and the comparison right after it caught one, that app's button style. The fix was live a few minutes later. Our publishing path only takes the fonts from that response, so it never read the wrong value. The second comparison found no key removed or renamed, and one more object when the flag is on.
I pasted a sample of that object into the agent's session. The code that reads it was committed and went live for our test apps that afternoon. Each run reads the theme with the flag and gives the settings a block of their own, right after the palette and fonts, in the agent's first message. For one of our test apps, it reads:
App design settings: These are the app's own design settings, chosen in its GoodBarber back office. A page that follows them looks native to the app. - buttons: shape sharp - textFields: shape rounded, size medium, layout titleup - thumbnails: shape sharp, hoverEffect opacity - spacing: enabled false, top 0, bottom 0, left 0, right 0 - background: color #FFFFFF A shape is a corner radius: read_design_system('shape') gives the radius of each one. The topics spacing, component_size and components of read_design_system say how to apply the others. The background is the page's background, unless the request asks otherwise. The block is built from whatever the object holds, so a setting the back office adds later shows up with no code. Values are cut at 120 characters, except an image's address, which is given whole or left out: review caught that a cut address pointed nowhere.
The block's closing lines send the model to the designers. The app says rounded for its text fields, and their shape topic says what each setting means: 0 px for sharp, 4 px for rounded, and for round 12 px, or a pill on buttons, fields, the tab bar and filters.
minimal is the biggest title
The fine-print line dates from August 3, when we first handed an app's fonts to the model. After each level's family, weight and size, the prompt said how to use them: "Map them by role: mainTitle for the component's title, heading1..heading6 for headings, normal for body text, minimal for fine print." The names come from the theme. Their uses come from the designers, and their table disagrees with two of our guesses:
| Level | Our prompt said | The designers' table says |
|---|---|---|
mainTitle | the component's title | the title of the navigation bar and of system screens such as login; a content's title is heading1 |
minimal | fine print | the largest level, for the title of a full-page detail screen or a banner; never in a list or a cell |
The table also gives heading2 and heading3 the same size, 18 px on a phone, and different jobs: the first titles an item in a list of content, the second an item of the app's navigation menu or a section heading in a form. Our old line could set a legal notice in the app's largest type. We logged that as a risk when we found the line, not as a case we had seen.
The agent's prompt now has its own typography section. Each level comes with its use as the designers define it, and after the list comes one rule: "Choose a level by what the text is and where it sits, never by the level's name." A test checks that the words "fine print" no longer reach the agent. The old engine's prompt was left as it was: since early November, the agent writes the sections of every app.
What shipped, and what nothing checks
Customers got the tool and the settings with the agent on November 4. For the announcement, I wanted one plain line, and the design part of the published post opens with it: "No need to apply your app's beautiful design yourself: the agent has a tool for that."
Nothing checks a section's CSS against the app's settings: the agent's browser test looks for errors, like a script that crashes, and never measures a corner. Whether to read the design system is also left to the model. The prompt says when, and the harness doesn't enforce it. When the designers change their files, our copy waits for an import.
