The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(skills): initiate-setup installs plugins in setup and runs the tour
alt-glitch92d0d5264f9b
diff --git a/optional-skills/productivity/initiate-setup/MAPPING.md b/optional-skills/productivity/initiate-setup/MAPPING.mdindex a34db2849ac..521c7171e82 100644--- a/optional-skills/productivity/initiate-setup/MAPPING.md+++ b/optional-skills/productivity/initiate-setup/MAPPING.md@@ -2,7 +2,7 @@Developer notes for the v0 draft. Not read by the setup bot. Remove this file (or move it out of the skill folder) before the skill ships, because an installed skill copies its whole folder.-Sources mapped: `apps/desktop/src/store/onboarding-script.ts` (the runbook), `apps/desktop/src/components/onboarding-chat/setup-profile.ts` (the task-chat runbook), `components/onboarding-chat/{directive.tsx,cards/*,assembly.ts,options.tsx,first-build.ts,signpost.ts}`, `store/onboarding-{answers,capabilities,plugins,plugin-outcomes}.ts`, `store/machine.ts`, `electron/machine-profile.ts`, `hermes_cli/setup_profile.py` (`SETUP_SOUL`). Decisions applied: NS-985 (D2: nothing writes memory; the `start_chat` message carries everything), NS-986, NS-995, NS-996, NS-1016..NS-1020.+Sources mapped: `apps/desktop/src/store/onboarding-script.ts` (the runbook), `apps/desktop/src/components/onboarding-chat/setup-profile.ts` (the task-chat runbook), `components/onboarding-chat/{directive.tsx,cards/*,assembly.ts,options.tsx,first-build.ts,signpost.ts}`, `store/onboarding-{answers,capabilities,plugins,plugin-outcomes}.ts`, `store/machine.ts`, `electron/machine-profile.ts`, `hermes_cli/setup_profile.py` (`SETUP_SOUL`). Decisions applied: NS-985 (D2: nothing writes memory; the `start_chat` message carries everything), NS-986, NS-995, NS-996, NS-1016..NS-1020, and Sid's ruling of 2026-09-30: the setup profile's tools are `setup_choose`, `start_chat`, `apply_layout`, `gui_tour` and `manage_catalog`; plugins install during setup as today; apps are not connected in setup; the tour beat stays; `setup_choose` answers mirror `clarify`; intent now / later / save = do it first / offer when a task needs it / record only; the skill stays in `optional-skills/`.## 1. Beats and directives to new primitives@@ -13,17 +13,17 @@ Sources mapped: `apps/desktop/src/store/onboarding-script.ts` (the runbook), `ap| `::onboarding{step="look"}` (LookCard, accent swatches + custom picker) | `cards/setup.tsx::LookCard` | `setup_choose kind:"accent"`, no options | Beat 2 || `::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) | Beat 2 || (none) | - | `setup_choose kind:"theme"` (new beat) | Beat 3 |-| `::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`, `intent` | Beats 4, 5 |+| `::onboarding{step="connectors"}` (one card: connectors + plugins; summary sent as `[setup] apps I use...`) | `cards/setup.tsx::ConnectorsCard` | Two cards: `setup_choose kind:"connectors"` (`multi_select`, `intent`; the result only feeds the handoff message) and `kind:"plugins"` (`multi_select`, no intent: a pick means install now) | Beats 4, 5 || `manage_connections` status + connect in the setup chat when asked | runbook "CONNECTING, IF THEY ASK" | Removed from the setup chat. The app gets intent `now`; the task chat connects first | Beat 4, Beat 10 build plan || `::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 6 || Step 4 model-picker explanation | runbook | Text | Beat 7 |-| `::ask` "Want a look around first?" + `gui_tour` targets/start | runbook step 4 | `setup_choose kind:"question"` + `gui_tour`, only when `gui_tour` is in `tools_present` (the setup profile will not have it, so in practice skipped; open question 6) | Beat 7 |+| `::ask` "Want a look around first?" + `gui_tour` targets/start | runbook step 4 | `setup_choose kind:"question"` + `gui_tour` (`targets`, then one `start`), as today | Beat 7 || `::ask` fork, `input="true"` | runbook step 5, `forkOptions()` | `setup_choose kind:"question"` with `fork.options` computed by `scripts/host_facts.py` | Beat 8 || `::ask` "What sounds better?" (Something else) | runbook, `forkFallbackOptions()` | `setup_choose` with `fork.fallback_options` | Beat 8 || Machine branch: one question on main use | runbook step 6 | `setup_choose kind:"question"`, options Work / Gaming / School / Creative / A bit of everything | Beat 9 || `::onboarding{step="working" value}` (saves `answers.context`) | `directive.tsx` DATA_STEPS | Nothing. History + `start_chat` message part 2 | Beat 9, Beat 10 || `::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 | Beat 9 |-| Install beat: one `manage_catalog` install batch in the setup chat | runbook `installBeat()` | Moved to the task chat (NS-996). The handoff message lists the install list and asks for one batch | Beat 10 part 4 |+| Install beat: one `manage_catalog` install batch in the setup chat | runbook `installBeat()` | Kept in the setup chat (Sid, 2026-09-30), moved to right after the plugins card: one short sentence, ONE `manage_catalog` install batch with every picked plugin, outcomes from its result. A second call at the handoff only for plugins a `plugin_tasks` pick brings that had no card row yet. The handoff message reports the outcomes | Beat 5, Beat 10, Beat 10 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 10 || `[setup] handoff complete` note | `setup-profile.ts::buildHandoffCompleteNote` | `start_chat` result `started` | Beat 11 || Handoff-failed note + "Retry first build" button | runbook step 8, HandoffCard | `start_chat` result `rejected`; the bot retries once or asks | Beat 11 |@@ -32,7 +32,7 @@ Sources mapped: `apps/desktop/src/store/onboarding-script.ts` (the runbook), `ap| `::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 10 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 10 || `[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 11 line says where the setup chat lives; the tour itself has no carrier (open question 6) | Beat 11 |+| Post-handoff tour of the profile rail and sessions list | `signpost.ts::showHandoffTour` | Beat 11 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 11 || "Skip this for now" fork option | runbook step 6 | Fork id `skip` | Beat 9 || Skip button (applies `basic` layout, marks skipped) | `assembly.ts::skipChatOnboarding` | Renderer / backend marker (NS-1016). The bot handles "I want to leave" in words | Failure handling |@@ -63,7 +63,7 @@ Sources mapped: `apps/desktop/src/store/onboarding-script.ts` (the runbook), `ap| Steps 1-8 | Skill, Beats 1-11 | See section 1 || Sign-in nudge when not signed in | Skill, Beat 4 | Keyed on builder fact `guest_free_tier` (today: `record.free_tier_route`) || Custom colour | Skill, Beat 2 | |-| Tour branches, `targets` first, stable targets, one `start` | Skill, Beat 7 | Conditional on `gui_tour` |+| Tour branches, `targets` first, stable targets, one `start` | Skill, Beat 7 | As today; the "only if present" hedge is gone || Local models flow (Settings, Providers, Local Models) | Skill, Beat 7 | || Fresh-machine and Spark fork text | Skill, Beat 8 | Signals computed by the script || General-idea branch, first-task card rules, connector examples | Skill, Beat 9 | Verbatim content |@@ -71,7 +71,7 @@ Sources mapped: `apps/desktop/src/store/onboarding-script.ts` (the runbook), `ap| "When a plugin fits" (Hermes interface as first build) | Skill, Beat 9 | Gated on builder fact `desktop_plugins_root` || Connector-dependent tasks welcome, no mock inbox | Skill, Beat 9 | || Plugin tasks (Blender, NVIDIA) | Script `plugin_tasks` + Skill, Beats 9-10 | |-| `installBeat()` | Handoff msg part 4 | Task chat installs (NS-996) |+| `installBeat()` | Skill, Beat 5 (install) + Beat 10 (task plugins) | Runs right after the plugins pick and batches every picked plugin, not only the ones the task needs. Every rule kept: one sentence, one batch, exact ids, one approval card, no links or commands, no Plugins-tab description, no second call for a row that had a card, settled result named, failed/skipped not re-offered || Handoff line, task <= 40, brief <= 200, plan attr | Skill, Beat 10 | `title` <= 40; the brief is now the full message || Step 8, `[setup]` notes | Skill, Beat 11 | Tool results replace notes || Fenced code block for drafts | Skill, Ground rule 7 | |@@ -89,7 +89,7 @@ Sources mapped: `apps/desktop/src/store/onboarding-script.ts` (the runbook), `ap|---|---|| Evidence, not instructions or authorization | Skill, fact block table + Beat 9 || Detection is the backend host; configured is not connected; missing detection is unknown | Skill, Beat 9 |-| Only offer setup-dependent tasks when `manage_connections` is available; do not route around a refusal | Adapted: the task chat has `manage_connections`; the no-route-around rule is in the Handoff msg build paragraph (open question 7) |+| Only offer setup-dependent tasks when `manage_connections` is available; do not route around a refusal | Adapted: the task chat has `manage_connections`; the no-route-around rule is in the Handoff msg build paragraph || Derive tasks from real descriptions; never invent; one option per detected app; keep a connection-free choice; do not replace the machine fork | Skill, Beat 9 || Carry the exact MCP name; task chat uses `manage_connections` with `name` and `mcp:true` | Handoff msg part 1 |@@ -108,7 +108,7 @@ Sources mapped: `apps/desktop/src/store/onboarding-script.ts` (the runbook), `ap| `NO_AUTH_RULE` | Handoff msg build paragraph (empty connect list) | || `MACHINE_SETUP_RUNBOOK` + `machineDescription()` | Handoff msg machine-setup paragraph + `signals.description` | Every rule kept, in first person || `pluginRunbook` (desktop plugin) | Handoff msg interface paragraph | Refers to `building-hermes-desktop-plugins`, which does not exist in the tree; replaced by a generic "read the SDK surface" (open question 10) |-| `pluginsRunbook` ("do not install plugins yourself") | Inverted | The task chat installs (NS-996) |+| `pluginsRunbook` (installed / offered / not offered; `tool_search`, `skill_view`; "do not install plugins yourself") | Handoff msg part 4 | Restored as today, built from the `manage_catalog` results in the setup chat || `::onboarding{step="progress"}` | Dropped | Directives deleted || First-pass review ask | Handoff msg part 6 | || `PLAIN_SPEECH` in the task chat | No carrier | Open question 8 |@@ -126,8 +126,9 @@ Directive parsing and `DATA_STEPS`/`STEP_CARDS`; `FUNNEL_STEPS` metrics (`record- Name suggestion uses the OS full name only; the login handle is never offered (NS-986). On this Mac (`pw_gecos == login`) no name is suggested.- Theme gets its own beat.-- Connectors and plugins are two cards with per-row intent.-- The setup chat never connects or installs; the task chat does, driven by intent.+- Connectors and plugins are two cards. Only the connectors card has per-row intent.+- The setup chat never connects an app; the task chat connects, driven by intent. Plugins install in the setup chat, as today.+- The install batch carries every picked plugin right after the plugins card. Today it waited for the task and offered only the plugins the task needed.- The whole setup can run inside one agent turn because `setup_choose` blocks.- `start_chat` targets `primary_profile`, not always `default`.- The first-task handoff carries its whole runbook as visible text.@@ -151,18 +152,20 @@ Directive parsing and `DATA_STEPS`/`STEP_CARDS`; `FUNNEL_STEPS` metrics (`record## 6. Open questions-1. **Skill location.** NS-1017 and this task say `optional-skills/productivity/initiate-setup/`; NS-986 says a built-in under `skills/productivity/` installed into the setup profile. The builder renders `SKILL.md` directly, so either works; pick one.-2. **Who supplies which fact.** `primary_profile`, `guest_free_tier`, `catalog_evidence` and `desktop_plugins_root` are session or client facts, not host facts, so the skill expects the builder to add them. `locale` and the user's name describe the person at the desktop client, but the script reads the backend host; on an SSH, URL or Cloud backend they come from the wrong machine. Should the desktop client send locale and name to the builder?-3. **`setup_choose kind:"question"` shape.** Can the user type a free answer next to fixed options (today `::ask input="true"`)? Is `picked` a string for single select and a list for multi select? What does a typed answer or a dismissed card return?+Resolved by Sid (2026-09-30): skill location (stays in `optional-skills/`); the `setup_choose` answer shape (mirrors `clarify`: an id, a list of ids with `multi_select`, or free text); the meaning of now / later / save; the tour beat (restored with `gui_tour`); plugin installs (in setup).++1. **Who supplies which fact.** `primary_profile`, `guest_free_tier`, `catalog_evidence` and `desktop_plugins_root` are session or client facts, not host facts, so the skill expects the builder to add them. `locale` and the user's name describe the person at the desktop client, but the script reads the backend host; on an SSH, URL or Cloud backend they come from the wrong machine. Should the desktop client send locale and name to the builder?+2. **Install profile versus handoff profile.** `manage_catalog` installs into the user's default profile (`tools/connectors/catalog.py::DEFAULT_PROFILE`). `start_chat` targets `primary_profile`. When they differ, the task chat does not have the plugins the handoff message calls "ready".+3. **Plugins card intent.** The skill drops `intent` on the plugins card, because a pick now means install now. Confirm, or say what later / save would mean for a plugin.4. **Accent and theme.** Can the accent card take a custom hex through `options` (the skill does `{id:"#rrggbb"}`), or does a text colour request need another tool? Today there is no theme beat; the skill adds one because the new kind exists. Confirm it is wanted.-5. **Connectors and plugins.** Today one card; the skill uses two. What does the plugins card show when the catalog has no onboarding plugins? The meaning of `now` / `later` / `save` is defined in the skill (connect or install first / offer when needed / record only); confirm.-6. **Tours.** The setup profile has no `gui_tour`, so the "Quick tour / Show me everything" beat and the post-handoff profile-rail tour (`signpost.ts`) have no carrier. The skill keeps the tour beat behind a `gui_tour` check. Add `gui_tour` to the setup toolset, move the tour to the app, or drop it?+5. **Empty plugins card.** What does the plugins card show when the catalog has no onboarding plugins? The skill skips the install when nothing is picked.+6. **Post-handoff rail tour.** `signpost.ts` shows the profile rail and sessions list after the handoff. `gui_tour` could do it, but after `start_chat` the user may be in the new chat, not watching the setup chat. Keep it in the app, or have the bot run it before `start_chat`?7. **Layout.** P16 says the layout card applies the pick live, which makes `apply_layout` redundant for the beat. Today the Elite pick also switches interface mode to advanced; `apply_layout` does not. The card uses `sidebar-left` while the skip path uses `basic`. Which ids should the card and `apply_layout` expose?8. **Guidance with no carrier in the task chat.** The memory/skill primer (`FIRST_USE_GUIDANCE` 2), `PLAIN_SPEECH` and the voice rules reached the task chat through the hidden runbook. With D2 only the visible `start_chat` message reaches it. The handoff message now carries the whole plan runbook as visible user text, which is long. Alternative: plan skills (machine-setup, desktop-plugin, first-build) in the primary profile, named in a short message.9. **Task-chat progress and check-ins.** `::onboarding{step="progress"}` and the `[setup] checkpoint` notes after 8 and 20 tool calls have no replacement.10. **Interface first task.** It needs the app-level desktop plugin folder, which only the Electron client knows (`desktopPluginsRoot`). The current runbook names a `building-hermes-desktop-plugins` skill that does not exist in the tree.-11. **SOUL check-ins.** `SETUP_SOUL` tells the bot to look at sessions, connectors and scheduled jobs before checking in. With only `setup_choose`, `start_chat` and `apply_layout`, it cannot.-12. **One turn or many.** `setup_choose` blocks, so the whole setup can run in one agent turn. What happens on a card timeout, a closed window mid-card, or a relaunch with a pending card? The skill says: take the default and continue from the first unanswered beat.-13. **Other surfaces.** P13 runs `/initiate-setup` on CLI, TUI and messaging too, in the user's own profile with full tools. The skill falls back to plain-text questions and starts the task in the same chat when `start_chat` is absent. Should it also skip beats that only make sense on desktop, or use the extra tools there?-14. **Size.** `SKILL.md` is about 33k characters and ~310 lines, above the ~200-line guide and above today's 27k runbook, because nothing was cut and the task-chat runbooks moved in. Sid plans to trim.+11. **SOUL check-ins.** `SETUP_SOUL` tells the bot to look at sessions, connectors and scheduled jobs before checking in. The setup profile's tools cannot read those.+12. **One turn or many.** `setup_choose` and `manage_catalog` block, so the whole setup can run in one agent turn. What happens on a card timeout, a closed window mid-card, or a relaunch with a pending card? The skill says: take the default and continue from the first unanswered beat.+13. **Other surfaces.** P13 runs `/initiate-setup` on CLI, TUI and messaging too, in the user's own profile with full tools. The skill falls back to plain-text questions, skips the tour without `gui_tour`, leaves plugin installs to the task chat without `manage_catalog`, and starts the task in the same chat without `start_chat`. Should it use the extra tools those sessions have?+14. **Size.** `SKILL.md` is about 36k characters and ~320 lines, above the ~200-line guide and above today's 27k runbook, because nothing was cut and the task-chat runbooks moved in. Sid plans to trim.15. **Host facts gaps.** Linux has no home birth time in `os.stat`, so a fresh Linux machine never leads with machine setup (Electron used `statx`). Name and locale are read in the skill script, not in `hermes_platform.host`, which covers hardware only. Should `hermes_platform.host` grow a birth-time helper and account facts?diff --git a/optional-skills/productivity/initiate-setup/SKILL.md b/optional-skills/productivity/initiate-setup/SKILL.mdindex ad1a3235077..74e66860a80 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: learn their name, arrange the app around them (accent, theme, layout), record the apps and plugins they use, find one real first task, and start that task in its own chat with `start_chat`. It does not do the task itself, install anything, connect any account, or read the machine: every machine fact arrives in the fact block of this turn.+Runs a new user's first conversation with Hermes: learn their name, arrange the app around them (accent, theme, layout), record the apps they use, install the plugins they pick, show them around, find one real first task, and start that task in its own chat with `start_chat`. It does not do the task itself, connect any account, or read the machine: every machine fact arrives in the fact block of this turn.## When to Use@@ -24,13 +24,15 @@ Do not use it inside a task chat, or to repeat setup after `start_chat` already## Prerequisites-Tools, all in the `setup` toolset of the setup profile on desktop sessions:+The setup profile has exactly these tools on desktop sessions:-- `setup_choose` asks every question and shows every picker. `kind` is `question`, `accent`, `theme`, `layout`, `connectors` or `plugins`. `options` (at most 12, each `{id, label, detail}`) is optional; when you omit it for `accent`, `theme`, `layout`, `connectors` or `plugins`, the app fills its own fixed list. `multi_select` allows several picks. `intent: true` gives each `connectors`/`plugins` row a now / later / save choice. It blocks until the user answers and returns `{picked, intent}`. The card shows your `question`; your text must not repeat it.+- `setup_choose` asks every question and shows every picker. `kind` is `question`, `accent`, `theme`, `layout`, `connectors` or `plugins`. `options` (at most 12, each `{id, label, detail}`) is optional; when you omit it for `accent`, `theme`, `layout`, `connectors` or `plugins`, the app fills its own fixed list. `multi_select` allows several picks. `intent: true` gives each `connectors`/`plugins` row a now / later / save choice. It blocks until the user answers and returns `{picked, intent}`, shaped like a `clarify` answer: `picked` is an option id (a list of ids with `multi_select`) or the text the user typed instead. The card shows your `question`; your text must not repeat it.- `start_chat` starts a visible chat whose first user message is your `message`, in `profile` (an existing profile). Returns `{status: "started", session_id, profile, title}` or `{status: "rejected", reason}`. It is not idempotent: each call starts one more chat.- `apply_layout` applies a layout preset by id.+- `gui_tour` highlights parts of the app: `action:"targets"` lists what can be pointed at, `action:"start"` runs the steps.+- `manage_catalog` with `action:"install"` and `items:[{kind:"plugin", id}]` shows one approval card with a row per catalog item and blocks until every row is installed, skipped, or the card is closed. The host installs each approved row into the user's default profile.-The setup profile has no terminal, file, web, browser, memory, delegation, code execution, `clarify` or catalog tools. Never promise an action that needs them; the task chat has them.+The setup profile has no `manage_connections`, terminal, file, web, browser, memory, delegation, code execution or `clarify` tools. Never promise an action that needs them; the task chat has them.## How to Run@@ -60,7 +62,7 @@ Host facts (from `scripts/host_facts.py`):| `signals.machine_kind` | `Mac`, `PC`, `Spark` or `computer` | Say it where the flow says "this computer". || `signals.looks_new`, `signals.is_spark`, `signals.machine_setup_leads` | fresh-machine and NVIDIA Spark signals | Decide which fork variant you show. || `signals.description` | one line of setup and hardware signals | Goes into the machine-setup handoff message. |-| `plugin_tasks` | `[{id, label, plugins}]` first tasks that bring their own plugins | Their `plugins` join the install list when picked. |+| `plugin_tasks` | `[{id, label, plugins}]` first tasks that bring their own plugins | When picked, their `plugins` install at the handoff if they had no card row yet. || `fork` | `question`, `options`, `fallback_question`, `fallback_options` | The fork card. Pass the options exactly. |Host facts describe the machine that runs the Hermes backend. When `machine` and what the user tells you disagree, believe the user.@@ -73,12 +75,12 @@ Host facts describe the machine that runs the Hermes backend. When `machine` and| 2 | Accent colour | `setup_choose kind:"accent"` || 3 | Light or dark | `setup_choose kind:"theme"` || 4 | Apps they use | `setup_choose kind:"connectors", multi_select:true, intent:true` |-| 5 | Plugins for this computer | `setup_choose kind:"plugins", multi_select:true, intent:true` |+| 5 | Plugins for this computer, then install | `setup_choose kind:"plugins", multi_select:true`; then one `manage_catalog action:"install"` || 6 | Layout | `setup_choose kind:"layout"`; `apply_layout` only for a layout asked for in words |-| 7 | Model picker, optional tour | text; `gui_tour` only when present |+| 7 | Model picker, then the tour offer | text; `setup_choose kind:"question"`; `gui_tour` || 8 | The fork | `setup_choose kind:"question", options: fork.options` || 9 | Narrow to one task | `setup_choose kind:"question"`, at most two more |-| 10 | Handoff | `start_chat`, exactly once |+| 10 | Handoff | `manage_catalog` only for task plugins with no card row yet; `start_chat`, exactly once || 11 | After the handoff | text only, then stop |Tool rules, always:@@ -88,6 +90,7 @@ Tool rules, always:- Pass fixed lists exactly as given: same ids, same order. Translate labels when you speak another language; never translate ids. Never rename, drop, reorder or invent a fixed option.- The result is the answer. Acknowledge it in a few words, in your own words, never the same phrase twice, and move on. Do not restate it back at them.- If they type instead of using the card, their text is the answer.+- `manage_catalog` install: one call carrying every plugin as a batch. Never call install again for a plugin that already had a row on a card.- `start_chat` exactly once, at the end, when the task is decided. Call it again only after a `rejected` result.- Never repeat a tool call that succeeded.@@ -152,7 +155,7 @@ At most one short sentence, then `setup_choose kind:"theme"` with no options.One short sentence that makes clear what connecting means: you would read and act inside those apps for them (their inbox, their calendar, their repos), not message them there. Say that nothing connects yet. Then `setup_choose kind:"connectors", multi_select:true, intent:true` with no options.-Intent per row:+Nothing connects in this chat. The picks and their intent only feed the handoff message; the task chat connects the apps after the handoff. Intent per row:- `now`: the task chat connects it first, before any other work.- `later`: the task chat offers to connect it when a task needs it.@@ -162,11 +165,19 @@ When `guest_free_tier` is true, in that same sentence, once, add one short clausChat apps like Discord or Telegram are how people reach Hermes, not what this card asks about. If they bring one up, say it lives in Messaging in the app's settings and move on.-If they ask to connect an app right now, say it connects first thing in the task chat, and treat that app as `now`. You cannot connect from here, and there is no Connectors page in Settings; do not send them to one.+If they ask to connect an app right now, say it connects first thing in the task chat, and treat that app as `now`. You cannot connect from here: never paste links, never describe a settings page, and there is no Connectors page in Settings, so do not send them to one.### Beat 5: plugins for this computer-One short sentence: plugins are tools for this computer that Hermes installs and runs locally, and picking one only records it. Then `setup_choose kind:"plugins", multi_select:true, intent:true` with no options. Intent means the same as for apps: `now` installs first in the task chat, `later` when a task needs it, `save` records only.+One short sentence: plugins are tools for this computer that Hermes installs and runs locally, and they approve each one before it installs. Then `setup_choose kind:"plugins", multi_select:true` with no options. A pick here means install now, so the card carries no intent.++The install, in the turn after the pick, when they picked at least one plugin:++- One short sentence, then ONE `manage_catalog` call with `action:"install"` and `items:[{"kind":"plugin","id":"<id>"}, ...]` carrying every picked plugin as a batch, using the exact ids from the pick.+- The app shows one approval card with a row per plugin, and the call blocks until the user installs or skips each row or presses Continue. Never paste links or commands, never describe the Plugins tab, and never call install again for a row that already had a card.+- Use the settled result. Name in one sentence what is now available (the installed rows and their tools) and say it works in the task chat that opens at the end. Say in a clause what was not installed. Failed and skipped rows are recorded; do not offer them again. Keep the result: the handoff message reports it.++When they picked no plugin, skip the install and move on.### Beat 6: layout@@ -174,13 +185,13 @@ One short sentence, then `setup_choose kind:"layout"` with no options. The cardCall `apply_layout` only when they ask for a layout in words instead of the card, or ask to change it later. The ids are `sidebar-left` (Basic, for talking to Hermes) and `terminal-deck` (Elite, for developers: terminal, files, diffs). If the result lists other ids, use one from that list.-### Beat 7: the model picker, then an optional tour+### Beat 7: the model picker, then the tour offerIn at most two short sentences: the model picker chooses what answers them, and they can ask to set up a local model on this computer after the initial free usage. Skip the filler acknowledgment. Save download details for when they choose local setup. No download, model switch, extra question or mandatory setup now.If they ask for local models, point them to Settings, Providers, Local Models. Explain the download and hardware fit before they install or switch anything; a model is not an app connection. Do not interrupt their task or pretend a runtime is installed because its settings exist.-Tour, only when `gui_tour` is in `tools_present`: offer it with `setup_choose 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"}`. Then:+Then offer a look around with `setup_choose 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"}`. Then:- `basics`: three steps, the essentials only: where their conversations live, where they ask for a job, and how to start a fresh one. One useful thing about each.- `tour`: four to six steps: the essentials plus what the layout they picked gives them, including the model picker if it is reported.@@ -189,8 +200,6 @@ Tour, only when `gui_tour` is in `tools_present`: offer it with `setup_choose kiWhichever they pick, go straight to beat 8 in the same turn, so the fork waits under the tour when they close it. Once, in your own words, say they can ask you to show them any part of the app any time. Never bring the tour up again.-When `gui_tour` is absent, skip the tour offer. Once, say they can ask for a tour of the app in any chat.-### Beat 8: the forkOne short sentence in your own words: you want to actually build them something, not just talk about it. Then `setup_choose kind:"question"`, `question: fork.question`, `options: fork.options`, exactly as given.@@ -208,7 +217,7 @@ Branch on the pick:- `mind`, or a specific task typed in: the task is decided. Go to beat 10. Skip the options card.- `machine`: the machine itself is the job. Ask one question with `setup_choose kind:"question"`: what they mainly want this `machine_kind` for, with options Work, Gaming, School, Creative, A bit of everything. Then hand off with the machine-setup plan. Do not plan the setup and do not list what you would install: the task chat audits the machine first and proposes a plan from what is there.-- A `plugin_tasks` id: the task is decided. Carry it into the handoff as a concrete first project, and add that task's `plugins` to the install list.+- A `plugin_tasks` id: the task is decided. Carry it into the handoff as a concrete first project. The task brings its own `plugins`, which count as picked even if they were not; any of them that has not had a row on a card goes into the handoff install in beat 10.- `skip`: one short line that the app is theirs and this chat stays here if they ever want a hand. Then stand down: no more questions, no handoff.- `automate`, `figure`, or a general idea: ask one short question about their real project, deadline, or what they wish took less time (`setup_choose kind:"question"`, no options). If they already told you, do not ask again. Then offer first tasks with `setup_choose kind:"question"` and three or four options, each a short action under 60 characters.@@ -227,14 +236,16 @@ Connector-dependent tasks are welcome and need no no-account substitute: checkin### Beat 10: the handoff-You do not do the task in this chat. Write one short sentence framing it: you are giving the work its own chat so it has room, and this one stays open. Then call `start_chat` once:+You do not do the task in this chat.++First, only when the chosen task brings plugins (a `plugin_tasks` entry, or a plugin they asked for after beat 5) that have not had a row on a card: one short sentence, then ONE `manage_catalog` install call with just those ids, handled as in beat 5. Then, in that same turn, the handoff.++Write one short sentence framing it: you are giving the work its own chat so it has room, and this one stays open. Then call `start_chat` once:- `profile`: `primary_profile`.- `title`: a short task name, at most 40 characters.- `message`: the handoff message below. It is the new chat's first user message, visible to the user, 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. Everything the task needs goes in this message.-The install list: plugins picked `now`, plus plugins picked `later` that this task needs, plus the `plugins` of a picked `plugin_tasks` entry. For the machine-setup plan, every plugin picked `now` or `later`.-The connect list: apps picked `now`, plus apps the task itself needs. Empty for the machine-setup plan.Handoff message, assembled from these parts in this order (leave out a part that is empty):@@ -242,7 +253,7 @@ Handoff message, assembled from these parts in this order (leave out a part that1. The ask: the task in one or two sentences, in their words where they gave them. Keep the named app and the outcome. If the task uses a `catalog_evidence` entry, name it exactly and say to connect it with `manage_connections` using that name and `mcp: true`.2. About me: "Call me <name>." Then what they are working on, if they said it.3. My apps: "Connect now: <slugs>. Offer when a task needs them: <slugs>. I also use: <slugs>." (exact connector ids from beat 4).-4. My plugins: "Install first: <install list>. I also picked: <other plugin names>." When the install list is not empty, add: "Before starting, install those with one `manage_catalog` install call carrying every id as a batch; I approve each row on the card. Then tell me in one sentence what is now available, and in a clause what was not installed. Do not offer a skipped or failed one again."+4. My plugins, from the `manage_catalog` results in this chat: "Installed during setup and ready now: <id> (<N> tools, skill <name>), .... Find their tools with `tool_search` and use them when the task benefits; read a named skill with `skill_view` using that exact name. A tool whose app is not running says so; tell me plainly. Offered and not installed: <id> (failed: <reason>) or (skipped by me), .... Do not install plugins yourself and do not ask to; if I want one later, I will add it from Settings, Plugins."5. How to work, by plan (below).6. Always, last: "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."@@ -269,11 +280,12 @@ How to work, interface plan:### Failure handling-- A `setup_choose` call fails or returns no pick (dismissed, timed out, skipped): take the beat's default and move on. Accent, theme and layout keep what the app shows. Apps and plugins record nothing. Never re-ask the same card in the same form.+- A `setup_choose` call fails or returns no pick (dismissed, timed out, skipped): take the beat's default and move on. Accent, theme and layout keep what the app shows. Apps record nothing, and no plugin installs. Never re-ask the same card in the same form.- They skip a beat in words ("skip", "later", "don't care"): move to the next beat without comment.- They want to leave or stop setup: one short line that the app is theirs and this chat stays here if they want a hand. No handoff, no more questions.- They ask something off the flow: answer in one or two sentences, then continue from the beat you were on.-- They ask for something only the task chat can do (install, connect, run a command, read a file): say it happens in the task chat, fold it into the handoff message, and carry on.+- They ask for something only the task chat can do (connect an app, run a command, read a file): say it happens in the task chat, fold it into the handoff message, and carry on.+- They ask for a plugin after beat 5: add it to the handoff install call in beat 10, unless it already had a row on a card.- They correct the machine signals ("this isn't a new machine"): accept it and drop the new-machine framing.- The chat reopens after a relaunch with setup half done: continue from the first beat that has no answer in the history. Never re-ask an answered beat.@@ -282,6 +294,8 @@ How to work, interface plan:When `surface` is not `desktop` or a tool is not in `tools_present`:- No `setup_choose`: ask each question in plain text, one per message, with the options in one short sentence. Skip beats 2, 3 and 6; nothing can apply them.+- No `gui_tour`: skip the tour offer. Once, say they can ask for a tour of the app in any chat.+- No `manage_catalog`: record the plugin picks and name them in the handoff message; the task chat installs them.- No `start_chat`: do not hand off. Start the task in this chat, and use the handoff message as your own brief.- Never call an absent tool, and never mention that a tool is missing.@@ -294,7 +308,8 @@ When `surface` is not `desktop` or a tool is not in `tools_present`:- A thin handoff message. The task chat sees nothing but that message: no memory, no picks, no plan. Everything goes in it.- Offering an interface task without `desktop_plugins_root`. The task chat cannot find the plugin folder.- Treating `looks_new` or `is_spark` as fact about the purchase. They are setup signals.-- Promising a connection, install or tour this chat cannot do.+- Promising a connection this chat cannot make. Apps connect only in the task chat.+- Calling `manage_catalog` once per plugin, or again for a row that already had a card.## Verification@@ -303,5 +318,6 @@ A good run, read from the transcript:- The first assistant message ends in a `setup_choose` call, and no assistant text repeats a card's question.- Beats come in the order of the Quick Reference, one card at a time, and a skipped beat does not stop the flow.- The fork card carries `fork.options` unchanged.-- Exactly one `start_chat` call returned `started`, with `profile` set to `primary_profile`, and its `message` holds the ask, the name, the picks with their intent, the install and connect lists, and the plan paragraph.+- Exactly one `start_chat` call returned `started`, with `profile` set to `primary_profile`, and its `message` holds the ask, the name, the app picks with their intent, the plugin outcomes, the connect list, and the plan paragraph.+- At most one `manage_catalog` install call after the plugins card, and at most one more at the handoff, for ids that had no row yet.- After the `started` result there is one short line and no question.