WebStudio, our desktop editor for websites, has a lot of settings, commands and shortcuts. Most people never find half of them. So we wanted a small helper inside the app: ask “how do I see my site on a phone?” or say “turn off the minimap”, and it answers or sets it up for you.
We had three rules for it. It runs on your own computer, so nothing you type leaves it. It never changes anything by itself: every change waits for you to click “Do it”. And it should understand people the way they actually type, typos, slang and frustrated swearing included. Here's how it went, including the parts that didn't work the first time.
1. Don't make the model memorise the app
The obvious approach is to train a model on everything about the app and hope it remembers. That breaks the moment a setting is renamed or a new one ships, and the model will confidently describe options that don't exist.
Instead, the helper looks things up first. For every question, the app searches its own live list of settings, commands, shortcuts and help pages, including each setting's current value, and puts the few most relevant ones in front of the model. The model only has to answer from those facts. When it wants to change something, it writes a line like:
The app turns each of those lines into a “Do it” button. Because the ids come straight from the running app, a setting we add next month is something the helper can already find and change, without retraining.
The search had to be forgiving too: “that little map on the right” means the minimap, “nuke autosave” means turn auto save off, and “opne termnial” still means the terminal. A list of everyday synonyms and a small typo fixer run before the search.
2. Teaching it to never refuse
Small models are trained to be careful, and careful often means lecturing. Type “turn off this stupid grey text” and you might get a speech about respectful language instead of the setting you asked for. For a helper that can only change app settings, refusing makes no sense.
So a third of the training questions are deliberately messy: typos, all caps, slang, swearing, insults with a real request inside. The answer is always the same plain, friendly help. In our test set, the number of refusals or lectures is the first thing we check, and it has stayed at zero.
3. Some jobs belong to plain code
One mistake kept coming back in testing: “turn on autosave” answered with “auto save is already on” when it was off, or the other way round. Reading a value and comparing it is exactly the kind of thing small models fumble.
We stopped asking the model to do it. If the model suggests setting something to the value it already has, the app itself replaces the button with “Auto save is already on.” That is a few lines of code, it is right every time, and it works with any model we ship later.
Lesson: use the model for understanding what people mean, and plain code for anything that can be checked exactly.
4. Measuring instead of guessing
Every version of the model goes through the same test: 467 questions it has never seen, covering every setting, every command, every shortcut, two settings at once, help questions, off-topic questions, coding requests (those go to Reaver, WebStudio's coding AI), other languages and plain insults. A new model only replaces the old one if it scores higher.
That rule saved us more than once. A quick “fix the weak spots” training run on top of a good model made it worse: better at the exact things we fed it, and noticeably worse at everything else. Without the full test we would have shipped it.
5. A bigger model, trained in the cloud
The first version used a 1.5 billion parameter model trained on a laptop GPU, and passed 432 of the 467 questions. For the current version we moved training to a free cloud GPU and a 4 billion parameter model (Qwen3-4B, Apache 2.0 licensed, so we can ship it), which passes 442 of 467, with the biggest gains on messy wording and on “is it already on?” questions.
It didn't work the first time. The first cloud run trained the model in a number format the GPU handles badly, and the result answered every single question with the same broken token. The fix was to train in 4-bit, which is also faster, and to make the training script answer five test questions right after training and stop before the slow export step if the answers look broken. A failed run now costs minutes instead of an hour.
We also checked licenses before shipping. One popular 3B model looked perfect until we read its license: research use only. That would have been a nasty surprise after release.
6. When the model is bigger than the installer
The new model is about 2.5 GB. Our Windows installer tool can't pack more than 2 GB, and a single file on our release host can't be larger than 2 GB either. So the helper isn't in the installer at all any more.
Instead, the app downloads it when you ask for it: open the AI panel and click Download the WebStudio AI. Behind that button:
- The model is stored as two pieces under 2 GB, which the app writes straight into one file at the right positions.
- If the download stops, or you cancel it, it continues from the exact byte where it stopped.
- Every file is checked against its SHA-256 checksum, and nothing replaces your installed helper until everything has been verified.
- It checks for free disk space before it starts, not halfway through.
On a normal home connection the whole thing took about two minutes in our test. After that it runs fully offline, and app updates never touch it.
What we'd tell anyone building the same thing
- Give the model the facts at question time; don't make it memorise your app.
- Never let it act on its own: suggest, then wait for a click.
- Train on how people really type, not on polite example sentences.
- Move anything exact (comparisons, current values) into plain code.
- Keep one fixed test, and let numbers decide which model ships.
- Check the license and the file size limits before you train, not after.
Try the WebStudio AI
WebStudio is free. The offline helper is an optional download from inside the app; it understands and writes English only.