Skip to content

Install Orca skills in place instead of handing users commands - #29206

Closed
Jinwoo-H wants to merge 10 commits into
jinwoo/bundled-skill-installerfrom
jinwoo/skill-install-commands
Closed

Jinwoo-H wants to merge 10 commits into
jinwoo/bundled-skill-installerfrom
jinwoo/skill-install-commands

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 30 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​500 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1617 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1117
Prod 94 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1055 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2341 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1286

ELI5

Orca used to set up its agent skills by opening a terminal and typing a command (npx skills add ...) for you, or by handing you a command to copy. That needed Node.js, the network, a correctly named orca command on your PATH, and a working shell. Now every setup screen has an Install button that installs the skills straight away, with Orca's own installer from #29196, on whichever machine your agents run on. There is no terminal, no CLI, and no Node.js involved.

Stacked on #29196 (base jinwoo/bundled-skill-installer). The two must merge together. The Update skills dialog's new per-location plan (what an update installs, links, replaces or leaves, and why) is in #29196 and arrives here through the merge; its screenshots and text changes are listed there.

What Changed

Before → after, as the user sees it:

  • Settings → Orchestration, Browser Use, Computer Use, Ephemeral VMs, Mobile Emulator, CLI, and Linear (Settings pane, Task Sources, the integration card, and the sidebar prompt):
    • Before: Install opened an inline terminal with a pasted npx [email protected] add … command for you to run.
    • After: Install (or Update once a skill is present) runs the installer directly. The button shows Installing... and then the status pill flips to Installed / Up to date. If it fails, the panel shows Setup failed, the reason in plain words (for example orchestration: not changed, the installed copy has changes Orca did not make, or "WSL is not available on this machine, so Orca could not install the skills there."), and Retry in place of Install.
  • Getting started → Give agents Orca skills, and the Browser feature card: Install skills used to copy a command, show a toast, and open a terminal. It now installs directly and shows the "ready" toast. On failure, both show the reason inline with Retry in place of the install button.
  • CLI feature tip: after registering the CLI, the tip shows an Install button for the CLI and orchestration skills instead of a terminal.
  • Copy buttons removed:
    • Orchestration's "Prefer your own terminal? Copy install command" link and its dialog.
    • The Linear card's command row and its copy button.
    • The Update skills dialog's "Copy command" after a failed run.
    • The copy button in setup terminals.
    • Every surface now has a direct install, so none of these copy paths is kept. The docs keep orca skills install as the manual/CLI route.

Where it installs:

  • On this computer: the main process installs into this machine's global skill folders.
  • Into a WSL distro: when the project or global runtime is WSL, the install goes into that distro (or the default distro for "WSL default"), using the same WSL file access shared-skill installs already use.
  • On a focused Orca server: the install runs on that server through a new skills.installBundledOrca RPC. It is gated on a new skills.install.bundled-orca.v1 capability.
  • On an older server without that capability: the panel falls back to the old terminal plus pinned npx [email protected] add flow for that server only. That fallback is the terminal branch of BundledSkillInstallStatus plus buildLegacyNpxSkillInstallCommand, both marked for deletion once those servers age out.

Mechanism:

  • New hook: useBundledSkillInstall resolves the runtime that runs the agents (the same target skill discovery already uses). It calls installBundledOrcaSkillsOnRuntimeTarget, which is local IPC or remote RPC, following the existing skills.delete pattern. It then rechecks presence and freshness. The hook is the only owner of install state: it remembers the last requested skills for Retry, and a result is dropped when the focused machine or WSL distro changes.
  • One status component: BundledSkillInstallStatus renders the failure (reason plus Retry) and the old-server terminal for every surface: settings panels, the Linear card, and both Getting started surfaces.
  • Readable errors: a thrown install error loses its Electron IPC wrapper (lib/ipc-error), and known codes become plain, translated sentences. An unknown code is shown after a generic sentence, so support can still read it.
  • Panel: AgentSkillSetupPanel now takes skillNames instead of a command string.
  • Deleted:
    • The command-name rewriting (orca → orca-ide).
    • The PowerShell/WSL command wrapping and the terminal shell overrides.
    • The prepareCommandForShell hook.
    • The copy dialogs.
    • The orca skills command builders.

Why

