Skip to content

The agent that grows with you

fix(skills): initiate-setup keeps today's plugin install timing and scope

alt-glitch99da58805b5a
diff --git a/optional-skills/productivity/initiate-setup/MAPPING.md b/optional-skills/productivity/initiate-setup/MAPPING.md
index 521c7171e82..efc3bfea205 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, 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/`.
+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 with today's timing and scope (the install beat right before the handoff, only the plugins the task needs); 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,7 +13,7 @@ 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"` (`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 |
+| `::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, as today: a pick only records it) | 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 |
@@ -23,7 +23,7 @@ Sources mapped: `apps/desktop/src/store/onboarding-script.ts` (the runbook), `ap
| 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()` | 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 |
+| Install beat: one `manage_catalog` install batch in the setup chat | runbook `installBeat()` | Kept in the setup chat as today (Sid, 2026-09-30): the last thing before the handoff, once the task is known, ONE `manage_catalog` install batch with only the plugins that task needs (all picked for machine setup or a task naming the app; `plugin_tasks` bring their own). The handoff message reports the outcomes | 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 |
@@ -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()` | 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 |
+| `installBeat()` | Skill, Beat 10 (install beat) | Same timing and scope as today. Every rule kept: task-needed selection, plugin tasks count as picked, unneeded picks not offered, none needed = straight to handoff, 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 | |
@@ -126,9 +126,8 @@ 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. 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.
+- Connectors and plugins are two cards. Only the connectors card has per-row intent; the plugins card only records, as today.
+- The setup chat never connects an app; the task chat connects, driven by intent. Plugins install in the setup chat with today's timing and scope.
- 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.
@@ -156,9 +155,9 @@ Resolved by Sid (2026-09-30): skill location (stays in `optional-skills/`); the
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.
+3. **Plugins card intent.** The plugins card has no `intent`, as today's flow implies (a pick records; the install beat decides by task). The new `setup_choose` spec allows `intent` on plugins rows; say if it should be used.
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. **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.
+5. **Empty plugins card.** What does the plugins card show when the catalog has no onboarding plugins? The install beat is skipped when the task needs no plugin.
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.
diff --git a/optional-skills/productivity/initiate-setup/SKILL.md b/optional-skills/productivity/initiate-setup/SKILL.md
index 74e66860a80..5076de56d80 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 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.
+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, 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
@@ -62,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 | When picked, their `plugins` install at the handoff if they had no card row yet. |
+| `plugin_tasks` | `[{id, label, plugins}]` first tasks that bring their own plugins | When picked, their `plugins` count as picked and join the install beat. |
| `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.
@@ -75,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, then install | `setup_choose kind:"plugins", multi_select:true`; then one `manage_catalog action:"install"` |
+| 5 | Plugins for this computer | `setup_choose kind:"plugins", multi_select:true` (records only) |
| 6 | Layout | `setup_choose kind:"layout"`; `apply_layout` only for a layout asked for in words |
| 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 | `manage_catalog` only for task plugins with no card row yet; `start_chat`, exactly once |
+| 10 | Install beat, then handoff | one `manage_catalog action:"install"` for the plugins the task needs (skipped when none); `start_chat`, exactly once |
| 11 | After the handoff | text only, then stop |
Tool rules, always:
@@ -90,7 +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.
+- `manage_catalog` install: one call, in the install beat, carrying every needed plugin as a batch. Never call install again for a row that already had 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.
@@ -169,15 +169,7 @@ If they ask to connect an app right now, say it connects first thing in the task
### Beat 5: plugins for this computer
-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.
+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` with no options. Nothing installs here; the picks wait for the install beat in beat 10.
### Beat 6: layout
@@ -217,7 +209,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. 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.
+- A `plugin_tasks` id: the task is decided. Carry it into the handoff as a concrete first project, and run the install beat for that task's `plugins`.
- `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.
@@ -238,9 +230,15 @@ Connector-dependent tasks are welcome and need no no-account substitute: checkin
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.
+The install beat comes first, the last thing before the handoff. The plugins picked in beat 5 are tools for this computer that Hermes installs and runs locally. Once the task is decided, choose the ones this task needs: all of them for a machine-setup job or a task that names the app. A `plugin_tasks` task brings its own `plugins`, which count as picked even if they were not. A picked plugin the task does not need is not offered; leave it. When none are needed, go straight to the handoff.
+
+Otherwise, in that turn:
+
+- One short sentence, then ONE `manage_catalog` call with `action:"install"` and `items:[{"kind":"plugin","id":"<id>"}, ...]` carrying every needed id 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 next. Say in a clause what was not installed. Failed and skipped rows are recorded; do not offer them again. 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:
+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.
@@ -253,7 +251,7 @@ Handoff message, assembled from these parts in this order (leave out a part that
1. 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, 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."
+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), .... Picked during setup but not offered for install: <id>, .... 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."
@@ -280,12 +278,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 record nothing, and no plugin installs. 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 and plugins record nothing. 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 (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 ask for a plugin after beat 5: treat it as picked; the install beat offers it if the task needs it.
- 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.
@@ -319,5 +317,5 @@ A good run, read from the transcript:
- 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 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.
+- At most one `manage_catalog` install call, right before `start_chat`, carrying only the plugins the task needs; none when the task needs none.
- After the `started` result there is one short line and no question.