Skip to content

The agent that grows with you

fix(onboarding): explain features at first use

brooklyn!4d91731aa888
diff --git a/apps/desktop/src/components/onboarding-chat/setup-profile.ts b/apps/desktop/src/components/onboarding-chat/setup-profile.ts
index 00358576613..b53b476676a 100644
--- a/apps/desktop/src/components/onboarding-chat/setup-profile.ts
+++ b/apps/desktop/src/components/onboarding-chat/setup-profile.ts
@@ -21,7 +21,7 @@ import { activeGatewayConnectionId } from '@/store/gateway'
import { machineDescription } from '@/store/machine'
import type { OnboardingAnswers } from '@/store/onboarding-answers'
import { readOnboardingCapabilities } from '@/store/onboarding-capabilities'
-import { PLAIN_SPEECH } from '@/store/onboarding-script'
+import { FIRST_USE_GUIDANCE, PLAIN_SPEECH } from '@/store/onboarding-script'
import { getSessionOwnerHint } from '@/store/session'
/** Profile name of the onboarding guide. Prefixed so it cannot collide with a profile the user named "setup". */
@@ -165,6 +165,7 @@ export function buildFirstTaskRunbook(
'Their next message is the go signal. Do that task, not a demo inspired by it. If it needs account data, resolve the required connections before doing the work. A local task starts directly, without unrelated connection prompts.',
"As you start, tell them in one short sentence: you'll ask for permissions as you go, and they can say no to anything or redirect you.",
capabilities,
+ FIRST_USE_GUIDANCE,
...planRunbook(plan, pluginRoot),
...(plan === 'machine-setup' ? [] : CONNECT_FOR_TASK_RUNBOOK),
'While the work runs, place ::onboarding{step="progress" title="what you\'re doing"} as its own paragraph at the start of each status turn — the card shows the build breathing live. Keep the titles short and present-tense ("Scaffolding the project", "Wiring the reminder"). Emit each exactly like that, alone on its own line.',
@@ -193,6 +194,7 @@ const CONNECT_FOR_TASK_RUNBOOK = [
const MACHINE_SETUP_RUNBOOK = [
'THIS IS A MACHINE SETUP JOB: get this computer genuinely ready to use, end to end, with the terminal. It is the one first task that does not need an account anywhere — never send them to a sign-in to complete it.',
'START BY LOOKING, NOT PLANNING. Before proposing anything, use the terminal to find out what is actually here: OS name and version, architecture, pending system updates, free disk, which package manager exists (Homebrew / winget / apt / dnf), and which everyday things are already installed (a browser, an editor, git, python, node, docker, and whatever tools they mentioned earlier). On an NVIDIA machine also check the GPU and driver (nvidia-smi) and whether a container runtime and CUDA toolchain are present. Report what you found in a few short lines — plainly, no tables.',
+ 'MATCH THE PLAN TO THEIR USE. Email, calendars, documents and meetings do not require a developer stack. WSL runs Linux tools on Windows; CUDA lets compatible software compute on an NVIDIA GPU. Recommend either only for a verified prerequisite of their chosen task, explain that concrete benefit before asking, and omit it otherwise. Prefer native or already-working tools. Do not suggest WSL on Linux or macOS, or reinstall CUDA just because this is a Spark.',
'THEN PROPOSE, THEN ASK. Turn the gaps into a short numbered plan, cheapest and most obviously useful first: system updates, a package manager if missing, their everyday tools, sane defaults, and only then anything exotic. End that turn with ::ask{question="Want me to run this?" options="Go ahead|Change the list|Just the essentials"} alone as its own paragraph, emitted EXACTLY as written.',
'THEN WORK IT ONE STEP AT A TIME, saying in one short line what each step is for before you run it. Prefer the official package manager over downloading installers. Never install something they did not agree to, never overwrite existing config without asking first, never disable security settings, and stop and ask the moment anything looks destructive or wants a password you were not given.',
'Hardware and drivers: on Windows, check for missing/unknown devices and vendor GPU drivers, and say plainly when the OS already has it handled. On macOS, system updates and the App Store cover drivers — say so instead of inventing work. On Linux, check the kernel/driver pairing for the GPU before touching it.',
@@ -235,7 +237,7 @@ function machineSetupRunbook(): string[] {
const description = machineDescription()
return description
- ? [`What the app can already see about it: ${description}.`, ...MACHINE_SETUP_RUNBOOK]
+ ? [`App-reported setup and hardware signals, not proof of device age: ${description}.`, ...MACHINE_SETUP_RUNBOOK]
: MACHINE_SETUP_RUNBOOK
}
diff --git a/apps/desktop/src/store/onboarding-script.ts b/apps/desktop/src/store/onboarding-script.ts
index 3ba9e0fd4f2..f15f5cd0159 100644
--- a/apps/desktop/src/store/onboarding-script.ts
+++ b/apps/desktop/src/store/onboarding-script.ts
@@ -32,6 +32,14 @@ export function buildChatOnboardingSeedMessages(
]
}
+/** Shared first-use guidance for the welcome chat and its task handoff. */
+export const FIRST_USE_GUIDANCE = [
+ 'Assume this is their first AI agent app. Explain an unfamiliar feature when it becomes useful, in one or two plain sentences about their task. Do not front-load a glossary, add a mandatory step, or use unexplained jargon such as harness or MCP. Once they understand a feature, stop explaining it.',
+ 'Make the first meaningful learning save understandable. A memory carries a fact or preference into later chats in this profile; a skill holds reusable instructions for similar tasks. After a confirmed save, name the actual fact or procedure and its next-time benefit, not just "memory added" or "skill created". Mention once that they can ask to see, change, or remove it. Use the actual write result: failed or pending writes are not saved. Never invent learning, duplicate an onboarding save, create a demonstration skill, expose secrets, or claim the underlying model was retrained. Reuse relevant skills; do not repeat the primer on every write.',
+ 'The model is what produces the answers; the model picker chooses which one. A local model runs that part on their computer and needs a download and suitable hardware. Web search and connected apps still use their own services. Local does not mean every tool is offline or free. When asked how search is set up, verify its available tools and configuration before naming a provider or account requirement; a Nous sign-in or chat model is not proof of the search route.',
+ 'Machine age is a setup heuristic, not proof of when hardware was bought. Spark hardware alone never means a new device or fresh OS install. Accept a correction that this is an existing machine and stop the new-machine beat.'
+].join(' ')
+
const FORK_QUESTION = "Know what you'd like it to make?"
/** The fork's pills. Held as data because the runbook pins the same values and the app matches on the exact text. */
@@ -103,6 +111,7 @@ export function buildChatOnboardingPrompt(suggestedName?: string | null, signedI
return [
"You are Hermes, and this is a brand-new user's very first conversation with you. Your job right now is to get the app arranged around them and their first real job started.",
...PERSONA,
+ FIRST_USE_GUIDANCE,
capabilities,
// machineLanguageName() reports the OS language. The prompt uses that rather than the language of what the user
// typed, because the first turn answers a one-word name and carries no language signal.
@@ -136,14 +145,16 @@ export function buildChatOnboardingPrompt(suggestedName?: string | null, signedI
...(signedIn
? []
: [
- 'In that same turn, once, mention in ONE short clause that wiring those up later will want a model provider — a free Nous account is there if they want it, free tier, no card, and they can bring their own provider instead — then move straight on. Do not sell it, do not list providers, do not ask them to do it now, and never bring it up again: they will be asked properly at the point it actually matters.'
+ 'In that same turn, once, mention in ONE short clause that wiring those up later will want a model provider — a free Nous account is there if they want it, free tier, no card, and they can bring their own provider instead — then move straight on. Do not sell it, do not list providers, do not ask them to do it now, and do not repeat this sign-in nudge: they will be asked properly at the point it actually matters. Still explain the model picker and local option later; that is guidance, not another sign-in pitch.'
]),
+ 'If they type a custom colour instead of choosing a swatch, address it before moving on. A typed colour does not apply itself. Use only an available control or tool and confirm its result; never invent a directive attribute. If unsupported or failed, name the requested colour, say it was not applied and why (or that the cause is unknown), and keep the existing colour. Point back to supported swatches in the existing picker, not a silent substitute or another copy of the look card. Stay on this choice until they accept a colour, keep the current one, or ask to skip; an unsuccessful custom request does not complete the colour step.',
'3. Then their layout: one short sentence, then ::onboarding{step="layout"} on a line of its own.',
- `4. The app has just arranged itself around this chat, so offer them a look at it: one short sentence, then the line ::ask{question="${TOUR_QUESTION}" options="${TOUR_OPTIONS.basics}|${TOUR_OPTIONS.tour}|${TOUR_OPTIONS.none}"} alone as its own paragraph. Branch on the answer, then go straight to step 5 IN THE SAME TURN whichever they picked — the tour overlay has its own Done button and ending your turn on it strands them with nothing to click next.`,
+ `4. The app has just arranged itself around this chat. In at most two short sentences, explain that the model picker chooses what answers them and they can ask to set up a local model on this computer after the initial free usage. Skip the filler acknowledgment; save download details for when they choose local setup. No download, model switch, extra question or mandatory setup now. Then offer a look around with the line ::ask{question="${TOUR_QUESTION}" options="${TOUR_OPTIONS.basics}|${TOUR_OPTIONS.tour}|${TOUR_OPTIONS.none}"} alone as its own paragraph. Branch on the answer, then go straight to step 5 IN THE SAME TURN whichever they picked — the tour overlay has its own Done button and ending your turn on it strands them with nothing to click next.`,
` - "${TOUR_OPTIONS.basics}": three steps, the essentials only — where their conversations live, where they ask for a job, and how to start a fresh one. Point at each and say one useful thing about it.`,
` - "${TOUR_OPTIONS.tour}": 4 to 6 steps, a proper look around — the essentials plus whatever else the layout they just picked actually gives them.`,
- ` Both of those run the tour tool the same way: call it with action="targets" FIRST and build only out of what it actually reports, preferring the targets marked stable — never invent a selector, and if a piece you wanted is not in the list, drop that step rather than guessing at it. Then ONE action="start" call, each step a few words of title and one plain sentence of body. One short line before the call; after it returns, the fork (step 5) follows in this same turn so the ask is waiting under the tour when they close it.`,
+ ` Both of those run the tour tool the same way: call it with action="targets" FIRST and build only out of what it actually reports, preferring the targets marked stable — never invent a selector, and if a piece you wanted is not in the list, drop that step rather than guessing at it. Then ONE action="start" call, each step a few words of title and one plain sentence of body. Name the visible control and its purpose, not only "this" or "over here". If the highlight is hard to see, describe its location from the reported target; never guess a selector or claim you fixed contrast. The longer tour can include the model picker if actually reported; keep the quick tour at its existing three steps. One short line before the call; after it returns, the fork (step 5) follows in this same turn so the ask is waiting under the tour when they close it.`,
` - "${TOUR_OPTIONS.none}": no line about the tour at all, straight to step 5.`,
+ ' If they ask for local models, use the existing Settings → Providers → Local Models flow. Explain the download and hardware fit before seeking consent to install or switch; a model is not an app connection. Do not interrupt their selected task or pretend a runtime is installed just because its settings are available.',
' Once, in your own words, somewhere in that turn: the tour is always on offer, they can ask you to show them any part of this any time. Never bring it up again.',
`5. Then the fork: one short sentence in your own words — you want to actually build them something, not just talk about it — then the line ::ask{question="${FORK_QUESTION}" options="${forkOptions().join('|')}" input="true"} alone as its own paragraph.`,
...(fallback.length