The reviewed design (#29206 at d958f34) still handed users a command. On a fresh Linux install the inline terminal ran orca-ide, which does not exist until the CLI is registered. Copied commands also needed CLI PATH registration, and older servers lack orca skills install. Calling the installer that the Update skills dialog already uses removes all three problems. It also deletes the string-rewriting layer instead of patching it.

Linked Issue

Refs #28914

Visual Proof

Settings → Orchestration. Each run used a hidden dev window with a scratch HOME and profile.

Before (Install opens a terminal with an npx command, plus a copy link):
settings-orchestration-before

After (Install button):
settings-orchestration-after

After clicking Install (it installed into the scratch HOME; the pill reads Up to date):
settings-orchestration-after-installed

Getting started → Give agents Orca skills.

Before (Install skills opens a terminal asking you to confirm npx):
onboarding-before

After, before clicking:
onboarding-after

After clicking Install skills (installed directly; the step shows Done):
onboarding-after-installed

Testing

  • Real app (macOS dev build, hidden window, scratch HOME): Settings → Orchestration → Install wrote ~/.agents/skills/orchestration plus agent links under the scratch HOME. The Getting started step then installed orca-cli and computer-use the same way. The real HOME was untouched.

  • Packaged desktop CLI (unpacked macOS arm64 app from electron-builder --dir, scratch HOME and userData): the app's own Contents/Resources/bin/orca installed and updated the bundled skills. Output:

    This run was before the [skills] scan lines were removed (see the next item).

    orca skills install / update
$ orca skills install --skill orca-cli
[skills] scan roots=22 present=6 walked=22 skills=1 ms=2 ids=home-codex,home-agents,codex-plugin-cache,home-claude,home-cursor,home-gemini,home-droid,home-continue,home-trae,home-grok,home-aug,home-zcode
orca-cli: installed (~/.agents/skills/orca-cli)
[exit 0]

$ orca skills update
Choose one or more skills to update:
  computer-use
  jira-tickets
  linear-tickets
  orca-cli
  orca-emulator
  orca-emulator-android
  orca-jira
  orca-linear
  orca-per-workspace-env
  orchestration

Usage: orca skills update --skill <name> [--skill <name> ...]
   or: orca skills update --all
[exit 0]

$ orca skills update --skill orca-cli
[skills] scan roots=22 present=6 walked=22 skills=1 ms=2 ids=home-codex,home-agents,codex-plugin-cache,home-claude,home-cursor,home-gemini,home-droid,home-continue,home-trae,home-grok,home-aug,home-zcode
orca-cli: already up to date (~/.agents/skills/orca-cli)
[exit 0]

$ orca skills update --all
[skills] scan roots=22 present=6 walked=22 skills=2 ms=4 ids=home-codex,home-agents,codex-plugin-cache,home-claude,home-cursor,home-gemini,home-droid,home-continue,home-trae,home-grok,home-aug,home-zcode
  (repeated once per skill)
computer-use: installed (~/.agents/skills/computer-use)
jira-tickets: installed (~/.agents/skills/jira-tickets)
linear-tickets: installed (~/.agents/skills/linear-tickets)
orca-cli: already up to date (~/.agents/skills/orca-cli)
orca-emulator: installed (~/.agents/skills/orca-emulator)
orca-emulator-android: installed (~/.agents/skills/orca-emulator-android)
orca-jira: installed (~/.agents/skills/orca-jira)
orca-linear: installed (~/.agents/skills/orca-linear)
orca-per-workspace-env: installed (~/.agents/skills/orca-per-workspace-env)
orchestration: installed (~/.agents/skills/orchestration)
[exit 0]

$ find ~ -maxdepth 4 (skill files, scratch HOME)
~
~/.agents
~/.agents/skills
~/.agents/skills/computer-use
~/.agents/skills/computer-use/SKILL.md
~/.agents/skills/jira-tickets
~/.agents/skills/jira-tickets/SKILL.md
~/.agents/skills/linear-tickets
~/.agents/skills/linear-tickets/SKILL.md
~/.agents/skills/orca-cli
~/.agents/skills/orca-cli/SKILL.md
~/.agents/skills/orca-emulator
~/.agents/skills/orca-emulator-android
~/.agents/skills/orca-emulator-android/SKILL.md
~/.agents/skills/orca-emulator/SKILL.md
~/.agents/skills/orca-jira
~/.agents/skills/orca-jira/SKILL.md
~/.agents/skills/orca-linear
~/.agents/skills/orca-linear/SKILL.md
~/.agents/skills/orca-per-workspace-env
~/.agents/skills/orca-per-workspace-env/SKILL.md
~/.agents/skills/orchestration
~/.agents/skills/orchestration/SKILL.md
~/.claude
~/.claude/skills
~/.claude/skills/computer-use
~/.claude/skills/jira-tickets
~/.claude/skills/linear-tickets
~/.claude/skills/orca-cli
~/.claude/skills/orca-emulator
~/.claude/skills/orca-emulator-android
~/.claude/skills/orca-jira
~/.claude/skills/orca-linear
~/.claude/skills/orca-per-workspace-env
~/.claude/skills/orchestration
~/.cursor
~/.cursor/skills
~/.cursor/skills/computer-use
~/.cursor/skills/jira-tickets
~/.cursor/skills/linear-tickets
~/.cursor/skills/orca-cli
~/.cursor/skills/orca-emulator
~/.cursor/skills/orca-emulator-android
~/.cursor/skills/orca-jira
~/.cursor/skills/orca-linear
~/.cursor/skills/orca-per-workspace-env
~/.cursor/skills/orchestration
~/.gemini
~/.gemini/config
~/.gemini/config/skills
~/.gemini/config/skills/computer-use
~/.gemini/config/skills/jira-tickets
~/.gemini/config/skills/linear-tickets
~/.gemini/config/skills/orca-cli
~/.gemini/config/skills/orca-emulator
~/.gemini/config/skills/orca-emulator-android
~/.gemini/config/skills/orca-jira
~/.gemini/config/skills/orca-linear
~/.gemini/config/skills/orca-per-workspace-env
~/.gemini/config/skills/orchestration
~/.gemini/skills
~/.gemini/skills/computer-use
~/.gemini/skills/jira-tickets
~/.gemini/skills/linear-tickets
~/.gemini/skills/orca-cli
~/.gemini/skills/orca-emulator
~/.gemini/skills/orca-emulator-android
~/.gemini/skills/orca-jira
~/.gemini/skills/orca-linear
~/.gemini/skills/orca-per-workspace-env
~/.gemini/skills/orchestration
~/.grok
~/.grok/skills
~/.grok/skills/computer-use
~/.grok/skills/jira-tickets
~/.grok/skills/linear-tickets
~/.grok/skills/orca-cli
~/.grok/skills/orca-emulator
~/.grok/skills/orca-emulator-android
~/.grok/skills/orca-jira
~/.grok/skills/orca-linear
~/.grok/skills/orca-per-workspace-env
~/.grok/skills/orchestration
~/orca-user-data
~/orca-user-data/skill-installs
~/orca-user-data/skill-installs/extraction-journals
~/orca-user-data/skill-installs/journals
~/orca-user-data/skill-installs/locks
~/orca-user-data/skill-installs/placement-journals
~/orca-user-data/skill-installs/receipts
~/orca-user-data/skill-installs/receipts/2ab6de291509b26fdb39c6092d8825389bd4f7683bc1431205e0d215af15e948.json
~/orca-user-data/skill-installs/receipts/30f36b09cf1b1683d47a0aecd3347d61108055b4a201a1fe1015423774d9790a.json
~/orca-user-data/skill-installs/receipts/6d3bc503afa3339d99ddcff565d77144e5a8b6bdc5ad01b5cf5123810759ef6f.json
~/orca-user-data/skill-installs/receipts/77966969a246fb6dbca768d1c240f18f3a2fde8d95e35e39f7fc0b2885a3bd10.json
~/orca-user-data/skill-installs/receipts/8d18026ea94df094f8b71c8bc44c2230234bd78e471bdf0a3c3077160250528c.json
~/orca-user-data/skill-installs/receipts/a2c527bea2dce86d900becef3a1b2f30ebdc9df698e87a2274f527fabc775887.json
~/orca-user-data/skill-installs/receipts/bf94bbc7790cc2a35ff2a801b94ec1b343dc6f744174c805a85b89f9ff468e59.json
~/orca-user-data/skill-installs/receipts/c65ad96ceff99962e668ab37a8363f973447b0452a64b36958179bfb9521ecad.json
~/orca-user-data/skill-installs/receipts/ce00a3b6045513a9793e093064c078a59ecf7daff6164f9a147bec58d1dc4fd0.json
~/orca-user-data/skill-installs/receipts/e124e517038a2bb8e62e7558d939626406884381e60b90f55797ec0e04ee6db2.json
  • After the smoke findings were fixed in Install Orca's own skills with Orca's skill installer instead of npx skills #29196 (this head's built CLI, scratch HOME): update no longer adds skills and the [skills] scan lines are gone.

    $ orca skills update --all
    No Orca skills are installed here, so there is nothing to update. Install one with: orca skills install --skill <name>
    $ orca skills install --skill orca-cli
    orca-cli: installed (~/.agents/skills/orca-cli)
    $ orca skills update --all
    orca-cli: already up to date (~/.agents/skills/orca-cli)
    $ orca skills update --skill orchestration   # exit 1
    orchestration: not installed, so not updated. Install it with: orca skills install --skill orchestration
    
  • Unit tests:

    • Panel install, progress, failure and retry, WSL distro routing, and the legacy-name update.
    • Old-server fallback to the terminal.
    • Client routing (local IPC versus remote RPC, capability gating, no WSL distro forwarded to a remote, since on desktop it names a local Windows project's distro).
    • Hook: an unresolved machine reports a failure instead of doing nothing, Retry reruns the last request, and a failure clears when the focused machine changes.
    • The RPC handler.
    • Surface wiring.
  • Checks: pnpm tc, check:code-quality:changed, oxlint, oxfmt, the localization checks, and the RPC params catalog all pass locally. Touched test folders pass, apart from two known unrelated flaky tests.

  • Not exercised: a real WSL distro and a real older paired server. Both paths are covered by unit tests only.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • Remote wire compatibility: the RPC method and capability are both new. Old clients never call the method. New clients check the capability first and use the old terminal flow on servers without it.
  • SSH: skill installs follow the runtime that discovery scans (this machine or a paired server). There is still no install into an SSH host from this machine, the same as before.
  • Telemetry: the onboarding_feature_setup_terminal_opened and ..._interacted events are deleted with their schemas, because there is no terminal on that path. No new event is added.

User-visible text changes (for sign-off)

  • Carried over from the previous revision: "Installing...", the Linear modal install description, and "Install the Orca CLI and orchestration skills for your agents."
  • New error sentences:
    • "WSL is not available on this machine, so Orca could not install the skills there."
    • "This machine cannot install skills into WSL."
    • "Orca could not check which agents are installed in WSL. Make sure the distro starts, then retry."
    • "Orca could not find the home folder to install the skills into."
    • "The skill install was cancelled."
    • "Orca could not install the skills." (followed by the code for unknown failures)
    • "Orca is still finding the machine your agents run on. Retry in a moment."
  • The Browser card's install failure is now shown inline with Retry instead of a "Browser setup failed" toast.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Every copy-paste and setup-terminal skill command now runs Orca's own
installer instead of npx skills add. The leading orca becomes orca-ide on
Linux and in WSL, where the CLI registers under that name. Removes the
Windows npx prerequisite wrapper, the skills CLI agent-key table and the
npx update round-trip workflow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every skill setup surface now has an Install button that runs the bundled
installer on the machine the agents use: this computer, its WSL distro, or
the focused Orca server through a new capability-gated
skills.installBundledOrca RPC. A server that predates it keeps the old npx
terminal flow, isolated in LegacySkillSetupTerminal for later deletion.
Removes the copy-command buttons, the command-name rewriting, and the
shell-specific terminal wrapping.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Jinwoo-H Jinwoo-H changed the title Point skill install commands at orca skills install Install Orca skills in place instead of handing users commands Oct 16, 2026
Jinwoo-H and others added 8 commits October 15, 2026 20:46
…ll-commands

# Conflicts:
#	config/tsconfig.cli.json
#	src/cli/handlers/bundled-skill-install-command.ts
…rors

The install hook now owns the last request (Retry), drops results when the
focused machine changes, and reports an unresolved machine instead of doing
nothing. One status component shows the failure with Retry, or the old-server
terminal, on every surface. Thrown errors lose the IPC wrapper and known codes
become plain translated sentences. The WSL target is forwarded to a focused
server as the web client does. The terminal telemetry events, their dead
helpers, stale shard timings and ko overrides are removed, and i18n keys no
longer name deleted components.

Co-Authored-By: Claude <[email protected]>
A desktop WSL target names a local Windows project's distro, so a focused
server installs on its own host as before.

Co-Authored-By: Claude <[email protected]>
… cannot hit

A click on a newly focused machine now installs there even while the previous
machine's install runs, and a repeated click shows the running install.

Co-Authored-By: Claude <[email protected]>
…ll-commands

# Conflicts:
#	src/cli/handlers/bundled-skill-install-command.ts
#	src/main/ipc/skills.ts
#	src/main/runtime/runtime-skill-install-commands.ts
#	src/main/skills/bundled-orca-skill-cli-entry.ts
#	src/renderer/src/components/skills/SkillFreshnessUpdateDialog.tsx
@Jinwoo-H

Copy link
Copy Markdown
Contributor Author

Superseded by #31662, #31688, #31867 and #31918, which are now merged.

@Jinwoo-H Jinwoo-H closed this Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant