Skip to content

The agent that grows with you

Setup cards: tour and fork always arrive with their rows, apps preselected from the scan, honest skill (#129344)

Siddharth Balyanfe50fc8b60fb
diff --git a/agent/initiate_setup_prompt.py b/agent/initiate_setup_prompt.py
index 305d5260072..14391dbe74a 100644
--- a/agent/initiate_setup_prompt.py
+++ b/agent/initiate_setup_prompt.py
@@ -60,9 +60,22 @@ def start_user_scan() -> _ScanJob:
return job
-def build_initiate_setup_prompt(surface: str, tools, primary_profile: str) -> str:
+def _collect(host_facts) -> dict:
+ # Waits on the scan the setup profile started at creation instead of scanning a second time.
+ return host_facts.collect(partial(host_facts.scan_outcome, *start_user_scan()))
+
+
+def collect_setup_cards() -> dict:
+ """Card facts for a setup conversation whose ``/initiate-setup`` turn recorded none: its skill loaded
+ through the inline-shell hook, which runs outside the bound profile, or compression gave it a new id."""
+ host_facts = _host_facts_module(_skill_dir())
+ return host_facts.setup_cards(_collect(host_facts))
+
+
+def build_initiate_setup_prompt(surface: str, tools, primary_profile: str, session_id: str | None = None) -> str:
+ """``session_id``: the desktop session the turn runs in; its ``setup_choose`` cards read these same facts."""
from hermes_cli.anon_auth import free_tier_route
- from hermes_cli.setup_profile import read_state
+ from hermes_cli.setup_profile import read_state, record_cards
skill_dir = _skill_dir()
block = {
@@ -73,10 +86,11 @@ def build_initiate_setup_prompt(surface: str, tools, primary_profile: str) -> st
"setup_completed_at": read_state().get("completed_at"),
}
host_facts = _host_facts_module(skill_dir)
- # Waits on the scan the setup profile started at creation instead of scanning a second time.
- scanned = partial(host_facts.scan_outcome, *start_user_scan())
+ collected = _collect(host_facts)
+ if session_id:
+ record_cards(session_id, host_facts.setup_cards(collected))
# Same bytes the hook prints when the skill loads through inline shell.
- host = json.dumps(host_facts.collect(scanned), ensure_ascii=False, separators=(",", ":"))
+ host = json.dumps(collected, ensure_ascii=False, separators=(",", ":"))
skill = (skill_dir / "SKILL.md").read_text(encoding="utf-8-sig").strip()
skill = _HOST_FACTS_HOOK.sub(lambda _: host, skill)
facts = json.dumps(block, indent=2, ensure_ascii=False)
diff --git a/agent/inline_tool_executors.py b/agent/inline_tool_executors.py
index 8756ac87944..d2030940946 100644
--- a/agent/inline_tool_executors.py
+++ b/agent/inline_tool_executors.py
@@ -274,10 +274,13 @@ _RAW_INLINE_TOOL_EXECUTORS: Dict[str, InlineToolExecutor] = {
("text", "text"), ("side", "side"), ("steps", "steps"), ("step_index", "step_index"),
("preset", "preset"),
),
- "setup_choose": _callback_tool(
- "tools.setup_choose_tool", "setup_choose_tool", "setup_choose_callback",
+ # The session id keys the card facts its /initiate-setup turn recorded.
+ "setup_choose": _tool(
+ "tools.setup_choose_tool", "setup_choose_tool",
("kind", "kind", ""), ("question", "question", ""), ("options", "options"),
("multi_select", "multi_select"),
+ callback=lambda agent, ctx: getattr(agent, "setup_choose_callback", None),
+ session_id=lambda agent, ctx: getattr(agent, "session_id", None),
),
"manage_connections": _manage_connections,
"manage_catalog": _manage_catalog,
diff --git a/apps/desktop/src/components/assistant-ui/clarify/setup-pending.tsx b/apps/desktop/src/components/assistant-ui/clarify/setup-pending.tsx
index b6b060a9b7a..96ca2a1e3c6 100644
--- a/apps/desktop/src/components/assistant-ui/clarify/setup-pending.tsx
+++ b/apps/desktop/src/components/assistant-ui/clarify/setup-pending.tsx
@@ -3,7 +3,7 @@
import type { SetupChooseKind } from '@hermes/shared'
import { useStore } from '@nanostores/react'
import { Puzzle } from 'lucide-react'
-import { type ComponentType, type FormEvent, useCallback, useMemo, useRef } from 'react'
+import { type ComponentType, type FormEvent, useCallback, useEffect, useMemo, useRef } from 'react'
import { useSessionView } from '@/app/chat/session-view'
import { useI18n } from '@/i18n'
@@ -28,7 +28,7 @@ import { useTheme } from '@/themes'
import { ClarifyConfirmBar } from './core/confirm-bar'
import { CLARIFY_ICON_CLASS, ClarifyShell } from './core/shell'
import { useClarifyKeys } from './core/use-clarify-keys'
-import { PICKER_COLUMNS, QuestionPills, SETUP_PICKERS } from './setup-pickers'
+import { isSetupPickerKind, PICKER_COLUMNS, QuestionPills, SETUP_PICKERS } from './setup-pickers'
import { LIVE_LOOK, useSetupRows } from './setup-rows'
import { handleClarifySubmitShortcut } from './submit-shortcut'
import { UndeliveredNotice } from './undelivered-notice'
@@ -38,10 +38,13 @@ type SetupSource = Pick<ClarifyRequest, 'questions' | 'setup'>
const KIND_ICONS: Record<SetupChooseKind, ComponentType<{ className?: string }>> = {
accent: Palette,
connectors: Plug,
+ fork: MessageQuestion,
layout: LayoutDashboard,
+ machine_use: MessageQuestion,
plugins: Puzzle,
question: MessageQuestion,
- theme: Moon
+ theme: Moon,
+ tour: MessageQuestion
}
export function SetupChoosePending({
@@ -65,13 +68,23 @@ export function SetupChoosePending({
const source = request ?? fromArgs
const setup = source?.setup ?? null
const kind = setup?.kind ?? 'question'
- const pickerKind = kind === 'question' ? null : kind
+ const pickerKind = isSetupPickerKind(kind) ? kind : null
const freeText = pickerKind === null
const rows = useSetupRows(setup, storedId)
const requestId = ready ? (request?.requestId ?? null) : null
const stages = useStore($setupChooseStages)
const { draft, picked } = (requestId && stages[requestId]) || EMPTY_SETUP_STAGE
+ const preselected = setup?.preselected
+
+ // Start the card with the rows the scan saw in use, once its list is known; the card may not list them all.
+ useEffect(() => {
+ if (requestId && rows && preselected?.length && !$setupChooseStages.get()[requestId]) {
+ const ids = new Set(rows.map(row => row.id))
+
+ stageSetupChoose(requestId, { picked: preselected.filter(id => ids.has(id)) })
+ }
+ }, [preselected, requestId, rows])
const question: ClarifyQuestion = useMemo(
() => ({
@@ -225,7 +238,19 @@ export function SetupChoosePending({
<Icon aria-hidden className={CLARIFY_ICON_CLASS} />
</div>
{undelivered ? <UndeliveredNotice /> : null}
- {Picker === null ? (
+ {Picker === null && rows === null ? (
+ <div className="grid gap-2">
+ <span className="whitespace-pre-wrap font-medium leading-(--conversation-line-height)">
+ {question.question}
+ </span>
+ <div className="flex flex-wrap gap-2 p-1" role="status">
+ <span className="sr-only">{setupCopy.loading}</span>
+ {Array.from({ length: 3 }, (_, index) => (
+ <div className="h-7 w-28 animate-pulse rounded-full bg-muted/40" key={index} />
+ ))}
+ </div>
+ </div>
+ ) : Picker === null ? (
<QuestionPills
cursor={cursor}
details={(rows ?? []).map(row => row.detail)}
diff --git a/apps/desktop/src/components/assistant-ui/clarify/setup-pickers.tsx b/apps/desktop/src/components/assistant-ui/clarify/setup-pickers.tsx
index 44a0ac86c51..11d084bb89c 100644
--- a/apps/desktop/src/components/assistant-ui/clarify/setup-pickers.tsx
+++ b/apps/desktop/src/components/assistant-ui/clarify/setup-pickers.tsx
@@ -29,9 +29,15 @@ export interface SetupPickerProps {
rows: SetupRow[]
}
+/** Kinds drawn as a picker; question, tour, fork and machine_use are drawn as question pills. */
+export type SetupPickerKind = Exclude<SetupChooseKind, 'fork' | 'machine_use' | 'question' | 'tour'>
+
+export const isSetupPickerKind = (kind: SetupChooseKind): kind is SetupPickerKind =>
+ kind !== 'question' && kind !== 'tour' && kind !== 'fork' && kind !== 'machine_use'
+
const SEARCH_THRESHOLD = 12
-export const PICKER_COLUMNS: Record<Exclude<SetupChooseKind, 'question'>, (rows: SetupRow[]) => number> = {
+export const PICKER_COLUMNS: Record<SetupPickerKind, (rows: SetupRow[]) => number> = {
accent: rows => rows.length,
connectors: () => 3,
layout: () => 2,
@@ -207,7 +213,7 @@ function PluginPicker(props: SetupPickerProps) {
)
}
-export const SETUP_PICKERS: Record<Exclude<SetupChooseKind, 'question'>, FC<SetupPickerProps>> = {
+export const SETUP_PICKERS: Record<SetupPickerKind, FC<SetupPickerProps>> = {
accent: AccentPicker,
connectors: ConnectorPicker,
layout: LayoutPicker,
diff --git a/apps/desktop/src/components/assistant-ui/clarify/setup-rows.ts b/apps/desktop/src/components/assistant-ui/clarify/setup-rows.ts
index a344dee5ba5..5d9792e3ae3 100644
--- a/apps/desktop/src/components/assistant-ui/clarify/setup-rows.ts
+++ b/apps/desktop/src/components/assistant-ui/clarify/setup-rows.ts
@@ -38,7 +38,10 @@ const APP_ROWS: Record<SetupChooseKind, (sources: RowSources) => null | SetupRow
connectors: ({ connectors }) =>
connectors &&
orderConnectorPicks(connectors).map(row => ({ id: row.connector, label: connectorTitle(row.connector) })),
+ // The backend fills the fork, machine_use and tour rows, so they are known only once the request arrives.
+ fork: () => null,
layout: () => LAYOUTS.map(layout => ({ detail: layout.description, id: layout.id, label: layout.name })),
+ machine_use: () => null,
plugins: ({ plugins }) =>
plugins &&
plugins.map(plugin => ({
@@ -47,16 +50,20 @@ const APP_ROWS: Record<SetupChooseKind, (sources: RowSources) => null | SetupRow
label: plugin.title
})),
question: () => [],
- theme: ({ t }) => THEME_TILES.map(id => ({ id, label: modeLabel(id, t) }))
+ theme: ({ t }) => THEME_TILES.map(id => ({ id, label: modeLabel(id, t) })),
+ tour: () => null
}
const APP_LABELS: Record<SetupChooseKind, (id: string, sources: Pick<RowSources, 'plugins' | 't'>) => string> = {
accent: id => [...accentsFor(false), ...accentsFor(true)].find(swatch => swatch.hex === normalizeHex(id))?.name ?? id,
connectors: id => connectorTitle(id),
+ fork: id => id,
layout: id => LAYOUTS.find(layout => layout.id === id)?.name ?? id,
+ machine_use: id => id,
plugins: (id, { plugins }) => plugins?.find(plugin => plugin.name === id)?.title ?? id,
question: id => id,
- theme: (id, { t }) => modeLabel(id, t)
+ theme: (id, { t }) => modeLabel(id, t),
+ tour: id => id
}
interface LiveLook {
diff --git a/apps/desktop/src/components/assistant-ui/clarify/setup-settled.tsx b/apps/desktop/src/components/assistant-ui/clarify/setup-settled.tsx
index 693b6501456..ed93a1e5943 100644
--- a/apps/desktop/src/components/assistant-ui/clarify/setup-settled.tsx
+++ b/apps/desktop/src/components/assistant-ui/clarify/setup-settled.tsx
@@ -24,8 +24,10 @@ function readSetupChooseResult(result: unknown) {
}
const picked = Array.isArray(row.picked) ? row.picked.map(String) : typeof row.picked === 'string' ? [row.picked] : []
+ // Rows the backend filled (tour, fork) are not in the call's args; the result names the pick.
+ const labels = Array.isArray(row.label) ? row.label.map(String) : typeof row.label === 'string' ? [row.label] : null
- return { outcome: row.outcome, picked }
+ return { labels, outcome: row.outcome, picked }
}
export function SetupChooseSettled(props: ToolCallMessagePartProps) {
@@ -40,7 +42,7 @@ export function SetupChooseSettled(props: ToolCallMessagePartProps) {
return <ToolFallback {...props} />
}
- const answer = result.picked.map(label).join(', ')
+ const answer = (result.labels ?? result.picked.map(label)).join(', ')
const question = source?.questions[0]?.question
diff --git a/apps/desktop/src/store/clarify.ts b/apps/desktop/src/store/clarify.ts
index 720b0348a7f..b4b11a4ac49 100644
--- a/apps/desktop/src/store/clarify.ts
+++ b/apps/desktop/src/store/clarify.ts
@@ -15,6 +15,8 @@ export interface SetupChooseSpec {
kind: SetupChooseKind
options: SetupChooseOption[] | null
multiSelect: boolean
+ /** Row ids the card starts with picked (the backend fills them from the machine scan). */
+ preselected: string[]
}
export interface ClarifyRequest {
@@ -111,7 +113,17 @@ export function normalizeQuestions(questions: unknown): ClarifyQuestion[] {
export const SETUP_CHOOSE_QID = 'setup_choose'
-const SETUP_CHOOSE_KINDS = new Set<unknown>(['accent', 'connectors', 'layout', 'plugins', 'question', 'theme'])
+const SETUP_CHOOSE_KINDS = new Set<unknown>([
+ 'accent',
+ 'connectors',
+ 'fork',
+ 'layout',
+ 'machine_use',
+ 'plugins',
+ 'question',
+ 'theme',
+ 'tour'
+])
export function normalizeSetupChoose(
params: Record<string, unknown>
@@ -127,6 +139,10 @@ export function normalizeSetupChoose(
const multiSelect = params.multi_select === true
+ const preselected = Array.isArray(params.preselected)
+ ? params.preselected.filter((id): id is string => typeof id === 'string')
+ : []
+
return {
questions: [
{
@@ -136,7 +152,7 @@ export function normalizeSetupChoose(
question
}
],
- setup: { kind: params.kind as SetupChooseKind, multiSelect, options }
+ setup: { kind: params.kind as SetupChooseKind, multiSelect, options, preselected }
}
}
diff --git a/apps/shared/src/gateway-contract.generated.ts b/apps/shared/src/gateway-contract.generated.ts
index 2a397b286f7..2cd286d8755 100644
--- a/apps/shared/src/gateway-contract.generated.ts
+++ b/apps/shared/src/gateway-contract.generated.ts
@@ -4386,8 +4386,9 @@ export interface SetupChooseRequestParams {
question: string
options?: SetupChooseOption[] | null
multi_select?: boolean
+ preselected?: string[] | null
}
-export type SetupChooseKind = 'question' | 'accent' | 'theme' | 'layout' | 'connectors' | 'plugins'
+export type SetupChooseKind = 'question' | 'accent' | 'theme' | 'layout' | 'connectors' | 'plugins' | 'tour' | 'fork' | 'machine_use'
export interface SetupChooseOption {
id: string
label: string
diff --git a/apps/shared/src/gateway-contract.openrpc.json b/apps/shared/src/gateway-contract.openrpc.json
index 34e718a2d83..1c384768e16 100644
--- a/apps/shared/src/gateway-contract.openrpc.json
+++ b/apps/shared/src/gateway-contract.openrpc.json
@@ -32336,7 +32336,10 @@
"theme",
"layout",
"connectors",
- "plugins"
+ "plugins",
+ "tour",
+ "fork",
+ "machine_use"
],
"title": "SetupChooseKind",
"type": "string"
@@ -32405,6 +32408,21 @@
"default": false,
"title": "Multi Select",
"type": "boolean"
+ },
+ "preselected": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Preselected"
}
},
"required": [
diff --git a/hermes_cli/setup_profile.py b/hermes_cli/setup_profile.py
index 5851157d85a..fc8d673a015 100644
--- a/hermes_cli/setup_profile.py
+++ b/hermes_cli/setup_profile.py
@@ -19,6 +19,7 @@ SETUP_PROFILE_DESCRIPTION = "Where Hermes met you — walks your first run, then
SETUP_CHAT_TITLE = "Welcome to Hermes"
MAX_FAILED_STARTS = 3
_FRESH_STATE = {"intro": "unseen", "failed_starts": 0}
+_CARDS_DIR = "setup-cards"
_SETUP_TOOLSETS = ["setup", "start_chat", "connections", "no_mcp"]
_SETUP_DISABLED_TOOLSETS = ["project", "catalog"]
_SETUP_DEFERRED_TOOLS = [
@@ -139,6 +140,21 @@ def mark_completed() -> dict:
return _change_state(lambda state: {**state, "intro": "seen", "completed_at": completed_at})
+def _cards_path(session_id: str) -> Path:
+ return get_hermes_home() / _CARDS_DIR / f"{session_id}.json"
+
+
+def record_cards(session_id: str, cards: dict) -> None:
+ """Keep one setup conversation's card facts: what its ``/initiate-setup`` turn embedded, and where it is."""
+ from utils import atomic_json_write
+ atomic_json_write(_cards_path(session_id), cards)
+
+
+def read_cards(session_id: str) -> dict:
+ from utils import read_json_or_empty
+ return read_json_or_empty(_cards_path(session_id))
+
+
def _free_setup_profile_name() -> str:
from hermes_cli.dashboard_register import _NAME_NOUNS
name = SETUP_PROFILE_NAME
diff --git a/optional-skills/productivity/initiate-setup/MAPPING.md b/optional-skills/productivity/initiate-setup/MAPPING.md
index ca2dfb53254..b2575ceeeec 100644
--- a/optional-skills/productivity/initiate-setup/MAPPING.md
+++ b/optional-skills/productivity/initiate-setup/MAPPING.md
@@ -9,27 +9,27 @@ Sources mapped: `apps/desktop/src/store/onboarding-script.ts` (the runbook), `ap
| Current beat / directive | Where it lives today | New primitive | Skill section |
|---|---|---|---|
| Greeting row (app-written `guidedGreeting.line` + `nameSuggestion(loginName)`) | `assembly.ts::pickOnboardingGreeting`, i18n | The app plays the welcome and `setup_choose kind:"question"` for the name (P18), one option = `account.suggested_name`; the bot opens it only when the history has no name answer | Opening |
-| `::onboarding{step="name" value}` (saves `answers.name`) | `directive.tsx` DATA_STEPS | Nothing. The answer is the `setup_choose` result in history; it reaches the task chat in the `start_chat` message | Opening, Beat 7 part 2 |
-| `::onboarding{step="look"}` (LookCard, accent swatches + custom picker) | `cards/setup.tsx::LookCard` | `setup_choose kind:"accent"`, no options, played by the app (P18) | Opening |
+| `::onboarding{step="name" value}` (saves `answers.name`) | `directive.tsx` DATA_STEPS | Nothing. The answer is the `setup_choose` result in history; it reaches the task chat in the `start_chat` message | Opening, `templates/handoff.md` part 2 |
+| `::onboarding{step="look"}` (LookCard, accent swatches + custom picker) | `cards/setup.tsx::LookCard` | `setup_choose kind:"accent"`, `options:[]`, played by the app (P18) | Opening |
| `::onboarding{step="look" value="#hex"}` (custom colour in text) | `cards/setup.tsx::LookCard` | `setup_choose kind:"accent"` with one `{id:"#rrggbb"}` option (open question 4) | Opening |
| (none) | - | No theme beat (Sid, D7). `setup_choose kind:"theme"` only when the user asks for light or dark | Failure handling |
| `::onboarding{step="connectors"}` (one card: connectors + plugins; summary sent as `[setup] apps I use...`) | `cards/setup.tsx::ConnectorsCard` | Two cards: `setup_choose kind:"connectors"` and `kind:"plugins"`, both `multi_select`; a pick only records it and feeds the handoff message | Beats 1, 2 |
| `manage_connections` status + connect in the setup chat when asked | runbook "CONNECTING, IF THEY ASK" | Kept: the setup profile has the `connections` toolset; the setup chat connects only apps the user asks to connect now, the rest wait for the task chat | Beat 1 |
| `::onboarding{step="layout"}` (LayoutCard: preset + interface mode + window grow) | `cards/setup.tsx::LayoutCard`, `assembly.ts::assembleChatOnboarding` | `setup_choose kind:"layout"`; `apply_layout` only for a layout asked for in words | Beat 3 |
| Step 4 model-picker explanation | runbook | Dropped; the tour's model picker stop covers it, in both presets | - |
-| `::ask` "Want a look around first?" + `gui_tour` targets/start | runbook step 4 | `setup_choose kind:"question"` + one `gui_tour` `start` with `preset` `quick` or `full` (the app's own tour) | Beat 4 |
-| `::ask` fork, `input="true"` | runbook step 5, `forkOptions()` | `setup_choose kind:"question"` with `fork.options` computed by `scripts/host_facts.py` | Beat 5 |
-| `::ask` "What sounds better?" (Something else) | runbook, `forkFallbackOptions()` | `setup_choose` with `fork.fallback_options` | Beat 5 |
-| Machine branch: one question on main use | runbook step 6 | `setup_choose kind:"question"`, options Work / Gaming / School / Creative / A bit of everything | Beat 6 |
+| `::ask` "Want a look around first?" + `gui_tour` targets/start | runbook step 4 | `setup_choose kind:"tour"` (rows filled by the backend) + one `gui_tour` `start` with `preset` `quick` or `full` (the app's own tour) | Beat 4 |
+| `::ask` fork, `input="true"` | runbook step 5, `forkOptions()` | `setup_choose kind:"fork"`; the backend fills `fork.options` computed by `scripts/host_facts.py` | Beat 5 |
+| `::ask` "What sounds better?" (Something else) | runbook, `forkFallbackOptions()` | The same `fork` call: "Something else" opens `fork.fallback_options` in the backend | Beat 5 |
+| Machine branch: one question on main use | runbook step 6 | `setup_choose kind:"machine_use"`; the backend fills Work / Gaming / School / Creative / A bit of everything | Beat 6 |
| `::onboarding{step="working" value}` (saves `answers.context`) | `directive.tsx` DATA_STEPS | Nothing. History + `start_chat` message part 2 | Beat 6, Beat 7 |
| `::onboarding{step="first" options}` (FirstBuildCard, 2-4 pills, each <= 60 chars, fallback pill) | `cards/build.tsx::FirstBuildCard` | `setup_choose kind:"question"` with 3-4 options suited to pills | Beat 6 |
-| Install beat: one `manage_catalog` install batch in the setup chat | runbook `installBeat()` | Moved to the task chat (Sid, D4): handoff part 4 asks its first turn for ONE `manage_catalog` install call with only the plugins the task needs (all picked for machine setup or a task naming the app; `plugin_tasks` bring their own), then ONE `manage_connections` connect call | Beat 7 part 4 |
-| `::onboarding{step="handoff" task brief plan}` + HandoffCard + `requestSetupHandoff` + hidden runbook seed in the new session | `cards/build.tsx::HandoffCard`, `setup-profile.ts` | `start_chat {message, title, profile: primary_profile}`; the plan runbooks become paragraphs of the visible message | Beat 7 |
+| Install beat: one `manage_catalog` install batch in the setup chat | runbook `installBeat()` | Moved to the task chat (Sid, D4): handoff part 4 asks its first turn for ONE `manage_catalog` install call with only the plugins the task needs (all picked for machine setup or a task naming the app; `plugin_tasks` bring their own), then ONE `manage_connections` connect call | `templates/handoff.md` part 4 |
+| `::onboarding{step="handoff" task brief plan}` + HandoffCard + `requestSetupHandoff` + hidden runbook seed in the new session | `cards/build.tsx::HandoffCard`, `setup-profile.ts` | `start_chat {message, title, profile: primary_profile}`; the plan runbooks become paragraphs of the visible message, in `templates/handoff.md`, which the fork result carries | Beat 7 |
| `[setup] handoff complete` note | `setup-profile.ts::buildHandoffCompleteNote` | `start_chat` result `started` | Beat 8 |
| Handoff-failed note + "Retry first build" button | runbook step 8, HandoffCard | `start_chat` result `rejected`; the bot says so and retries once, with the same `profile`, when the user says yes | Beat 8 |
| `[setup] <summary>` hidden user rows after each card | `cards/frame.tsx` | `setup_choose` tool results | Tool rules |
| `::onboarding{step="progress" title}` in the task chat | `setup-profile.ts`, ProgressCard | Dropped (directives are deleted). No replacement (open question 9) | - |
-| `::ask` "Does this match what you wanted?" in the task chat | `setup-profile.ts` | Handoff message part 6 asks the task chat to ask (it has `clarify`) | Beat 7 part 6 |
+| `::ask` "Does this match what you wanted?" in the task chat | `setup-profile.ts` | Handoff message part 6 asks the task chat to ask (it has `clarify`) | `templates/handoff.md` part 6 |
| `::ask` "Want me to run this?" (machine-setup) in the task chat | `MACHINE_SETUP_RUNBOOK` | Machine-setup paragraph of the handoff message | Beat 7 |
| `[setup] checkpoint` note after 8 and 20 tool calls in the task chat | `first-build.ts` | No carrier (open question 9) | - |
| Post-handoff tour of the profile rail and sessions list | `signpost.ts::showHandoffTour` | Beat 8 line says where the setup chat lives. The rail tour itself is not in the skill: after `start_chat` the user may already be in the new chat (open question 6) | Beat 8 |
diff --git a/optional-skills/productivity/initiate-setup/SKILL.md b/optional-skills/productivity/initiate-setup/SKILL.md
index 62348102905..48ca4ec40ae 100644
--- a/optional-skills/productivity/initiate-setup/SKILL.md
+++ b/optional-skills/productivity/initiate-setup/SKILL.md
@@ -13,7 +13,7 @@ metadata:
# Initiate Setup Skill
-Runs a new user's first conversation with Hermes. On desktop the app plays the opening itself (the welcome, the name card, the accent card), and you take over from the accent answer: the apps they use, plugins, layout, the tour offer, then one real first task, started in its own chat with `start_chat`. The facts below and their words shape all of it. You do not do the task, install anything, or read the machine.
+Runs a new user's first conversation with Hermes. On desktop the app usually plays the opening (the welcome, the name card, the accent card), and you take over from the accent answer: the apps they use, plugins, layout, the tour offer, then one real first task, started in its own chat with `start_chat`. The facts below and their words shape all of it. You do not do the task, install anything, or read the machine.
## When to Use
@@ -26,11 +26,11 @@ Do not use it inside a task chat. When `setup_completed_at` is set, or `start_ch
The setup profile's tools on desktop (setup never uses `tool_search`, `tool_describe` or `tool_call`):
-- `setup_choose` asks every question and shows every picker. `kind` is `question`, `accent`, `theme`, `layout`, `connectors` or `plugins`. `options` is at most 12 `{id, label, detail}`; a picker without `options` shows the app's fixed list. It blocks until the user answers and returns `{outcome, picked}`: an option id, a list of ids with `multi_select`, or the text they typed.
+- `setup_choose` shows one card and blocks until the user answers. `options` is always sent: at most 12 `{id, label, detail}`, or `[]` for the app's own list (free text for `question`); `tour`, `fork` and `machine_use` always show the app's rows. Returns `{outcome, picked, label, next, handoff}`: `picked` is an option id, a list of ids with `multi_select`, or the text they typed; `label` names a picked row; `next`, when present, is the flow's next step: do it in the same turn; the fork's result carries `handoff` for beat 7.
- `start_chat` starts a visible chat whose first user message is your `message`, in `profile`. Returns `{status: "started", session_id, profile, title}` or `{status: "rejected", reason}`. Each call starts one more chat.
- `apply_layout` applies a layout preset by id.
-- `gui_tour` highlights parts of the app: `action:"start"` with a `preset` runs the app's own tour; `action:"targets"`, then `action:"start"` with `steps`, runs your own.
-- `manage_connections` with `action:"connect"` and exact connector ids shows the app's sign-in card and blocks until the user finishes or skips it. Use it only for apps the user asks to connect now.
+- `gui_tour` highlights parts of the app.
+- `manage_connections` connect shows the app's sign-in card and blocks until the user finishes or skips it.
There are no terminal, file, web, browser, memory, delegation, code execution or `clarify` tools here, and nothing installs in this chat; the task chat has all of that.
@@ -44,14 +44,18 @@ Host facts:
!`${HERMES_PYTHON} scripts/host_facts.py`
-- `machine.*`: hardware and OS. Background only; never recite it.
+- `machine.*`: hardware and OS. Background only; never recite it unasked.
- `account.suggested_name` (the OS full name or null, never a login handle), `account.locale`, `account.locale_is_english`, `account.home_age_days`.
- `signals.machine_kind` (`Mac`, `PC`, `Spark` or `computer`: say it where the flow says "this computer"), `signals.machine_state` (`fresh`, `settling`, `established`, `unknown`), `looks_new`, `is_spark`, `machine_setup_leads` (the fork variant), `description` (one line for the machine-setup handoff).
- `plugin_tasks`: `[{id, label, plugins}]`, first tasks that bring their own plugins.
-- `fork`: `question`, `options`, `fallback_question`, `fallback_options`, passed exactly.
+- `fork`: the fork card's `question`, and the rows the card shows by itself; beat 6 branches on their ids.
- `scan`, interpreted in code, or `{source: "unavailable"}`. Its field names say what they hold. Take care with `history_before_this_install` (a new machine is not a new user); `user_level`, `beginner_framing`, `runs_agents` (see Shape it to them); `apps_installed_no_use_seen` (weaker than `apps_used`); `crash_30d` (the only machine-health fact: mention it only when above 0, and only in the machine-setup handoff); `unknown` (not measured, never none or zero); `not_visible_at_tier` (hidden on purpose, never guess it).
-When the host facts line still shows a command, host facts are unknown: suggest no name, and build the fork yourself: `question:"Know what you'd like it to make?"`, options `mind` "I have something in mind", `automate` "Automate something I already do", `machine` "Help me set up this computer", `figure` "Let's figure it out together", `skip` "Skip this for now".
+When the host facts line still shows a command, host facts are unknown: suggest no name, and use "Know what you'd like it to make?" for the fork.
+
+The apps and plugins cards start with the apps the scan saw in use, and Blender when it is here, already picked. Say nothing about that unless asked.
+
+Work one beat at a time. First turn: when the history holds the name and accent answers, start at beat 1; otherwise run the Opening. Read nothing further yet.
Host facts describe the backend machine; when they and the user disagree, believe the user.
@@ -65,25 +69,27 @@ Host facts describe the backend machine; when they and the user disagree, believ
| 3 | Layout | card `layout` |
| 4 | Tour offer | card `tour`; one `gui_tour` |
| 5 | The fork | card `fork` |
-| 6 | Narrow to one task | card `machine_use`, or at most two question cards |
+| 6 | Narrow to one task | card `machine_use`, or cards `project` and `tasks` |
| 7 | Handoff | `start_chat`, exactly once |
| 8 | After the handoff | one line, then stop |
-The `setup_choose` arguments for each card. Copy the line whole, `options` and `multi_select` included. Fill only the `<slots>`; translate only `question` and labels.
+The `setup_choose` arguments for each card. Copy the line whole. Fill only the `<slots>`; translate only `question` and the labels you write.
```
name {"kind":"question","question":"What should I call you?","options":[{"id":"suggested","label":"<account.suggested_name>"}],"multi_select":false}
-name0 (suggested_name is null; no options key at all, "options":[] fails) {"kind":"question","question":"What should I call you?","multi_select":false}
-accent {"kind":"accent","question":"Which colour?","multi_select":false}
-apps {"kind":"connectors","question":"Which of these do you use?","multi_select":true}
-plugins {"kind":"plugins","question":"Want any of these?","multi_select":true}
-layout {"kind":"layout","question":"Which layout?","multi_select":false}
-tour {"kind":"question","question":"Want a look around first?","options":[{"id":"basics","label":"Quick tour"},{"id":"tour","label":"Show me everything"},{"id":"none","label":"Skip, let's build something"}],"multi_select":false}
-fork {"kind":"question","question":"<fork.question>","options":<fork.options, every entry copied>,"multi_select":false}
-machine_use {"kind":"question","question":"What's this <signals.machine_kind> mainly for?","options":[{"id":"work","label":"Work"},{"id":"gaming","label":"Gaming"},{"id":"school","label":"School"},{"id":"creative","label":"Creative"},{"id":"mix","label":"A bit of everything"}],"multi_select":false}
+name0 {"kind":"question","question":"What should I call you?","options":[],"multi_select":false}
+accent {"kind":"accent","question":"Which colour?","options":[],"multi_select":false}
+apps {"kind":"connectors","question":"Which of these do you use?","options":[],"multi_select":true}
+plugins {"kind":"plugins","question":"Want any of these?","options":[],"multi_select":true}
+layout {"kind":"layout","question":"Which layout?","options":[],"multi_select":false}
+tour {"kind":"tour","question":"Want a look around first?","options":[],"multi_select":false}
+fork {"kind":"fork","question":"<fork.question>","options":[],"multi_select":false}
+machine_use {"kind":"machine_use","question":"What's this <signals.machine_kind> mainly for?","options":[],"multi_select":false}
+project {"kind":"question","question":"<your question>","options":[],"multi_select":false}
+tasks {"kind":"question","question":"<your question>","options":[<3 or 4 first tasks>],"multi_select":false}
```
-Only the beat 6 project question goes out with just `kind` and `question`. Check each call against its line: without `options`, `name`, `tour`, `fork` and `machine_use` show a bare text box; without `"multi_select":true`, `apps` and `plugins` allow one row.
+`name0` is for a null `suggested_name`.
The other calls:
@@ -98,9 +104,8 @@ Tool rules, always:
- One `setup_choose` at a time.
- Before a card: the acknowledgment of the last answer, then the beat's own sentence or one light opinion, and nothing else. Every sentence is a statement ending in a full stop. The card shows its question under your text, so ask nothing, never name the next card's topic, start with no lead-in word (Now, Next, Right, Let's, One more thing), never write "next", and never list or describe the options. Bad: "Blender, noted. The layout next; you can change it any time." Good: "Blender, noted." then the card.
- Acknowledge a result with the pick's name and at most three plain words, never the same phrase twice: "Violet, done.", "Gmail, noted." No adjective or opinion about the pick and no word about the machine; opinions go before a pick, never after it. Bad: "That violet works.", "NVIDIA green, nice fit for that rig.", "Noted."
-- Pass fixed lists exactly: same ids, same order. Translate labels in another language, never ids.
- Options you write yourself suit pills: at most six, labels of a few words, a `detail` only when the label cannot carry the point.
-- Text typed instead of using the card is the answer. Never repeat a tool call that succeeded.
+- Text typed instead of using the card is the answer. Never repeat a tool call that succeeded, except to re-send the pending card after an off-flow answer.
## Procedure
@@ -115,16 +120,17 @@ Tool rules, always:
The cards and their lists are fixed; what you say around them and the first tasks you offer come from the facts and their words.
-- Before a card you may offer one light opinion from the facts or their words ("Elite suits a day in the terminal."). Never tell them what the scan saw ("I see you play a lot of games"), and never state what kind of person they are: an installed app is a hunch that shapes what you offer; ask when it matters.
+- Before a card you may offer one light opinion from the facts or their words ("Elite suits a day in the terminal."). Unasked, say what the scan saw only once: one "I noticed" line right before card `fork` (Beat 5) that shapes the first tasks, such as "You run agents and live in Slack, so I lean toward work you can hand off." Name at most two things, never a private detail (no counts, hosts, repos, file or browsing specifics). Outside that line, never tell them what the scan saw, and never state what kind of person they are: an installed app is a hunch that shapes what you offer; ask when it matters.
+- Honesty: when they ask what you know about them or this computer, answer truthfully from the facts in a few plain lines: the machine basics, the apps this computer showed in use, and that Hermes scanned this computer when setup began and a short summary is part of this chat. Never deny the scan or claim to know less than the facts show; never guess `unknown` or `not_visible_at_tier`. Then re-send the pending card.
- When `scan.beginner_framing` is false, explain no basics; when `scan.runs_agents` is true, talk to them as someone who runs agents. Otherwise assume this is their first AI agent app: explain a feature in a plain sentence when their task needs it, with no glossary and no jargon such as harness or MCP.
- Only `signals.machine_state` `fresh` is a new machine: age is a setup heuristic, and Spark hardware alone never means a new device or OS install. Accept a correction and drop the new-machine framing.
- Models, when asked: the model picker chooses what answers them. For a local model, explain the download and hardware fit first (web search and apps keep their own services), then point to Settings, Providers, Local Models. Name no web search provider.
### Opening
-On desktop the app plays the welcome, card `name` and card `accent` before you speak, and their results are in the history: the name is that `picked` (the suggested name when it is `suggested`). Start at beat 1.
+When the name and accent results are in the history (the app played them), start at beat 1: the name is that `picked` (the suggested name when it is `suggested`).
-When the history has no name answer (setup started by hand, or another surface), open it yourself: a short welcome in your own words, no tip or command ("Hey, come on in. I'm Hermes. Give me two minutes to set the place up around you, then we'll put me to work on something you actually want done."), then card `name` or `name0`. A "sure" or "yes" means the suggested name, exactly. Then one warm sentence about their name (not praise, no word about colour) and card `accent`. For a colour asked by name or hex, send card `accent` with one option `{"id":"#rrggbb","label":"<the colour's name>"}`.
+Otherwise open it yourself: a short welcome in your own words, no tip or command ("Hey, come on in. I'm Hermes. Give me two minutes to set the place up around you, then we'll put me to work on something you actually want done."), then card `name` or `name0`. A "sure" or "yes" means the suggested name, exactly. Then one warm sentence about their name (not praise, no word about colour) and card `accent`. For a colour asked by name or hex, send card `accent` with one option `{"id":"#rrggbb","label":"<the colour's name>"}`.
If they give no name, never invent one, and leave "Call me" out of the handoff.
@@ -154,26 +160,25 @@ The acknowledgment, then card `tour`. Then:
- Both: ONE call, no `targets` and no `steps`, after one short line: "Here's where things live."
- `none`: no tour line.
-Then go straight to beat 5 in the same turn, so the fork waits under the tour. Never bring the tour up again. To show one part of the app later, call `targets`, then `start` with `steps` built only from what it reports (stable targets first); never invent a selector.
+Then go straight to beat 5 in the same turn, so the fork waits under the tour. A cancelled tour card means `none`. Never bring the tour up again. To show one part of the app later, call `targets`, then `start` with `steps` built only from what it reports (stable targets first); never invent a selector.
### Beat 5: the fork
-Before card `fork`, in your own words: "Ask me to show you any part of the app whenever you like. I'd rather build you something real than talk about it." Then card `fork` with every entry of `fork.options`. Never change the question or an entry: beat 6 branches on the ids.
+Before card `fork`, in your own words: "Ask me to show you any part of the app whenever you like. I'd rather build you something real than talk about it." Add the one "I noticed" line (Shape it to them) when the scan has something worth naming. Then card `fork`; the app fills its rows.
When `signals.machine_setup_leads` is true, the fork shows machine setup first and the rest behind "Something else". Add one sentence:
- `signals.looks_new`: "This <machine_kind> looks newly set up, and I can handle its updates, drivers and everyday tools." Never its age in days.
- Otherwise (a Spark of unknown or older age): name the hardware and offer to check its GPU, drivers and local AI tools. Never call it a new OS install.
- Never list installs before the machine audit.
-- On `something_else`: one short line, then card `fork` again with `fork.fallback_question` and every entry of `fork.fallback_options`.
### Beat 6: narrow to one task
- `mind`, or a task typed in: decided. Go to beat 7.
-- `machine`: the machine is the job. One line that frames it and asks nothing ("The Spark itself, then."), card `machine_use`, then hand off with the machine-setup plan. Never plan or list installs; the task chat audits first.
-- A `plugin_tasks` id: decided. The ask is its label in the first person ("Help me make something in Blender."), plus what they want to make only if they said it. Build plan; its `plugins` join the install list.
-- `skip`: the whole message is one sentence: "It's all yours, and this chat stays here if you want a hand." No more questions, no handoff.
-- `automate`, `figure`, or a general idea: one short question about their real project or what they wish took less time (`kind:"question"`, no options), unless they already said. Then a question card with three or four first tasks.
+- `machine`: the machine is the job. One line that frames it and asks nothing ("The Spark itself, then."), card `machine_use`, then hand off; the fork result's `handoff.plan` is the machine-setup plan. Never plan or list installs; the task chat audits first.
+- A `plugin_tasks` id: decided. The ask is its label in the first person ("Help me make something in Blender."), plus what they want to make only if they said it. Its `plugins` join the install list.
+- `figure`, `skip`, a cancelled card, or a skipped card: follow `next`. A card cancelled by a message they typed is not a skip.
+- `automate`, or a general idea: card `project`, one short question about their real project or what they wish took less time, unless they already said. Then card `tasks`.
First-task options: short actions phrased as the outcome, at most one per app, so an installed app such as Blender earns ONE option. Prefer apps in `scan.apps_used`, one in `apps_installed_no_use_seen` only when their goals point to it, and name only apps they picked in beat 1. Fill the rest from their goals, one of them connection-free. Patterns, never a claim that an app is available: "Find emails that need a reply", "Find focus time around my meetings", "Catch me up on my project channel", "Turn my notes into next steps".
@@ -185,22 +190,7 @@ One short sentence: the work gets its own chat so it has room, and this one stay
- `profile`: `primary_profile`. Without it the task opens here, with no terminal or file tools.
- `title`: the task's name.
-- `message`: the handoff message, the new chat's first user message. It is visible, so write it as their own ask, in their language, in the first person. Nothing else reaches the task chat: no memory, no hidden note.
-
-The install list: beat 2 picks the task needs (all of them for machine setup or a task naming the app), plus a `plugin_tasks` task's `plugins`. The connect list: apps the task needs that beat 1 did not connect; none for machine setup.
-
-The message, in this order, one paragraph per part (part names are not text). Copy the quoted wording, fill only the `<slots>`, and drop a sentence, clause or part whose slot is empty or whose condition does not hold. Add nothing they did not say. Check every non-empty part is there.
-
-1. The ask, in one or two sentences, in their words where they gave them, keeping the named app and the outcome. No machine specs.
-2. "Call me <name>." Then what they are working on, if they said it.
-3. "I use: <all app picks, exact ids>. Connected during setup: <apps beat 1 connected>."
-4. Only with an install or connect list: "In your first turn, before anything else: install <install list> with one `manage_catalog` install call carrying all of them, then connect <connect list> with one `manage_connections` connect call carrying all of them. The ids are exact; skip search and status checks, and start the work when they return. If I skip some, go on without them and tell me in one line what each would have added; do not offer them again." Drop the install or the connect clause when its list is empty. With an install list, add: "Find plugin tools with `tool_search` and read a plugin's skill with `skill_view` by its exact name; if its app is not running, tell me plainly." With other plugin picks, add: "Picked during setup, not needed yet: <other plugin picks>."
-5. The plan paragraph (below).
-6. Last (drop the first sentence when `scan.beginner_framing` is false): "I'm new to AI agent apps: when a feature first matters, explain it in a sentence or two, no jargon. As you start, tell me in one short sentence that you'll ask for permissions as you go and I can say no or redirect you. When the first pass is done, ask me whether it matches what I wanted, with Looks right, Change something, and Take it further, and act on my pick."
-
-Build plan (the default): "Plan briefly, then build: scaffold, research, first artifact. Use real data only from connected apps and find their tools with `tool_search`; tools already signed in on this computer, like a logged-in gh, are fair to use, and say so in one line. Never route around a connector: no IMAP client, app password or other way into the same account; if I decline one, that app is out of this build. Ask before sending, deleting or scheduling anything, and set up no recurring job unless I asked. Make the result something I can open: one HTML page if the idea allows it." With a connect list, add: "Include at least one real reading or action through a connected app." Without one, add: "Make this first version finishable with no account I have not connected: web research with the browser visible to me, scripts, a small app, a file-based tracker, a generated page. If the idea needs an account, build the no-account core first and offer the connection next."
-
-Machine-setup plan: "Get this computer ready to use, end to end, with the terminal. It needs no account; never send me to a sign-in for it. Setup signals, not proof of the machine's age: <signals.description>. I mainly use it for <their answer>. Look first: OS and version, architecture, pending updates, free disk, the package manager, and which everyday tools are installed (browser, editor, git, python, node, docker, the apps I named). On NVIDIA also check the GPU and driver (nvidia-smi), a container runtime and the CUDA toolchain. Tell me what you found in a few plain lines. Match the plan to my use: email, calendars, documents and meetings need no developer stack. Recommend WSL or CUDA only as a verified need of my use, benefit first; never WSL on Linux or macOS, never a CUDA reinstall just because this is a Spark. Propose a short numbered plan, most useful first: updates, a package manager if missing, my everyday tools, sane defaults, then anything exotic. Ask before running it, with Go ahead, Change the list, and Just the essentials. Then one step at a time, one line per step on what it is for. Prefer native, already-working tools and the official package manager over downloaded installers. Never install what I did not agree to, overwrite config without asking, or disable security settings; stop and ask when anything looks destructive or wants a password I did not give. Drivers: on Windows check for missing or unknown devices and vendor GPU drivers, and say so when the OS already handles it; on macOS, system updates and the App Store cover drivers, so say that; on Linux check the kernel and driver pairing before touching the GPU. On Arm, check the architecture for every install, prefer native arm64 builds, say when only an emulated x64 one exists, and never assume a tool has an Arm release. On an Arm Windows PC with NVIDIA silicon, treat CUDA and anything GPU-related as arm64-specific and verify the build first. Anything needing my sign-in, a licence key or a payment goes on a list for me. Finish with what changed, what you skipped and why, what is left for me, and whether a reboot is needed." Keep only the "Drivers:" clause for `machine.os_family` and only the Arm sentences that match `machine.native_arch`, word for word.
+- `message`: the handoff message, written exactly as the fork result's `handoff.message` says, with `handoff.plan` as its plan.
### Beat 8: after the handoff
@@ -209,9 +199,10 @@ Machine-setup plan: "Get this computer ready to use, end to end, with the termin
### Failure handling
-- A card returns no pick or fails: take the default and move on. Accent and layout keep what the app shows; apps and plugins record nothing. Say nothing about the empty answer. Never re-ask a card in the same form.
-- A beat skipped in words: move on without comment. Stopping setup: the `skip` sentence, nothing more.
-- Off the flow: answer in a sentence or two, then continue where you were. For light or dark, send `{"kind":"theme","question":"Light or dark?","multi_select":false}`.
+- A card returns no pick or fails: take the default and move on. Accent and layout keep what the app shows; apps and plugins record nothing; the tour is `none`; from the fork on, follow `next`. Say nothing about the empty answer. Never re-ask a skipped card in the same form.
+- A beat skipped in words: move on without comment. When they stop setup, say only "It's all yours, and this chat stays here if you want a hand."
+- Off the flow, even when their message cancelled a card: answer in a sentence or two, then re-send the card they left, once. For light or dark, send `{"kind":"theme","question":"Light or dark?","options":[],"multi_select":false}`.
+- Every path ends in `start_chat` or that sentence; never end a turn on an open question with no card.
- Something only the task chat can do (a command, a file, a plugin install): say it happens there, fold it into the handoff message, and carry on. A plugin asked for after beat 2 counts as picked.
- After a relaunch mid-setup: continue from the first beat with no answer in the history.
@@ -219,24 +210,20 @@ Machine-setup plan: "Get this computer ready to use, end to end, with the termin
When `surface` is not `desktop` or a tool is not in `tools_present`:
-- No `setup_choose`: ask in plain text, one question per message, with the options in one short sentence. Ask the name yourself; skip accent and layout.
-- On a messaging platform or a remote server, the apps they use matter most: ask about them first and in more depth.
+- No `setup_choose`: ask in plain text, one question per message, options in one short sentence. Ask the name yourself; skip accent and layout. On messaging or a remote server, ask about the apps they use first and in more depth.
- No `gui_tour`: skip the tour offer; once, say they can ask for a tour in any chat.
-- No `start_chat`: start the task in this chat, with the handoff message as your own brief, minus any part 4 clause whose tool is not in `tools_present`.
-- No `manage_catalog`: name the plugins the task needs and give them `hermes plugins install <id>` for each.
-- Off desktop you are still Hermes, never "Setup" or "the setup assistant": short plain sentences, no em dashes, no exclamation marks, no stock lines.
-- Never call an absent tool or mention that one is missing.
+- No `start_chat`: start the task here, with what they said as your brief. No `manage_catalog`: give `hermes plugins install <id>` for each plugin the task needs.
+- You are still Hermes, never "Setup": short plain sentences, no em dashes, no exclamation marks, no stock lines. Never call an absent tool or mention that one is missing.
## Pitfalls
-- Repeating the card's question in text, or changing a fixed list.
-- A second `start_chat`, or one without `profile`.
+- Repeating the card's question in text.
- A handoff message missing a part: the task chat sees nothing else.
## Verification
-- On desktop your first message acknowledges the accent and ends in card `apps`; without the app's opening, it ends in card `name`.
-- Beats follow the Quick Reference, one card at a time; the fork carries `fork.options` unchanged.
+- With the app's opening in the history, your first message acknowledges the accent and ends in card `apps`; without it, it ends in card `name` or `name0`.
+- Beats follow the Quick Reference, one card at a time; every `setup_choose` call carries `options`.
- Any `manage_connections` call carries only apps the user asked to connect now.
- Exactly one `start_chat` returned `started`, with `profile` = `primary_profile` and a `message` holding every non-empty part.
- After `started` there is one short line and no question.
diff --git a/optional-skills/productivity/initiate-setup/scripts/host_facts.py b/optional-skills/productivity/initiate-setup/scripts/host_facts.py
index 6c39578dcf8..6d6e7f6942a 100644
--- a/optional-skills/productivity/initiate-setup/scripts/host_facts.py
+++ b/optional-skills/productivity/initiate-setup/scripts/host_facts.py
@@ -100,6 +100,12 @@ _SCAN_APPS = {
"Steam": ("steam",),
}
+# Scan app labels that are also connector ids on the connectors card; the card drops ids it does not list.
+_SCAN_CONNECTORS = {
+ "Discord": "discord", "Figma": "figma", "Notion": "notion", "Obsidian": "obsidian", "Outlook": "outlook",
+ "Slack": "slack", "Spotify": "spotify", "Teams": "microsoft_teams", "Zoom": "zoom",
+}
+
_AGENT_NAMES = {"claude_code": "Claude Code", "codex": "Codex", "hermes": "Hermes"}
_BROWSERS = frozenset({
@@ -684,6 +690,16 @@ def _blender_present(declared: str | None, profile: dict | None) -> bool:
return "Blender" in used + unused
+def _blender_seen(declared: str | None, profile: dict | None) -> bool:
+ """Proof of presence only: the declaration found Blender, or, when it gave no answer, the scan saw it."""
+ if declared in ("present", "app_not_running"):
+ return True
+ if declared == "missing_app" or not profile:
+ return False
+ used, unused, _ = _scan_apps(profile)
+ return "Blender" in used + unused
+
+
def _machine_state(scan: dict | None, age: int | None) -> tuple[str, int | None]:
if scan and scan.get("machine_state") in ("fresh", "settling", "established"):
owned = scan.get("owned_days")
@@ -719,7 +735,8 @@ def collect(scanned: Callable[[float], tuple[dict | None, str]] | None = None) -
leads = spark or looks_new
kind = _machine_kind(os_family, spark)
plugin_tasks = [_NVIDIA_TASK] if os_family == "win32" and gpu == "nvidia" else []
- if _blender_present(blender(deadline)[0], profile):
+ blender_state = blender(deadline)[0]
+ if _blender_present(blender_state, profile):
plugin_tasks.append(_BLENDER_TASK)
return {
@@ -746,6 +763,7 @@ def collect(scanned: Callable[[float], tuple[dict | None, str]] | None = None) -
"looks_new": looks_new,
"is_spark": spark,
"has_nvidia_gpu": gpu == "nvidia",
+ "has_blender": _blender_seen(blender_state, profile),
"machine_setup_leads": leads,
"description": _description(
looks_new=looks_new, age=setup_age, spark=spark, gpu=gpu, cpu=cpu,
@@ -758,6 +776,42 @@ def collect(scanned: Callable[[float], tuple[dict | None, str]] | None = None) -
}
+def _handoff(facts: dict) -> dict:
+ """The handoff message's parts and its two plans from ``templates/handoff.md``, the machine plan cut to
+ this computer, so the model reads them only when it reaches the handoff."""
+ text = (Path(__file__).resolve().parent.parent / "templates" / "handoff.md").read_text(encoding="utf-8")
+ sections = dict(re.findall(r"^## (\S+)\n\n(.*?)\n*(?=^## |\Z)", text, re.M | re.S))
+ machine, scan = facts["machine"], facts.get("scan") or {}
+ arm = str(machine["native_arch"]).lower() in ("arm64", "aarch64")
+ crashes = scan.get("crash_30d")
+ parts = [
+ sections["machine"].replace("<description>", facts["signals"]["description"]),
+ sections["machine-crashes"].replace("<crash_30d>", str(crashes)) if isinstance(crashes, int) and crashes else "",
+ sections["machine-nvidia"] if machine["gpu_class"] == "nvidia" else "",
+ sections["machine-plan"],
+ sections.get(f"machine-drivers-{machine['os_family']}", ""),
+ sections["machine-arm"] if arm else "",
+ sections.get(f"machine-arm-nvidia-{machine['os_family']}", "") if arm and machine["gpu_class"] == "nvidia" else "",
+ sections["machine-end"],
+ ]
+ return {"message": sections["message"], "build": sections["build"],
+ "machine": '"' + " ".join(part for part in parts if part) + '"'}
+
+
+def setup_cards(facts: dict) -> dict:
+ """What the setup cards take from these facts: the fork rows, the rows the apps and plugins cards start
+ with picked (apps seen in use; Blender when it is here), and the handoff text the fork result carries."""
+ used = (facts.get("scan") or {}).get("apps_used") or []
+ return {
+ "fork": facts["fork"],
+ "preselected": {
+ "connectors": [_SCAN_CONNECTORS[app] for app in used if app in _SCAN_CONNECTORS],
+ "plugins": ["blender"] if facts["signals"].get("has_blender") else [],
+ },
+ "handoff": _handoff(facts),
+ }
+
+
def main() -> None:
parser = argparse.ArgumentParser()
parser.add_argument("--from-json", type=Path, help="interpret this saved scan instead of scanning")
diff --git a/optional-skills/productivity/initiate-setup/templates/handoff.md b/optional-skills/productivity/initiate-setup/templates/handoff.md
new file mode 100644
index 00000000000..3d8a11b2971
--- /dev/null
+++ b/optional-skills/productivity/initiate-setup/templates/handoff.md
@@ -0,0 +1,62 @@
+# Handoff message
+
+`scripts/host_facts.py` sends these sections with the fork card's result, the machine plan cut to this computer. Each `## ` heading names one section.
+
+## message
+
+The handoff message is the new chat's first user message. It is visible, so write it as their own ask, in their language, in the first person. Nothing else reaches the task chat: no memory, no hidden note.
+
+The install list: the plugins they picked that the task needs (all of them for machine setup or a task naming the app), plus a picked first task's own `plugins`. The connect list: apps the task needs that setup did not connect; none for machine setup.
+
+Write these parts in order, one paragraph each (part names are not text). Copy the quoted wording, fill only the `<slots>`, and drop a sentence, clause or part whose slot is empty or whose condition does not hold. Add nothing they did not say. Check every non-empty part is there.
+
+1. The ask, in one or two sentences, in their words where they gave them, keeping the named app and the outcome. No machine specs.
+2. "Call me <name>." Then what they are working on, if they said it.
+3. "I use: <all app picks, exact ids>. Connected during setup: <apps setup connected>."
+4. Only with an install or connect list: "In your first turn, before anything else: install <install list> with one `manage_catalog` install call carrying all of them, then connect <connect list> with one `manage_connections` connect call carrying all of them. The ids are exact; skip search and status checks, and start the work when they return. If I skip some, go on without them and tell me in one line what each would have added; do not offer them again." Drop the install or the connect clause when its list is empty. With an install list, add: "Find plugin tools with `tool_search` and read a plugin's skill with `skill_view` by its exact name; if its app is not running, tell me plainly." With other plugin picks, add: "Picked during setup, not needed yet: <other plugin picks>."
+5. The plan below, word for word.
+6. Last (drop the first sentence when `scan.beginner_framing` is false): "I'm new to AI agent apps: when a feature first matters, explain it in a sentence or two, no jargon. As you start, tell me in one short sentence that you'll ask for permissions as you go and I can say no or redirect you. When the first pass is done, ask me whether it matches what I wanted, with Looks right, Change something, and Take it further, and act on my pick."
+
+## build
+
+"Plan briefly, then build: scaffold, research, first artifact. Use real data only from connected apps and find their tools with `tool_search`; tools already signed in on this computer, like a logged-in gh, are fair to use, and say so in one line. Never route around a connector: no IMAP client, app password or other way into the same account; if I decline one, that app is out of this build. Ask before sending, deleting or scheduling anything, and set up no recurring job unless I asked. Make the result something I can open: one HTML page if the idea allows it." With a connect list, add: "Include at least one real reading or action through a connected app." Without one, add: "Make this first version finishable with no account I have not connected: web research with the browser visible to me, scripts, a small app, a file-based tracker, a generated page. If the idea needs an account, build the no-account core first and offer the connection next."
+
+## machine
+
+Get this computer ready to use, end to end, with the terminal. It needs no account; never send me to a sign-in for it. Setup signals, not proof of the machine's age: <description>. I mainly use it for <their answer>. Look first: OS and version, architecture, pending updates, free disk, the package manager, and which everyday tools are installed (browser, editor, git, python, node, docker, the apps I named).
+
+## machine-nvidia
+
+Also check the GPU and driver (nvidia-smi), a container runtime and the CUDA toolchain.
+
+## machine-plan
+
+Tell me what you found in a few plain lines. Match the plan to my use: email, calendars, documents and meetings need no developer stack. Recommend WSL or CUDA only as a verified need of my use, benefit first; never WSL on Linux or macOS, never a CUDA reinstall just because this is a Spark. Propose a short numbered plan, most useful first: updates, a package manager if missing, my everyday tools, sane defaults, then anything exotic. Ask before running it, with Go ahead, Change the list, and Just the essentials. Then one step at a time, one line per step on what it is for. Prefer native, already-working tools and the official package manager over downloaded installers. Never install what I did not agree to, overwrite config without asking, or disable security settings; stop and ask when anything looks destructive or wants a password I did not give.
+
+## machine-drivers-win32
+
+Drivers: check for missing or unknown devices and vendor GPU drivers, and say so when Windows already handles it.
+
+## machine-drivers-darwin
+
+Drivers: system updates and the App Store cover drivers on macOS, so say that.
+
+## machine-drivers-linux
+
+Drivers: check the kernel and driver pairing before touching the GPU.
+
+## machine-arm
+
+On Arm, check the architecture for every install, prefer native arm64 builds, say when only an emulated x64 one exists, and never assume a tool has an Arm release.
+
+## machine-arm-nvidia-win32
+
+On an Arm Windows PC with NVIDIA silicon, treat CUDA and anything GPU-related as arm64-specific and verify the build first.
+
+## machine-end
+
+Anything needing my sign-in, a licence key or a payment goes on a list for me. Finish with what changed, what you skipped and why, what is left for me, and whether a reboot is needed.
+
+## machine-crashes
+
+It shut down unexpectedly <crash_30d> times in the last 30 days; find out why as part of the look.
diff --git a/tools/setup_choose_tool.py b/tools/setup_choose_tool.py
index e1bcdd04866..b341a21577c 100644
--- a/tools/setup_choose_tool.py
+++ b/tools/setup_choose_tool.py
@@ -3,17 +3,65 @@ from typing import Callable, Optional
from tools.registry import registry, tool_error
-KINDS = ("question", "accent", "theme", "layout", "connectors", "plugins")
+KINDS = ("question", "accent", "theme", "layout", "connectors", "plugins", "tour", "fork", "machine_use")
MAX_OPTIONS = 12
+# The skill branches on the ids of these rows, so they are filled here and any rows the model sent are dropped.
+_TOUR_ROWS = [
+ {"id": "basics", "label": "Quick tour"},
+ {"id": "tour", "label": "Show me everything"},
+ {"id": "none", "label": "Skip, let's build something"},
+]
+_MACHINE_USE_ROWS = [
+ {"id": "work", "label": "Work"},
+ {"id": "gaming", "label": "Gaming"},
+ {"id": "school", "label": "School"},
+ {"id": "creative", "label": "Creative"},
+ {"id": "mix", "label": "A bit of everything"},
+]
+# The fork when the /initiate-setup turn recorded none (host facts unknown).
+_FORK = {"question": "Know what you'd like it to make?", "options": [
+ {"id": "mind", "label": "I have something in mind"},
+ {"id": "automate", "label": "Automate something I already do"},
+ {"id": "machine", "label": "Help me set up this computer"},
+ {"id": "figure", "label": "Let's figure it out together"},
+ {"id": "skip", "label": "Skip this for now"},
+]}
_NO_ANSWER = ("The card got no answer: it timed out, the turn was interrupted, or no Hermes desktop "
"window answered.")
+# From the fork on, each skipped card steps down this ladder, so setup ends in a handoff or a stop.
+_SKIP_LADDER = (
+ "No question: send a kind='question' card with three or four first tasks built from the scan and the apps they "
+ "picked.",
+ "Send a kind='question' card with ONE concrete first task built from the scan and the apps they picked; when "
+ "they pick it, hand off with start_chat.",
+ "Stop setup: say only \"It's all yours, and this chat stays here if you want a hand.\" No card and no handoff.",
+)
+_MACHINE_USE_SKIPPED = "Hand off with the machine-setup plan and leave their use out."
+_RESEND = ("If this text does not answer the card, answer it in a sentence or two, then send this card again in "
+ "the same turn: {card}")
+
+
+def _card(kind: str, question: str, multi_select: bool = False, options: Optional[list] = None) -> str:
+ return json.dumps({"kind": kind, "question": question, "options": options or [], "multi_select": multi_select},
+ ensure_ascii=False, separators=(",", ":"))
+
+
+# The card that follows each of these in the flow, so the model cannot drop a beat.
+_THEN: dict[str, Callable[[dict, object], str]] = {
+ "connectors": lambda cards, picked: "Send card plugins: " + _card("plugins", "Want any of these?", True),
+ "plugins": lambda cards, picked: "Send card layout: " + _card("layout", "Which layout?"),
+ "layout": lambda cards, picked: "Send card tour: " + _card("tour", "Want a look around first?"),
+ "tour": lambda cards, picked: (
+ ("After the gui_tour call, send" if picked in ("basics", "tour") else "No tour. Send")
+ + " card fork in this same turn: " + _card("fork", (cards.get("fork") or _FORK)["question"])),
+}
def _normalize_options(options) -> tuple:
- if options is None:
+ if options is None or options == []:
return None, None
- if not isinstance(options, list) or not options:
- return None, "options must be a non-empty array of {id, label, detail?}, or omitted."
+ if not isinstance(options, list):
+ return None, "options must be an array of {id, label, detail?}; [] for the app's list or free text."
if len(options) > MAX_OPTIONS:
return None, f"options has {len(options)} entries; the limit is {MAX_OPTIONS}."
normalized, seen = [], set()
@@ -37,16 +85,69 @@ def _normalize_options(options) -> tuple:
return normalized, None
-def _result(reply: Optional[dict]) -> str:
+def _result(reply: Optional[dict], options: Optional[list]) -> dict:
if reply is None:
- return json.dumps({"outcome": "no_answer", "picked": None, "notice": _NO_ANSWER})
- if reply.get("picked") is None:
- return json.dumps({"outcome": "cancelled", "picked": None})
- return json.dumps({"outcome": "submitted", "picked": reply["picked"]}, ensure_ascii=False)
+ return {"outcome": "no_answer", "picked": None, "notice": _NO_ANSWER}
+ picked = reply.get("picked")
+ if picked is None:
+ return {"outcome": "cancelled", "picked": None}
+ result = {"outcome": "submitted", "picked": picked}
+ # The settled card and the model read the pick by name; rows the backend filled are not in the call's args.
+ labels = {option["id"]: option["label"] for option in options or ()}
+ if isinstance(picked, list) and any(value in labels for value in picked):
+ result["label"] = [labels.get(value, value) for value in picked]
+ elif isinstance(picked, str) and picked in labels:
+ result["label"] = labels[picked]
+ return result
+
+
+def _follow_up(kind: str, card: str, result: dict, rows: Optional[list], cards: dict) -> tuple[dict, dict]:
+ """``next`` (and, from the fork, ``handoff``) for this answer, and the conversation's updated card state."""
+ state, extra = dict(cards), {}
+ outcome, picked = result["outcome"], result["picked"]
+ if outcome == "no_answer":
+ return extra, state
+ if kind == "fork":
+ plan = "machine" if picked == "machine" else "build"
+ handoff = cards.get("handoff")
+ if handoff and state.get("plan_sent") != plan:
+ extra["handoff"] = {"message": handoff["message"], "plan": handoff[plan]}
+ state["plan_sent"] = plan
+ state["fork_seen"] = True
+ step = state.get("step", -1)
+ skipped = outcome == "cancelled" or (kind == "fork" and picked == "skip")
+ if skipped and kind == "machine_use":
+ extra["next"] = _MACHINE_USE_SKIPPED
+ elif skipped and (kind == "fork" or (kind == "question" and state.get("fork_seen"))):
+ # A skipped card of several first tasks steps to one task, and a skipped single task to the stop.
+ shape = 0 if kind == "fork" or not rows else 2 if len(rows) == 1 else 1
+ state["step"] = min(max(step + 1, shape), len(_SKIP_LADDER) - 1)
+ extra["next"] = _SKIP_LADDER[state["step"]]
+ elif kind == "fork" and picked == "figure":
+ state["step"] = max(step, 0)
+ extra["next"] = _SKIP_LADDER[state["step"]]
+ elif outcome == "submitted" and isinstance(picked, str) and rows and picked not in {row["id"] for row in rows}:
+ extra["next"] = _RESEND.format(card=card)
+ elif kind in _THEN:
+ extra["next"] = _THEN[kind](cards, picked)
+ return extra, state
+
+
+# App-owned parts of a card, filled here from the recorded facts so the model can neither drop nor edit them.
+_APP_FILLED: dict[str, Callable[[dict], dict]] = {
+ "tour": lambda cards: {"options": _TOUR_ROWS, "multi_select": False},
+ "machine_use": lambda cards: {"options": _MACHINE_USE_ROWS, "multi_select": False},
+ "fork": lambda cards: {"options": (cards.get("fork") or _FORK)["options"], "multi_select": False},
+ "connectors": lambda cards: {"preselected": (cards.get("preselected") or {}).get("connectors") or [],
+ "multi_select": True},
+ "plugins": lambda cards: {"preselected": (cards.get("preselected") or {}).get("plugins") or [],
+ "multi_select": True},
+}
+_APP_ROWS = frozenset({"tour", "machine_use", "fork"})
def setup_choose_tool(kind: str = "", question: str = "", options=None, multi_select=None,
- callback: Optional[Callable] = None) -> str:
+ callback: Optional[Callable] = None, session_id: Optional[str] = None) -> str:
if callback is None:
return tool_error("setup_choose is only available in the Hermes desktop app.")
if kind not in KINDS:
@@ -54,13 +155,30 @@ def setup_choose_tool(kind: str = "", question: str = "", options=None, multi_se
text = str(question or "").strip()
if not text:
return tool_error("question must be non-empty text.")
- normalized, error = _normalize_options(options)
+ normalized, error = (None, None) if kind in _APP_ROWS else _normalize_options(options)
if error:
return tool_error(error)
payload = {"kind": kind, "question": text, "options": normalized,
"multi_select": bool(multi_select) and (normalized is not None or kind != "question")}
+ card = _card(kind, text, payload["multi_select"], normalized)
+ from hermes_cli.setup_profile import read_cards, record_cards
try:
- return _result(callback(payload))
+ cards = read_cards(session_id) if session_id else {}
+ if kind == "fork" and "fork" not in cards:
+ from agent.initiate_setup_prompt import collect_setup_cards
+ cards = {**cards, **collect_setup_cards()}
+ payload.update(_APP_FILLED[kind](cards) if kind in _APP_FILLED else {})
+ reply = callback(payload)
+ fork = cards.get("fork") if kind == "fork" else None
+ # "Something else" on a machine-first fork opens the rest of the fork in the same call.
+ if fork and fork.get("fallback_options") and (reply or {}).get("picked") == "something_else":
+ payload = {**payload, "question": fork["fallback_question"], "options": fork["fallback_options"]}
+ reply = callback(payload)
+ result = _result(reply, payload["options"])
+ extra, state = _follow_up(kind, card, result, payload["options"], cards)
+ if session_id and state != cards:
+ record_cards(session_id, state)
+ return json.dumps({**result, **extra}, ensure_ascii=False)
except Exception as exc:
return tool_error(f"Failed to get user input: {exc}")
@@ -68,15 +186,17 @@ def setup_choose_tool(kind: str = "", question: str = "", options=None, multi_se
SETUP_CHOOSE_SCHEMA = {
"name": "setup_choose",
"description": (
- "Ask the user one thing in the setup chat through a card: a question, or a "
- "picker for accent, theme, layout, connectors or plugins. The card shows "
- "`question` itself, so your message text must not repeat it. Omit `options` "
- "for accent, theme, layout, connectors or plugins to show the app's own list. "
- "kind='question' without options asks for free text; with options the user may "
- "still type an answer. multi_select lets the user pick several rows. "
- "Result: {outcome, picked}. outcome is submitted, cancelled or "
- "no_answer (with a notice saying why). picked is the chosen option id (or the "
- "typed text) as a string, or a list of ids with multi_select."
+ "Ask the user one thing in the setup chat through a card: a question, a "
+ "picker for accent, theme, layout, connectors or plugins, or the app's own "
+ "tour offer, fork or machine_use rows. The card shows `question` itself, so "
+ "your message text must not repeat it. Always send `options`: [] shows the "
+ "app's own list for the pickers, tour, fork and machine_use, and free text "
+ "for kind='question'. With options the user may still type an answer. "
+ "multi_select lets the user pick several rows. Result: {outcome, picked, "
+ "label?, next?, handoff?}. outcome is submitted, cancelled or no_answer (with "
+ "a notice saying why). picked is the chosen option id (or the typed text) as "
+ "a string, or a list of ids with multi_select; label names a picked row. "
+ "Do what `next` says. `handoff` holds the start_chat message's parts and plan."
),
"parameters": {
"type": "object",
@@ -84,7 +204,7 @@ SETUP_CHOOSE_SCHEMA = {
"kind": {
"type": "string",
"enum": list(KINDS),
- "description": "question, or the picker to show.",
+ "description": "question, a picker, or the app's tour, fork or machine_use rows.",
},
"question": {
"type": "string",
@@ -92,9 +212,9 @@ SETUP_CHOOSE_SCHEMA = {
},
"options": {
"type": "array",
- "minItems": 1,
+ "minItems": 0,
"maxItems": MAX_OPTIONS,
- "description": "Rows to offer; omit for the app's own list (or free text for kind='question').",
+ "description": "Rows to offer; [] for the app's own list (free text for kind='question').",
"items": {
"type": "object",
"properties": {
@@ -107,7 +227,7 @@ SETUP_CHOOSE_SCHEMA = {
},
"multi_select": {"type": "boolean", "description": "Let the user pick several rows."},
},
- "required": ["kind", "question"],
+ "required": ["kind", "question", "options"],
},
}
diff --git a/tui_gateway/contracts/server_requests.py b/tui_gateway/contracts/server_requests.py
index e9b15b7d327..22a2d4748ce 100644
--- a/tui_gateway/contracts/server_requests.py
+++ b/tui_gateway/contracts/server_requests.py
@@ -61,6 +61,9 @@ class SetupChooseKind(WireEnum):
layout = "layout"
connectors = "connectors"
plugins = "plugins"
+ tour = "tour"
+ fork = "fork"
+ machine_use = "machine_use"
class SetupChooseOption(Params):
@@ -74,6 +77,8 @@ class SetupChooseRequestParams(ServerRequestParams):
question: str
options: list[SetupChooseOption] | None = None
multi_select: bool = False
+ # Row ids the card starts with picked: apps and plugins the machine scan saw.
+ preselected: list[str] | None = None
class SetupChooseResult(Result):
diff --git a/tui_gateway/methods_tools.py b/tui_gateway/methods_tools.py
index d876f857ae0..5bb4f5a2dd8 100644
--- a/tui_gateway/methods_tools.py
+++ b/tui_gateway/methods_tools.py
@@ -758,7 +758,7 @@ def _cmd_initiate_setup(rid, params, session, name, arg):
surface = _resolve_agent_platform(_session_source(session))
primary = _tools_mod("hermes_cli.setup_profile").primary_profile(_launch_home())
message = _tools_mod("agent.initiate_setup_prompt").build_initiate_setup_prompt(
- surface, [tool["function"]["name"] for tool in tools], primary)
+ surface, [tool["function"]["name"] for tool in tools], primary, (session or {}).get("session_key"))
return _ok(rid, {"type": "send", "message": message, "display": "/initiate-setup"})
diff --git a/website/docs/reference/tools-reference.md b/website/docs/reference/tools-reference.md
index 2aa0fc0dd42..1fcef43da34 100644
--- a/website/docs/reference/tools-reference.md
+++ b/website/docs/reference/tools-reference.md
@@ -194,7 +194,7 @@ Enabled by the desktop setup profile's own config (`platform_toolsets.cli`). Onl
| Tool | Description | Requires environment |
|------|-------------|----------------------|
-| `setup_choose` | Only through the `setup` toolset, desktop sessions only; never deferred unless a `tools.tool_search.defer` list names it. Shows one card in the setup chat: `kind` is `question`, `accent`, `theme`, `layout`, `connectors` or `plugins`, and `question` is the card's heading. `options` (up to 12 `{id, label, detail?}` rows, unique ids) replaces the app's own list; omitted, the pickers show the app's list and kind `question` asks for free text. A `question` card with options still takes a typed answer. `multi_select` lets the user pick several rows. An accent, theme or layout pick applies in the app as soon as the user picks it. The result has `outcome` (`submitted`, `cancelled` or `no_answer` with a `notice`), and `picked` (an option id or typed text, or a list of ids with `multi_select`). It stores nothing. Anywhere else the call returns an error. | — |
+| `setup_choose` | Only through the `setup` toolset, desktop sessions only; never deferred unless a `tools.tool_search.defer` list names it. Shows one card in the setup chat: `kind` is `question`, `accent`, `theme`, `layout`, `connectors`, `plugins`, `tour` or `fork`, and `question` is the card's heading. `options` is required: up to 12 `{id, label, detail?}` rows (unique ids) replace the app's own list, and `[]` shows the app's list for a picker or asks for free text for kind `question`. `tour` (Quick tour, Show me everything, Skip) and `fork` (the rows the `/initiate-setup` turn computed from host facts; "Something else" opens the rest in the same call) always show the backend's rows. The connectors and plugins cards start with the apps the setup scan saw in use, and Blender when it is present, already picked. A card with options still takes a typed answer. `multi_select` lets the user pick several rows. An accent, theme or layout pick applies in the app as soon as the user picks it. The result has `outcome` (`submitted`, `cancelled` or `no_answer` with a `notice`), `picked` (an option id or typed text, or a list of ids with `multi_select`), and `label` when the pick is one of the card's rows. It stores nothing. Anywhere else the call returns an error. | — |
## `start_chat` toolset
diff --git a/website/docs/user-guide/skills/optional/productivity/productivity-initiate-setup.md b/website/docs/user-guide/skills/optional/productivity/productivity-initiate-setup.md
index 0648e36644e..b4ae811a061 100644
--- a/website/docs/user-guide/skills/optional/productivity/productivity-initiate-setup.md
+++ b/website/docs/user-guide/skills/optional/productivity/productivity-initiate-setup.md
@@ -30,7 +30,7 @@ The following is the complete skill definition that Hermes loads when this skill
# Initiate Setup Skill
-Runs a new user's first conversation with Hermes. On desktop the app plays the opening itself (the welcome, the name card, the accent card), and you take over from the accent answer: the apps they use, plugins, layout, the tour offer, then one real first task, started in its own chat with `start_chat`. The facts below and their words shape all of it. You do not do the task, install anything, or read the machine.
+Runs a new user's first conversation with Hermes. On desktop the app usually plays the opening (the welcome, the name card, the accent card), and you take over from the accent answer: the apps they use, plugins, layout, the tour offer, then one real first task, started in its own chat with `start_chat`. The facts below and their words shape all of it. You do not do the task, install anything, or read the machine.
## When to Use
@@ -43,11 +43,11 @@ Do not use it inside a task chat. When `setup_completed_at` is set, or `start_ch
The setup profile's tools on desktop (setup never uses `tool_search`, `tool_describe` or `tool_call`):
-- `setup_choose` asks every question and shows every picker. `kind` is `question`, `accent`, `theme`, `layout`, `connectors` or `plugins`. `options` is at most 12 `{id, label, detail}`; a picker without `options` shows the app's fixed list. It blocks until the user answers and returns `{outcome, picked}`: an option id, a list of ids with `multi_select`, or the text they typed.
+- `setup_choose` shows one card and blocks until the user answers. `options` is always sent: at most 12 `{id, label, detail}`, or `[]` for the app's own list (free text for `question`); `tour`, `fork` and `machine_use` always show the app's rows. Returns `{outcome, picked, label, next, handoff}`: `picked` is an option id, a list of ids with `multi_select`, or the text they typed; `label` names a picked row; `next`, when present, is the flow's next step: do it in the same turn; the fork's result carries `handoff` for beat 7.
- `start_chat` starts a visible chat whose first user message is your `message`, in `profile`. Returns `{status: "started", session_id, profile, title}` or `{status: "rejected", reason}`. Each call starts one more chat.
- `apply_layout` applies a layout preset by id.
-- `gui_tour` highlights parts of the app: `action:"start"` with a `preset` runs the app's own tour; `action:"targets"`, then `action:"start"` with `steps`, runs your own.
-- `manage_connections` with `action:"connect"` and exact connector ids shows the app's sign-in card and blocks until the user finishes or skips it. Use it only for apps the user asks to connect now.
+- `gui_tour` highlights parts of the app.
+- `manage_connections` connect shows the app's sign-in card and blocks until the user finishes or skips it.
There are no terminal, file, web, browser, memory, delegation, code execution or `clarify` tools here, and nothing installs in this chat; the task chat has all of that.
@@ -61,14 +61,18 @@ Host facts:
!`${HERMES_PYTHON} scripts/host_facts.py`
-- `machine.*`: hardware and OS. Background only; never recite it.
+- `machine.*`: hardware and OS. Background only; never recite it unasked.
- `account.suggested_name` (the OS full name or null, never a login handle), `account.locale`, `account.locale_is_english`, `account.home_age_days`.
- `signals.machine_kind` (`Mac`, `PC`, `Spark` or `computer`: say it where the flow says "this computer"), `signals.machine_state` (`fresh`, `settling`, `established`, `unknown`), `looks_new`, `is_spark`, `machine_setup_leads` (the fork variant), `description` (one line for the machine-setup handoff).
- `plugin_tasks`: `[{id, label, plugins}]`, first tasks that bring their own plugins.
-- `fork`: `question`, `options`, `fallback_question`, `fallback_options`, passed exactly.
+- `fork`: the fork card's `question`, and the rows the card shows by itself; beat 6 branches on their ids.
- `scan`, interpreted in code, or `{source: "unavailable"}`. Its field names say what they hold. Take care with `history_before_this_install` (a new machine is not a new user); `user_level`, `beginner_framing`, `runs_agents` (see Shape it to them); `apps_installed_no_use_seen` (weaker than `apps_used`); `crash_30d` (the only machine-health fact: mention it only when above 0, and only in the machine-setup handoff); `unknown` (not measured, never none or zero); `not_visible_at_tier` (hidden on purpose, never guess it).
-When the host facts line still shows a command, host facts are unknown: suggest no name, and build the fork yourself: `question:"Know what you'd like it to make?"`, options `mind` "I have something in mind", `automate` "Automate something I already do", `machine` "Help me set up this computer", `figure` "Let's figure it out together", `skip` "Skip this for now".
+When the host facts line still shows a command, host facts are unknown: suggest no name, and use "Know what you'd like it to make?" for the fork.
+
+The apps and plugins cards start with the apps the scan saw in use, and Blender when it is here, already picked. Say nothing about that unless asked.
+
+Work one beat at a time. First turn: when the history holds the name and accent answers, start at beat 1; otherwise run the Opening. Read nothing further yet.
Host facts describe the backend machine; when they and the user disagree, believe the user.
@@ -82,25 +86,27 @@ Host facts describe the backend machine; when they and the user disagree, believ
| 3 | Layout | card `layout` |
| 4 | Tour offer | card `tour`; one `gui_tour` |
| 5 | The fork | card `fork` |
-| 6 | Narrow to one task | card `machine_use`, or at most two question cards |
+| 6 | Narrow to one task | card `machine_use`, or cards `project` and `tasks` |
| 7 | Handoff | `start_chat`, exactly once |
| 8 | After the handoff | one line, then stop |
-The `setup_choose` arguments for each card. Copy the line whole, `options` and `multi_select` included. Fill only the `<slots>`; translate only `question` and labels.
+The `setup_choose` arguments for each card. Copy the line whole. Fill only the `<slots>`; translate only `question` and the labels you write.
```
name {"kind":"question","question":"What should I call you?","options":[{"id":"suggested","label":"<account.suggested_name>"}],"multi_select":false}
-name0 (suggested_name is null; no options key at all, "options":[] fails) {"kind":"question","question":"What should I call you?","multi_select":false}
-accent {"kind":"accent","question":"Which colour?","multi_select":false}
-apps {"kind":"connectors","question":"Which of these do you use?","multi_select":true}
-plugins {"kind":"plugins","question":"Want any of these?","multi_select":true}
-layout {"kind":"layout","question":"Which layout?","multi_select":false}
-tour {"kind":"question","question":"Want a look around first?","options":[{"id":"basics","label":"Quick tour"},{"id":"tour","label":"Show me everything"},{"id":"none","label":"Skip, let's build something"}],"multi_select":false}
-fork {"kind":"question","question":"<fork.question>","options":<fork.options, every entry copied>,"multi_select":false}
-machine_use {"kind":"question","question":"What's this <signals.machine_kind> mainly for?","options":[{"id":"work","label":"Work"},{"id":"gaming","label":"Gaming"},{"id":"school","label":"School"},{"id":"creative","label":"Creative"},{"id":"mix","label":"A bit of everything"}],"multi_select":false}
+name0 {"kind":"question","question":"What should I call you?","options":[],"multi_select":false}
+accent {"kind":"accent","question":"Which colour?","options":[],"multi_select":false}
+apps {"kind":"connectors","question":"Which of these do you use?","options":[],"multi_select":true}
+plugins {"kind":"plugins","question":"Want any of these?","options":[],"multi_select":true}
+layout {"kind":"layout","question":"Which layout?","options":[],"multi_select":false}
+tour {"kind":"tour","question":"Want a look around first?","options":[],"multi_select":false}
+fork {"kind":"fork","question":"<fork.question>","options":[],"multi_select":false}
+machine_use {"kind":"machine_use","question":"What's this <signals.machine_kind> mainly for?","options":[],"multi_select":false}
+project {"kind":"question","question":"<your question>","options":[],"multi_select":false}
+tasks {"kind":"question","question":"<your question>","options":[<3 or 4 first tasks>],"multi_select":false}
```
-Only the beat 6 project question goes out with just `kind` and `question`. Check each call against its line: without `options`, `name`, `tour`, `fork` and `machine_use` show a bare text box; without `"multi_select":true`, `apps` and `plugins` allow one row.
+`name0` is for a null `suggested_name`.
The other calls:
@@ -115,9 +121,8 @@ Tool rules, always:
- One `setup_choose` at a time.
- Before a card: the acknowledgment of the last answer, then the beat's own sentence or one light opinion, and nothing else. Every sentence is a statement ending in a full stop. The card shows its question under your text, so ask nothing, never name the next card's topic, start with no lead-in word (Now, Next, Right, Let's, One more thing), never write "next", and never list or describe the options. Bad: "Blender, noted. The layout next; you can change it any time." Good: "Blender, noted." then the card.
- Acknowledge a result with the pick's name and at most three plain words, never the same phrase twice: "Violet, done.", "Gmail, noted." No adjective or opinion about the pick and no word about the machine; opinions go before a pick, never after it. Bad: "That violet works.", "NVIDIA green, nice fit for that rig.", "Noted."
-- Pass fixed lists exactly: same ids, same order. Translate labels in another language, never ids.
- Options you write yourself suit pills: at most six, labels of a few words, a `detail` only when the label cannot carry the point.
-- Text typed instead of using the card is the answer. Never repeat a tool call that succeeded.
+- Text typed instead of using the card is the answer. Never repeat a tool call that succeeded, except to re-send the pending card after an off-flow answer.
## Procedure
@@ -132,16 +137,17 @@ Tool rules, always:
The cards and their lists are fixed; what you say around them and the first tasks you offer come from the facts and their words.
-- Before a card you may offer one light opinion from the facts or their words ("Elite suits a day in the terminal."). Never tell them what the scan saw ("I see you play a lot of games"), and never state what kind of person they are: an installed app is a hunch that shapes what you offer; ask when it matters.
+- Before a card you may offer one light opinion from the facts or their words ("Elite suits a day in the terminal."). Unasked, say what the scan saw only once: one "I noticed" line right before card `fork` (Beat 5) that shapes the first tasks, such as "You run agents and live in Slack, so I lean toward work you can hand off." Name at most two things, never a private detail (no counts, hosts, repos, file or browsing specifics). Outside that line, never tell them what the scan saw, and never state what kind of person they are: an installed app is a hunch that shapes what you offer; ask when it matters.
+- Honesty: when they ask what you know about them or this computer, answer truthfully from the facts in a few plain lines: the machine basics, the apps this computer showed in use, and that Hermes scanned this computer when setup began and a short summary is part of this chat. Never deny the scan or claim to know less than the facts show; never guess `unknown` or `not_visible_at_tier`. Then re-send the pending card.
- When `scan.beginner_framing` is false, explain no basics; when `scan.runs_agents` is true, talk to them as someone who runs agents. Otherwise assume this is their first AI agent app: explain a feature in a plain sentence when their task needs it, with no glossary and no jargon such as harness or MCP.
- Only `signals.machine_state` `fresh` is a new machine: age is a setup heuristic, and Spark hardware alone never means a new device or OS install. Accept a correction and drop the new-machine framing.
- Models, when asked: the model picker chooses what answers them. For a local model, explain the download and hardware fit first (web search and apps keep their own services), then point to Settings, Providers, Local Models. Name no web search provider.
### Opening
-On desktop the app plays the welcome, card `name` and card `accent` before you speak, and their results are in the history: the name is that `picked` (the suggested name when it is `suggested`). Start at beat 1.
+When the name and accent results are in the history (the app played them), start at beat 1: the name is that `picked` (the suggested name when it is `suggested`).
-When the history has no name answer (setup started by hand, or another surface), open it yourself: a short welcome in your own words, no tip or command ("Hey, come on in. I'm Hermes. Give me two minutes to set the place up around you, then we'll put me to work on something you actually want done."), then card `name` or `name0`. A "sure" or "yes" means the suggested name, exactly. Then one warm sentence about their name (not praise, no word about colour) and card `accent`. For a colour asked by name or hex, send card `accent` with one option `{"id":"#rrggbb","label":"<the colour's name>"}`.
+Otherwise open it yourself: a short welcome in your own words, no tip or command ("Hey, come on in. I'm Hermes. Give me two minutes to set the place up around you, then we'll put me to work on something you actually want done."), then card `name` or `name0`. A "sure" or "yes" means the suggested name, exactly. Then one warm sentence about their name (not praise, no word about colour) and card `accent`. For a colour asked by name or hex, send card `accent` with one option `{"id":"#rrggbb","label":"<the colour's name>"}`.
If they give no name, never invent one, and leave "Call me" out of the handoff.
@@ -171,26 +177,25 @@ The acknowledgment, then card `tour`. Then:
- Both: ONE call, no `targets` and no `steps`, after one short line: "Here's where things live."
- `none`: no tour line.
-Then go straight to beat 5 in the same turn, so the fork waits under the tour. Never bring the tour up again. To show one part of the app later, call `targets`, then `start` with `steps` built only from what it reports (stable targets first); never invent a selector.
+Then go straight to beat 5 in the same turn, so the fork waits under the tour. A cancelled tour card means `none`. Never bring the tour up again. To show one part of the app later, call `targets`, then `start` with `steps` built only from what it reports (stable targets first); never invent a selector.
### Beat 5: the fork
-Before card `fork`, in your own words: "Ask me to show you any part of the app whenever you like. I'd rather build you something real than talk about it." Then card `fork` with every entry of `fork.options`. Never change the question or an entry: beat 6 branches on the ids.
+Before card `fork`, in your own words: "Ask me to show you any part of the app whenever you like. I'd rather build you something real than talk about it." Add the one "I noticed" line (Shape it to them) when the scan has something worth naming. Then card `fork`; the app fills its rows.
When `signals.machine_setup_leads` is true, the fork shows machine setup first and the rest behind "Something else". Add one sentence:
- `signals.looks_new`: "This &lt;machine_kind> looks newly set up, and I can handle its updates, drivers and everyday tools." Never its age in days.
- Otherwise (a Spark of unknown or older age): name the hardware and offer to check its GPU, drivers and local AI tools. Never call it a new OS install.
- Never list installs before the machine audit.
-- On `something_else`: one short line, then card `fork` again with `fork.fallback_question` and every entry of `fork.fallback_options`.
### Beat 6: narrow to one task
- `mind`, or a task typed in: decided. Go to beat 7.
-- `machine`: the machine is the job. One line that frames it and asks nothing ("The Spark itself, then."), card `machine_use`, then hand off with the machine-setup plan. Never plan or list installs; the task chat audits first.
-- A `plugin_tasks` id: decided. The ask is its label in the first person ("Help me make something in Blender."), plus what they want to make only if they said it. Build plan; its `plugins` join the install list.
-- `skip`: the whole message is one sentence: "It's all yours, and this chat stays here if you want a hand." No more questions, no handoff.
-- `automate`, `figure`, or a general idea: one short question about their real project or what they wish took less time (`kind:"question"`, no options), unless they already said. Then a question card with three or four first tasks.
+- `machine`: the machine is the job. One line that frames it and asks nothing ("The Spark itself, then."), card `machine_use`, then hand off; the fork result's `handoff.plan` is the machine-setup plan. Never plan or list installs; the task chat audits first.
+- A `plugin_tasks` id: decided. The ask is its label in the first person ("Help me make something in Blender."), plus what they want to make only if they said it. Its `plugins` join the install list.
+- `figure`, `skip`, a cancelled card, or a skipped card: follow `next`. A card cancelled by a message they typed is not a skip.
+- `automate`, or a general idea: card `project`, one short question about their real project or what they wish took less time, unless they already said. Then card `tasks`.
First-task options: short actions phrased as the outcome, at most one per app, so an installed app such as Blender earns ONE option. Prefer apps in `scan.apps_used`, one in `apps_installed_no_use_seen` only when their goals point to it, and name only apps they picked in beat 1. Fill the rest from their goals, one of them connection-free. Patterns, never a claim that an app is available: "Find emails that need a reply", "Find focus time around my meetings", "Catch me up on my project channel", "Turn my notes into next steps".
@@ -202,22 +207,7 @@ One short sentence: the work gets its own chat so it has room, and this one stay
- `profile`: `primary_profile`. Without it the task opens here, with no terminal or file tools.
- `title`: the task's name.
-- `message`: the handoff message, the new chat's first user message. It is visible, so write it as their own ask, in their language, in the first person. Nothing else reaches the task chat: no memory, no hidden note.
-
-The install list: beat 2 picks the task needs (all of them for machine setup or a task naming the app), plus a `plugin_tasks` task's `plugins`. The connect list: apps the task needs that beat 1 did not connect; none for machine setup.
-
-The message, in this order, one paragraph per part (part names are not text). Copy the quoted wording, fill only the `<slots>`, and drop a sentence, clause or part whose slot is empty or whose condition does not hold. Add nothing they did not say. Check every non-empty part is there.
-
-1. The ask, in one or two sentences, in their words where they gave them, keeping the named app and the outcome. No machine specs.
-2. "Call me &lt;name>." Then what they are working on, if they said it.
-3. "I use: &lt;all app picks, exact ids>. Connected during setup: &lt;apps beat 1 connected>."
-4. Only with an install or connect list: "In your first turn, before anything else: install &lt;install list> with one `manage_catalog` install call carrying all of them, then connect &lt;connect list> with one `manage_connections` connect call carrying all of them. The ids are exact; skip search and status checks, and start the work when they return. If I skip some, go on without them and tell me in one line what each would have added; do not offer them again." Drop the install or the connect clause when its list is empty. With an install list, add: "Find plugin tools with `tool_search` and read a plugin's skill with `skill_view` by its exact name; if its app is not running, tell me plainly." With other plugin picks, add: "Picked during setup, not needed yet: &lt;other plugin picks>."
-5. The plan paragraph (below).
-6. Last (drop the first sentence when `scan.beginner_framing` is false): "I'm new to AI agent apps: when a feature first matters, explain it in a sentence or two, no jargon. As you start, tell me in one short sentence that you'll ask for permissions as you go and I can say no or redirect you. When the first pass is done, ask me whether it matches what I wanted, with Looks right, Change something, and Take it further, and act on my pick."
-
-Build plan (the default): "Plan briefly, then build: scaffold, research, first artifact. Use real data only from connected apps and find their tools with `tool_search`; tools already signed in on this computer, like a logged-in gh, are fair to use, and say so in one line. Never route around a connector: no IMAP client, app password or other way into the same account; if I decline one, that app is out of this build. Ask before sending, deleting or scheduling anything, and set up no recurring job unless I asked. Make the result something I can open: one HTML page if the idea allows it." With a connect list, add: "Include at least one real reading or action through a connected app." Without one, add: "Make this first version finishable with no account I have not connected: web research with the browser visible to me, scripts, a small app, a file-based tracker, a generated page. If the idea needs an account, build the no-account core first and offer the connection next."
-
-Machine-setup plan: "Get this computer ready to use, end to end, with the terminal. It needs no account; never send me to a sign-in for it. Setup signals, not proof of the machine's age: &lt;signals.description>. I mainly use it for &lt;their answer>. Look first: OS and version, architecture, pending updates, free disk, the package manager, and which everyday tools are installed (browser, editor, git, python, node, docker, the apps I named). On NVIDIA also check the GPU and driver (nvidia-smi), a container runtime and the CUDA toolchain. Tell me what you found in a few plain lines. Match the plan to my use: email, calendars, documents and meetings need no developer stack. Recommend WSL or CUDA only as a verified need of my use, benefit first; never WSL on Linux or macOS, never a CUDA reinstall just because this is a Spark. Propose a short numbered plan, most useful first: updates, a package manager if missing, my everyday tools, sane defaults, then anything exotic. Ask before running it, with Go ahead, Change the list, and Just the essentials. Then one step at a time, one line per step on what it is for. Prefer native, already-working tools and the official package manager over downloaded installers. Never install what I did not agree to, overwrite config without asking, or disable security settings; stop and ask when anything looks destructive or wants a password I did not give. Drivers: on Windows check for missing or unknown devices and vendor GPU drivers, and say so when the OS already handles it; on macOS, system updates and the App Store cover drivers, so say that; on Linux check the kernel and driver pairing before touching the GPU. On Arm, check the architecture for every install, prefer native arm64 builds, say when only an emulated x64 one exists, and never assume a tool has an Arm release. On an Arm Windows PC with NVIDIA silicon, treat CUDA and anything GPU-related as arm64-specific and verify the build first. Anything needing my sign-in, a licence key or a payment goes on a list for me. Finish with what changed, what you skipped and why, what is left for me, and whether a reboot is needed." Keep only the "Drivers:" clause for `machine.os_family` and only the Arm sentences that match `machine.native_arch`, word for word.
+- `message`: the handoff message, written exactly as the fork result's `handoff.message` says, with `handoff.plan` as its plan.
### Beat 8: after the handoff
@@ -226,9 +216,10 @@ Machine-setup plan: "Get this computer ready to use, end to end, with the termin
### Failure handling
-- A card returns no pick or fails: take the default and move on. Accent and layout keep what the app shows; apps and plugins record nothing. Say nothing about the empty answer. Never re-ask a card in the same form.
-- A beat skipped in words: move on without comment. Stopping setup: the `skip` sentence, nothing more.
-- Off the flow: answer in a sentence or two, then continue where you were. For light or dark, send `{"kind":"theme","question":"Light or dark?","multi_select":false}`.
+- A card returns no pick or fails: take the default and move on. Accent and layout keep what the app shows; apps and plugins record nothing; the tour is `none`; from the fork on, follow `next`. Say nothing about the empty answer. Never re-ask a skipped card in the same form.
+- A beat skipped in words: move on without comment. When they stop setup, say only "It's all yours, and this chat stays here if you want a hand."
+- Off the flow, even when their message cancelled a card: answer in a sentence or two, then re-send the card they left, once. For light or dark, send `{"kind":"theme","question":"Light or dark?","options":[],"multi_select":false}`.
+- Every path ends in `start_chat` or that sentence; never end a turn on an open question with no card.
- Something only the task chat can do (a command, a file, a plugin install): say it happens there, fold it into the handoff message, and carry on. A plugin asked for after beat 2 counts as picked.
- After a relaunch mid-setup: continue from the first beat with no answer in the history.
@@ -236,24 +227,20 @@ Machine-setup plan: "Get this computer ready to use, end to end, with the termin
When `surface` is not `desktop` or a tool is not in `tools_present`:
-- No `setup_choose`: ask in plain text, one question per message, with the options in one short sentence. Ask the name yourself; skip accent and layout.
-- On a messaging platform or a remote server, the apps they use matter most: ask about them first and in more depth.
+- No `setup_choose`: ask in plain text, one question per message, options in one short sentence. Ask the name yourself; skip accent and layout. On messaging or a remote server, ask about the apps they use first and in more depth.
- No `gui_tour`: skip the tour offer; once, say they can ask for a tour in any chat.
-- No `start_chat`: start the task in this chat, with the handoff message as your own brief, minus any part 4 clause whose tool is not in `tools_present`.
-- No `manage_catalog`: name the plugins the task needs and give them `hermes plugins install <id>` for each.
-- Off desktop you are still Hermes, never "Setup" or "the setup assistant": short plain sentences, no em dashes, no exclamation marks, no stock lines.
-- Never call an absent tool or mention that one is missing.
+- No `start_chat`: start the task here, with what they said as your brief. No `manage_catalog`: give `hermes plugins install <id>` for each plugin the task needs.
+- You are still Hermes, never "Setup": short plain sentences, no em dashes, no exclamation marks, no stock lines. Never call an absent tool or mention that one is missing.
## Pitfalls
-- Repeating the card's question in text, or changing a fixed list.
-- A second `start_chat`, or one without `profile`.
+- Repeating the card's question in text.
- A handoff message missing a part: the task chat sees nothing else.
## Verification
-- On desktop your first message acknowledges the accent and ends in card `apps`; without the app's opening, it ends in card `name`.
-- Beats follow the Quick Reference, one card at a time; the fork carries `fork.options` unchanged.
+- With the app's opening in the history, your first message acknowledges the accent and ends in card `apps`; without it, it ends in card `name` or `name0`.
+- Beats follow the Quick Reference, one card at a time; every `setup_choose` call carries `options`.
- Any `manage_connections` call carries only apps the user asked to connect now.
- Exactly one `start_chat` returned `started`, with `profile` = `primary_profile` and a `message` holding every non-empty part.
- After `started` there is one short line and no question.