@orchestraai/agent-tools 0.7.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/.claude-plugin/plugin.json +1 -1
  4. package/.codex-plugin/plugin.json +1 -1
  5. package/.cursor-plugin/plugin.json +1 -1
  6. package/.devin/adapter.json +1 -1
  7. package/.hermes/adapter.json +1 -1
  8. package/.opencode/adapter.json +1 -1
  9. package/AGENTS.md +54 -14
  10. package/README.md +18 -17
  11. package/dist/agent-platforms.d.ts +1 -1
  12. package/dist/agent-platforms.js +2 -2
  13. package/dist/agent-platforms.js.map +1 -1
  14. package/dist/bin.js +10 -0
  15. package/dist/bin.js.map +1 -1
  16. package/dist/commands/onboarding.d.ts +2 -0
  17. package/dist/commands/onboarding.js +162 -0
  18. package/dist/commands/onboarding.js.map +1 -0
  19. package/dist/index.js +2 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/onboarding/agents.d.ts +56 -0
  22. package/dist/onboarding/agents.js +96 -0
  23. package/dist/onboarding/agents.js.map +1 -0
  24. package/dist/onboarding/checklist.d.ts +37 -0
  25. package/dist/onboarding/checklist.js +116 -0
  26. package/dist/onboarding/checklist.js.map +1 -0
  27. package/dist/onboarding/init.d.ts +47 -0
  28. package/dist/onboarding/init.js +197 -0
  29. package/dist/onboarding/init.js.map +1 -0
  30. package/dist/onboarding/prompt.d.ts +15 -0
  31. package/dist/onboarding/prompt.js +31 -0
  32. package/dist/onboarding/prompt.js.map +1 -0
  33. package/dist/onboarding/start.d.ts +39 -0
  34. package/dist/onboarding/start.js +97 -0
  35. package/dist/onboarding/start.js.map +1 -0
  36. package/docs/engagement-and-pacing.md +8 -6
  37. package/install.sh +448 -69
  38. package/package.json +1 -1
package/install.sh CHANGED
@@ -39,6 +39,13 @@ INSTALL_VERSION="${UNDERSTUDY_INSTALL_VERSION:-latest}"
39
39
  ADVANCED=0
40
40
  SETUP_CHOSEN=0
41
41
  SETUP_MENU_ANSWERED=0
42
+ # quiet (person at a terminal: one line per step, detail in the log) or
43
+ # verbose (everything; the default for --yes, --non-interactive and CI).
44
+ OUTPUT_MODE="${UNDERSTUDY_INSTALL_OUTPUT:-}"
45
+ QUIET_RUN=0
46
+ QUIET_DETAIL=0
47
+ # 1 when a person is at the terminal (no --yes, --non-interactive or CI).
48
+ HUMAN_RUN=0
42
49
  NO_CLAUDE=0
43
50
  START_STEP=1
44
51
  ONLY_STEP=""
@@ -64,6 +71,7 @@ while [ "$#" -gt 0 ]; do
64
71
  --local-models) LOCAL_MODELS=1; SETUP_CHOSEN=1 ;;
65
72
  --advanced) ADVANCED=1 ;;
66
73
  --from-source) INSTALL_FROM_SOURCE=1 ;;
74
+ --verbose) OUTPUT_MODE=verbose ;;
67
75
  --from-step) START_STEP="${2:?missing step number}"; shift ;;
68
76
  --only-step) ONLY_STEP="${2:?missing step number}"; shift ;;
69
77
  --resume) RESUME=1 ;;
@@ -95,6 +103,7 @@ Options:
95
103
  Orchestra 2B model download (about 3.6 GB) in the background
96
104
  --advanced choose which coding agents get the plugin
97
105
  --from-source build the CLI from the GitHub source instead of npm
106
+ --verbose print every step (the default outside an interactive terminal)
98
107
  --lower-my-ant-bill focus onboarding on lowering Anthropic/Claude API spend
99
108
  --lower-my-anthropic-bill
100
109
  alias for --lower-my-ant-bill
@@ -128,6 +137,7 @@ Environment overrides:
128
137
  UNDERSTUDY_INSTALL_PACKAGE optional npm package spec override
129
138
  UNDERSTUDY_INSTALL_VERSION npm version or dist-tag to install, default latest
130
139
  UNDERSTUDY_INSTALL_FROM_SOURCE set to 1 to build from the GitHub source instead of npm
140
+ UNDERSTUDY_INSTALL_OUTPUT quiet or verbose; default quiet in an interactive terminal
131
141
  UNDERSTUDY_INSTALL_FROM_CWD set to 1 to install agent adapters from a checkout in the current directory
132
142
  UNDERSTUDY_NONINTERACTIVE set to 1 to use safe defaults without prompting
133
143
  UNDERSTUDY_REQUIRE_CONFIRM set to 1 to fail when no prompt TTY exists
@@ -195,7 +205,10 @@ else
195
205
  fi
196
206
 
197
207
  log() { printf '%s %s\n' "$(date -u +"%Y-%m-%dT%H:%M:%SZ")" "$*" >>"$LOG_FILE"; }
208
+ # While QUIET_DETAIL is 1, say and ok only reach the install log; warnings and
209
+ # failures always print.
198
210
  say() {
211
+ if [ "${QUIET_DETAIL:-0}" = "1" ]; then log "$*"; return 0; fi
199
212
  if [ "$FANCY" = "1" ]; then
200
213
  printf ' %s│%s %s\n' "$D" "$R" "$*"
201
214
  else
@@ -218,6 +231,7 @@ redact_url() {
218
231
  printf '%s\n' "$*" | sed -E 's#(://)[^/@[:space:]]+@#\1<redacted>@#g'
219
232
  }
220
233
  ok() {
234
+ if [ "${QUIET_DETAIL:-0}" = "1" ]; then log "$*"; return 0; fi
221
235
  if [ "$FANCY" = "1" ]; then
222
236
  printf ' %s✓%s %s\n' "$OKC" "$R" "$*"
223
237
  else
@@ -259,6 +273,51 @@ section() {
259
273
  fi
260
274
  log "$*"
261
275
  }
276
+ # Step headers are structure for logs; a person sees one line per step.
277
+ step_section() {
278
+ if [ "${QUIET_RUN:-0}" = "1" ]; then log "$*"; return 0; fi
279
+ section "$@"
280
+ }
281
+ ok_unlogged() {
282
+ if [ "$FANCY" = "1" ]; then
283
+ printf ' %s✓%s %s\n' "$OKC" "$R" "$*"
284
+ else
285
+ printf '\033[1morchestra\033[0m %s\n' "$*"
286
+ fi
287
+ }
288
+ # Something the person should act on. In quiet runs it is collected and shown
289
+ # once, in a "Needs attention" block at the end, so problems never interleave
290
+ # with progress; otherwise it prints as a warning right away.
291
+ ATTENTION_TEXT=""
292
+ ATTENTION_COUNT=0
293
+ attention() {
294
+ local message="$1" fix="${2:-}"
295
+ log "ATTENTION $message${fix:+ | $fix}"
296
+ if [ -n "${STATE_DIR:-}" ]; then
297
+ private_mkdir "$STATE_DIR"
298
+ printf '%s\t%s\n' "$message" "$fix" >>"$STATE_DIR/attention.txt"
299
+ fi
300
+ if [ "${QUIET_RUN:-0}" = "1" ]; then
301
+ ATTENTION_COUNT=$((ATTENTION_COUNT + 1))
302
+ ATTENTION_TEXT="${ATTENTION_TEXT}${message}
303
+ ${fix}
304
+ "
305
+ return 0
306
+ fi
307
+ warn "$message"
308
+ [ -z "$fix" ] || say "$fix"
309
+ }
310
+ print_attention() {
311
+ local message fix
312
+ [ "$ATTENTION_COUNT" -gt 0 ] || return 0
313
+ section "Needs attention"
314
+ while IFS= read -r message && IFS= read -r fix; do
315
+ warn "$message"
316
+ [ -z "$fix" ] || say " $fix"
317
+ done <<ATTENTION
318
+ $ATTENTION_TEXT
319
+ ATTENTION
320
+ }
262
321
  banner() {
263
322
  if [ "$FANCY" != "1" ]; then
264
323
  return 0
@@ -382,6 +441,19 @@ validate_agent_platforms() {
382
441
  return 1
383
442
  fi
384
443
  }
444
+ # Like agent_platform_requested, but "all" does not count.
445
+ agent_platform_named() {
446
+ local wanted token
447
+ wanted="$(normalize_agent_platform "$1")"
448
+ set -f
449
+ # shellcheck disable=SC2046
450
+ set -- $(printf '%s\n' "$AGENT_PLATFORMS" | tr ',;' ' ')
451
+ set +f
452
+ for token in "$@"; do
453
+ [ "$(normalize_agent_platform "$token")" = "$wanted" ] && return 0
454
+ done
455
+ return 1
456
+ }
385
457
  agent_platform_requested() {
386
458
  local wanted token normalized
387
459
  wanted="$(normalize_agent_platform "$1")"
@@ -536,10 +608,10 @@ select_agent_platforms() {
536
608
  say " ${G2}1.${R} $(detected_agent_label "claude-code" "Claude Code")"
537
609
  say " ${G3}2.${R} $(detected_agent_label "cursor" "Cursor")"
538
610
  say " ${G4}3.${R} $(detected_agent_label "codex" "Codex")"
539
- say " ${G5}4.${R} $(detected_agent_label "opencode" "OpenCode")"
540
- say " ${G6}5.${R} $(detected_agent_label "hermes" "Hermes Agent")"
611
+ say " ${G5}4.${R} $(detected_agent_label "opencode" "OpenCode") ${D}(deprecated)${R}"
612
+ say " ${G6}5.${R} $(detected_agent_label "hermes" "Hermes Agent") ${D}(deprecated)${R}"
541
613
  say " ${G6}6.${R} $(detected_agent_label "devin" "Devin")"
542
- say " ${G6}7.${R} All detected coding agents"
614
+ say " ${G6}7.${R} All detected coding agents ${D}(except deprecated ones)${R}"
543
615
  say " ${G6}8.${R} CLI only, no coding-agent plugins"
544
616
  say "Press Enter for: all detected coding agents."
545
617
 
@@ -587,19 +659,19 @@ should_install_codex_adapter() {
587
659
  esac
588
660
  agent_platform_requested "codex"
589
661
  }
662
+ # OpenCode and Hermes are deprecated: neither auto nor all installs them, but
663
+ # naming one in --agents still does.
590
664
  should_install_opencode_adapter() {
591
665
  case "$(normalize_agent_platform "$AGENT_PLATFORMS")" in
592
- none) return 1 ;;
593
- auto) detect_opencode; return ;;
666
+ none|auto) return 1 ;;
594
667
  esac
595
- agent_platform_requested "opencode"
668
+ agent_platform_named "opencode"
596
669
  }
597
670
  should_install_hermes_adapter() {
598
671
  case "$(normalize_agent_platform "$AGENT_PLATFORMS")" in
599
- none) return 1 ;;
600
- auto) detect_hermes; return ;;
672
+ none|auto) return 1 ;;
601
673
  esac
602
- agent_platform_requested "hermes"
674
+ agent_platform_named "hermes"
603
675
  }
604
676
  should_install_devin_adapter() {
605
677
  case "$(normalize_agent_platform "$AGENT_PLATFORMS")" in
@@ -687,10 +759,73 @@ manual_adapter_instructions() {
687
759
  say " Devin: cloud-based, no local install — ask Devin to use the Orchestra onboarding skill for this project"
688
760
  say "Or rerun this installer with an explicit adapter, e.g.: --agents claude-code"
689
761
  }
762
+ agent_display_name() {
763
+ case "$1" in
764
+ claude-code) printf 'Claude Code' ;;
765
+ cursor) printf 'Cursor' ;;
766
+ codex) printf 'Codex' ;;
767
+ opencode) printf 'OpenCode' ;;
768
+ hermes) printf 'Hermes' ;;
769
+ devin) printf 'Devin' ;;
770
+ *) printf '%s' "$1" ;;
771
+ esac
772
+ }
773
+
774
+ # One line for a person: which agents got the plugin. Failures go to Needs
775
+ # attention; agents that simply aren't on this machine only reach the log.
776
+ summarize_agent_adapters_quiet() {
777
+ local name status reason names="" installed=0 unmet=0 selection
778
+ selection="$(normalize_agent_platform "$AGENT_PLATFORMS")"
779
+ while IFS='|' read -r name status reason; do
780
+ [ -n "$name" ] || continue
781
+ log "adapter $name: $status — $reason"
782
+ case "$status" in
783
+ installed)
784
+ installed=$((installed + 1))
785
+ names="${names:+$names, }$(agent_display_name "$name")"
786
+ ;;
787
+ failed)
788
+ unmet=$((unmet + 1))
789
+ attention "The $(agent_display_name "$name") plugin did not install: $reason." "Details are in $LOG_FILE."
790
+ ;;
791
+ disabled) ;;
792
+ *)
793
+ case "$selection" in
794
+ auto|all) [ "$reason" = "not selected or not detected" ] || unmet=$((unmet + 1)) ;;
795
+ *)
796
+ if adapter_explicitly_requested "$name"; then
797
+ unmet=$((unmet + 1))
798
+ attention "The $(agent_display_name "$name") plugin was skipped: $reason."
799
+ fi
800
+ ;;
801
+ esac
802
+ ;;
803
+ esac
804
+ done <<ADAPTERS
805
+ $ADAPTER_RESULTS
806
+ ADAPTERS
807
+ ADAPTERS_INSTALLED_COUNT="$installed"
808
+ ADAPTERS_UNMET_COUNT="$unmet"
809
+ if [ "$installed" -gt 0 ]; then
810
+ ok "Plugin installed: $names"
811
+ elif [ "$selection" != "none" ]; then
812
+ fail_line "No coding-agent plugin was installed; the Orchestra skills are not available in any coding agent yet."
813
+ manual_adapter_instructions
814
+ fi
815
+ }
816
+
690
817
  summarize_agent_adapters() {
691
818
  local name status reason installed=0 unmet=0 selection
692
819
  selection="$(normalize_agent_platform "$AGENT_PLATFORMS")"
693
820
  ADAPTERS_ATTEMPTED=1
821
+ # Machine-readable copy for `orchestra init`, which runs this step for a person.
822
+ private_mkdir "$STATE_DIR"
823
+ printf '%s' "$ADAPTER_RESULTS" >"$STATE_DIR/adapter-results.txt"
824
+ QUIET_DETAIL=0
825
+ if [ "$QUIET_RUN" = "1" ]; then
826
+ summarize_agent_adapters_quiet
827
+ return 0
828
+ fi
694
829
  say ""
695
830
  say "${B}Adapter summary${R}"
696
831
  while IFS='|' read -r name status reason; do
@@ -700,7 +835,12 @@ summarize_agent_adapters() {
700
835
  failed) fail_line "$name: failed — $reason"; unmet=$((unmet + 1)) ;;
701
836
  disabled) say "$name: skipped — $reason" ;;
702
837
  *)
703
- say "$name: skipped — $reason"
838
+ # Agents that simply aren't on this machine are noise for a person.
839
+ if [ "$QUIET_RUN" = "1" ] && [ "$reason" = "not selected or not detected" ]; then
840
+ log "$name: skipped — $reason"
841
+ else
842
+ say "$name: skipped — $reason"
843
+ fi
704
844
  # A skip counts as an unmet adapter when it was a real candidate:
705
845
  # any candidate under auto/all, or an explicitly requested adapter.
706
846
  # Skips of adapters the user never asked for don't count, and
@@ -858,6 +998,22 @@ install_from_npm_registry() {
858
998
  log "npm $PACKAGE_NAME@$version is deprecated: $deprecated"
859
999
  return 1
860
1000
  fi
1001
+ # npm can point latest at a pre-release stand-in (0.0.0-stage while a
1002
+ # staged publish awaits approval) that ships no CLI. Only a release that
1003
+ # declares the orchestra command may replace a working install; a
1004
+ # pre-release is used only when UNDERSTUDY_INSTALL_VERSION names it.
1005
+ case "$version" in
1006
+ *-*)
1007
+ if [ "$INSTALL_VERSION" != "$version" ]; then
1008
+ log "npm $PACKAGE_NAME@$INSTALL_VERSION resolves to pre-release $version"
1009
+ return 1
1010
+ fi
1011
+ ;;
1012
+ esac
1013
+ if ! npm view "$PACKAGE_NAME@$version" bin --json 2>>"$LOG_FILE" | grep -q '"orchestra"'; then
1014
+ log "npm $PACKAGE_NAME@$version does not declare the orchestra command"
1015
+ return 1
1016
+ fi
861
1017
  say "Installing $PACKAGE_NAME@$version from npm."
862
1018
  remove_previous_global_package
863
1019
  if ! run_logged "Install the orchestra command" npm install -g --ignore-scripts "$PACKAGE_NAME@$version"; then
@@ -1000,6 +1156,10 @@ prepare_agent_first_signin() {
1000
1156
  existing_email="$(credentials_email)"
1001
1157
  remember_known_email "$existing_email" "existing Orchestra credentials"
1002
1158
  if [ "$KEEP_LOGIN" = "1" ]; then
1159
+ if [ "$QUIET_RUN" = "1" ]; then
1160
+ if [ -n "$KNOWN_EMAIL" ]; then ok_unlogged "Signed in as $KNOWN_EMAIL"; else ok "Signed in to Orchestra"; fi
1161
+ return 0
1162
+ fi
1003
1163
  section "Orchestra account"
1004
1164
  if [ -n "$KNOWN_EMAIL" ]; then
1005
1165
  say_unlogged "Already signed in as $KNOWN_EMAIL; keeping that sign-in."
@@ -1040,10 +1200,29 @@ prepare_agent_first_signin() {
1040
1200
  fi
1041
1201
  }
1042
1202
 
1203
+ # The terminal device to hand to interactive programs. `/dev/tty` is only an
1204
+ # alias for it, and macOS kqueue cannot watch that alias (EINVAL), so a Bun
1205
+ # program such as Claude Code given `</dev/tty >/dev/tty` crashes on start.
1206
+ # Use the real device (/dev/ttys003, /dev/pts/1) and fall back to the alias.
1207
+ terminal_device() {
1208
+ local name
1209
+ name="$(ps -o tty= -p $$ 2>/dev/null | tr -d '[:space:]')"
1210
+ case "$name" in
1211
+ ""|"?"|"??") ;;
1212
+ *)
1213
+ if [ -c "/dev/$name" ] && [ -r "/dev/$name" ] && [ -w "/dev/$name" ]; then
1214
+ printf '/dev/%s\n' "$name"
1215
+ return 0
1216
+ fi
1217
+ ;;
1218
+ esac
1219
+ printf '/dev/tty\n'
1220
+ }
1221
+
1043
1222
  # Without a terminal (CI, --yes, agent shells) there is nobody to type the
1044
1223
  # code, so the sign-in is left for `orchestra login` later.
1045
1224
  sign_in_in_terminal() {
1046
- local answer email
1225
+ local answer email terminal
1047
1226
  [ -z "$ONLY_STEP" ] || return 0
1048
1227
  [ -f "$CREDENTIALS_FILE" ] && return 0
1049
1228
  if [ "$SKIP_LOGIN" = "1" ]; then
@@ -1075,7 +1254,8 @@ sign_in_in_terminal() {
1075
1254
  return 0
1076
1255
  fi
1077
1256
  log "RUN orchestra login --email <redacted>"
1078
- if orchestra login --email "$email" </dev/tty >/dev/tty 2>&1; then
1257
+ terminal="$(terminal_device)"
1258
+ if orchestra login --email "$email" <"$terminal" >"$terminal" 2>&1; then
1079
1259
  ok "Signed in to Orchestra."
1080
1260
  else
1081
1261
  warn "The sign-in did not finish; the install continues. Run \`orchestra login\` to try again."
@@ -1115,7 +1295,7 @@ start_local_model_lab() {
1115
1295
  warn "The orchestra command is not on PATH; skipping the local model lab."
1116
1296
  return 0
1117
1297
  fi
1118
- section "Local model lab"
1298
+ step_section "Local model lab"
1119
1299
  private_mkdir "$LOG_DIR"
1120
1300
  private_mkdir "$STATE_DIR"
1121
1301
  runtime_log="$LOG_DIR/mlx-runtime-$(date -u +"%Y%m%dT%H%M%SZ").log"
@@ -1140,6 +1320,99 @@ start_local_model_lab() {
1140
1320
  LOCAL_MODEL_LAB_STARTED=1
1141
1321
  }
1142
1322
 
1323
+ # GUI coding agents (Cursor, Codex, the Claude desktop app, ...) cannot be
1324
+ # launched with a first message, so give the user the same one-line prompt
1325
+ # Claude Code would get, ready to paste.
1326
+ CLAUDE_LAUNCHED=0
1327
+ AGENT_LAUNCHED=0
1328
+
1329
+ show_paste_prompt() {
1330
+ [ "$ADAPTERS_ATTEMPTED" != "1" ] || [ "$ADAPTERS_INSTALLED_COUNT" -gt 0 ] || return 0
1331
+ section "Paste into your coding agent"
1332
+ say "In a coding agent app (Cursor, Codex, Claude desktop, OpenCode, ...), open this project in a new chat and paste:"
1333
+ say_unlogged " ${B}$INITIAL_CLAUDE_PROMPT${R}"
1334
+ }
1335
+
1336
+ # Only when Claude Code is not opened here and a person is at the terminal:
1337
+ # the prompt is the next thing they need.
1338
+ copy_paste_prompt_to_clipboard() {
1339
+ [ "$ADAPTERS_ATTEMPTED" != "1" ] || [ "$ADAPTERS_INSTALLED_COUNT" -gt 0 ] || return 0
1340
+ [ "$YES" = "0" ] || return 0
1341
+ noninteractive_enabled && return 0
1342
+ { : </dev/tty >/dev/tty; } 2>/dev/null || return 0
1343
+ need pbcopy || return 0
1344
+ if printf '%s' "$INITIAL_CLAUDE_PROMPT" | pbcopy 2>/dev/null; then
1345
+ ok "Copied the prompt to your clipboard."
1346
+ fi
1347
+ }
1348
+
1349
+ # The ending for a person at a terminal: what to paste into any coding agent
1350
+ # (copied to the clipboard), the one thing each installed agent needs first,
1351
+ # and an offer to start a terminal agent here with that prompt.
1352
+ start_onboarding() {
1353
+ local copied="" first="" choices="" n=0 answer pick="" terminal
1354
+ [ "$ADAPTERS_INSTALLED_COUNT" -gt 0 ] || return 0
1355
+ if need pbcopy && printf '%s' "$INITIAL_CLAUDE_PROMPT" | pbcopy 2>/dev/null; then
1356
+ copied=" (copied to your clipboard)"
1357
+ fi
1358
+ section "Start onboarding"
1359
+ say "Paste into your coding agent$copied:"
1360
+ say_unlogged " ${B}$INITIAL_CLAUDE_PROMPT${R}"
1361
+ adapter_installed "claude-code" && first="${first:+$first · }Claude Code already open → /reload-plugins"
1362
+ adapter_installed "cursor" && first="${first:+$first · }Cursor → Developer: Reload Window"
1363
+ adapter_installed "codex" && first="${first:+$first · }Codex → enable orchestra in /plugins"
1364
+ adapter_installed "opencode" && first="${first:+$first · }OpenCode → new session"
1365
+ adapter_installed "hermes" && first="${first:+$first · }Hermes → /reload-skills"
1366
+ [ -z "$first" ] || say "${D}First: $first${R}"
1367
+
1368
+ if ! should_run_step 3 || [ "$LAUNCH_CLAUDE" != "1" ]; then
1369
+ mark_step_done 3
1370
+ return 0
1371
+ fi
1372
+ if adapter_installed "claude-code" && [ "$NO_CLAUDE" = "0" ] && need claude; then
1373
+ n=$((n + 1)); choices="${choices}${n}:claude "
1374
+ fi
1375
+ if adapter_installed "codex" && need codex; then
1376
+ n=$((n + 1)); choices="${choices}${n}:codex "
1377
+ fi
1378
+ if [ "$n" -eq 0 ]; then
1379
+ mark_step_done 3
1380
+ return 0
1381
+ fi
1382
+ local line="Or start one here:" item
1383
+ for item in $choices; do
1384
+ line="$line ${item%%:*}. $(agent_display_name "$( [ "${item#*:}" = claude ] && echo claude-code || echo "${item#*:}")")"
1385
+ done
1386
+ say "$line"
1387
+ printf " %s?%s Start %s[1, or n to finish]%s " "$G4" "$R" "$D" "$R" >/dev/tty 2>/dev/null || { mark_step_done 3; return 0; }
1388
+ read -r answer </dev/tty 2>/dev/null || answer="n"
1389
+ case "$answer" in
1390
+ n|N|no|NO) mark_step_done 3; return 0 ;;
1391
+ "") answer=1 ;;
1392
+ esac
1393
+ for item in $choices; do
1394
+ [ "${item%%:*}" = "$answer" ] && pick="${item#*:}"
1395
+ done
1396
+ case "$pick" in
1397
+ claude)
1398
+ LAUNCH_CONFIRMED=1
1399
+ launch_claude_code
1400
+ ;;
1401
+ codex)
1402
+ say "Opening Codex here. If it can't find the Orchestra skill yet, enable orchestra in /plugins and send the prompt again."
1403
+ log "LAUNCH codex <initial-prompt>"
1404
+ AGENT_LAUNCHED=1
1405
+ terminal="$(terminal_device)"
1406
+ codex "$INITIAL_CLAUDE_PROMPT" <"$terminal" >"$terminal" 2>&1 || say "Codex exited with status $?."
1407
+ mark_step_done 3
1408
+ ;;
1409
+ *)
1410
+ say "No agent started. Paste the prompt into your coding agent when you're ready."
1411
+ mark_step_done 3
1412
+ ;;
1413
+ esac
1414
+ }
1415
+
1143
1416
  compose_initial_prompt() {
1144
1417
  if [ -n "$USER_PROMPT_OVERRIDE" ]; then
1145
1418
  INITIAL_CLAUDE_PROMPT="$USER_PROMPT_OVERRIDE"
@@ -1433,6 +1706,12 @@ link_opencode_path() {
1433
1706
  if [ "$current" = "$src" ]; then
1434
1707
  return 0
1435
1708
  fi
1709
+ # A link to something that no longer exists holds nothing to protect.
1710
+ if [ ! -e "$dest" ]; then
1711
+ rm -f "$dest"
1712
+ ln -s "$src" "$dest"
1713
+ return 0
1714
+ fi
1436
1715
  case "$current" in
1437
1716
  */@orchestraai/agent-tools/skills/*|*/@orchestraai/agent-tools/.opencode/commands/*|*orchestra-agent-tools/skills/*|*orchestra-agent-tools/.opencode/commands/*|*understudy-agent-tools/skills/*|*understudy-agent-tools/.opencode/commands/*)
1438
1717
  rm -f "$dest"
@@ -1440,11 +1719,11 @@ link_opencode_path() {
1440
1719
  return 0
1441
1720
  ;;
1442
1721
  esac
1443
- warn "OpenCode $kind already exists at $dest; leaving it unchanged."
1722
+ [ "$kind" = "skill" ] || warn "OpenCode $kind already exists at $dest; leaving it unchanged."
1444
1723
  return 1
1445
1724
  fi
1446
1725
  if [ -e "$dest" ]; then
1447
- warn "OpenCode $kind already exists at $dest; leaving it unchanged."
1726
+ [ "$kind" = "skill" ] || warn "OpenCode $kind already exists at $dest; leaving it unchanged."
1448
1727
  return 1
1449
1728
  fi
1450
1729
  ln -s "$src" "$dest"
@@ -1457,7 +1736,7 @@ install_opencode_adapter() {
1457
1736
  return 0
1458
1737
  fi
1459
1738
 
1460
- local repo skill_root command_root skill skill_name linked skipped command_src command_dest
1739
+ local repo skill_root command_root skill skill_name linked skipped skipped_names command_src command_dest conflicts_file
1461
1740
  if ! repo="$(resolve_skill_repo)"; then
1462
1741
  say "Could not find skills/understudy/SKILL.md; skipping OpenCode skill install."
1463
1742
  adapter_prereq_missing "opencode" "skills/understudy/SKILL.md was not found"
@@ -1469,7 +1748,9 @@ install_opencode_adapter() {
1469
1748
  mkdir -p "$skill_root" "$command_root"
1470
1749
  linked=0
1471
1750
  skipped=0
1751
+ skipped_names=""
1472
1752
 
1753
+ attention "OpenCode support is deprecated and will be removed in a future release; Claude Code, Codex and Cursor are the supported coding agents."
1473
1754
  say "Installing the Orchestra OpenCode skills from $repo."
1474
1755
  for skill in "$repo"/skills/*; do
1475
1756
  [ -f "$skill/SKILL.md" ] || continue
@@ -1478,6 +1759,8 @@ install_opencode_adapter() {
1478
1759
  linked=$((linked + 1))
1479
1760
  else
1480
1761
  skipped=$((skipped + 1))
1762
+ skipped_names="${skipped_names}${skill_name}
1763
+ "
1481
1764
  fi
1482
1765
  done
1483
1766
 
@@ -1494,6 +1777,18 @@ install_opencode_adapter() {
1494
1777
  fi
1495
1778
 
1496
1779
  ok "Orchestra OpenCode skills linked: $linked; skipped existing conflicts: $skipped."
1780
+ if [ "$skipped" -gt 0 ]; then
1781
+ # Folders or foreign links the installer did not create are never touched;
1782
+ # one summary instead of a warning per skill, with the names in a file.
1783
+ private_mkdir "$STATE_DIR"
1784
+ conflicts_file="$STATE_DIR/opencode-skill-conflicts.txt"
1785
+ printf '%s' "$skipped_names" >"$conflicts_file"
1786
+ local quiet_before="$QUIET_DETAIL"
1787
+ QUIET_DETAIL=0
1788
+ attention "$skipped OpenCode skills already exist in $skill_root as folders or links this installer did not create, so OpenCode keeps using those copies (names in $conflicts_file). To switch them to the current skills, move them aside and rerun with --agents opencode:" \
1789
+ "mkdir -p \"$skill_root.bak\" && while read -r s; do mv \"$skill_root/\$s\" \"$skill_root.bak/\"; done < \"$conflicts_file\""
1790
+ QUIET_DETAIL="$quiet_before"
1791
+ fi
1497
1792
  if [ "$linked" -gt 0 ]; then
1498
1793
  record_adapter "opencode" "installed" "linked $linked skills"
1499
1794
  else
@@ -1544,6 +1839,12 @@ hermes_register_dir() {
1544
1839
  if [ "$current" = "$skills_dir" ]; then
1545
1840
  printf '%s\n' "$stable_link"; return 0
1546
1841
  fi
1842
+ # A link to a folder that no longer exists holds nothing to protect.
1843
+ if [ ! -e "$stable_link" ]; then
1844
+ rm -f "$stable_link"
1845
+ ln -s "$skills_dir" "$stable_link"
1846
+ printf '%s\n' "$stable_link"; return 0
1847
+ fi
1547
1848
  case "$current" in
1548
1849
  */@orchestraai/agent-tools/skills|*orchestra-agent-tools/skills|*understudy-agent-tools/skills)
1549
1850
  rm -f "$stable_link"
@@ -1580,6 +1881,7 @@ install_hermes_adapter() {
1580
1881
  register_dir="$(hermes_register_dir "$skills_dir")"
1581
1882
  config="$(hermes_config_path)"
1582
1883
 
1884
+ attention "Hermes support is deprecated and will be removed in a future release; Claude Code, Codex and Cursor are the supported coding agents."
1583
1885
  say "Registering the Orchestra skills with Hermes via $register_dir."
1584
1886
 
1585
1887
  if [ ! -f "$config" ]; then
@@ -1728,13 +2030,14 @@ launch_claude_code() {
1728
2030
  return 0
1729
2031
  fi
1730
2032
 
1731
- section "Step 3/3 · Open Claude Code"
1732
- if ! { [ "$YES" = "1" ] || noninteractive_enabled; } && ! confirm_default_yes "Open Claude Code in $(pwd) now?"; then
2033
+ [ "${LAUNCH_CONFIRMED:-0}" = "1" ] || section "Step 3/3 · Open Claude Code"
2034
+ if [ "${LAUNCH_CONFIRMED:-0}" != "1" ] && ! { [ "$YES" = "1" ] || noninteractive_enabled; } && ! confirm_default_yes "Open Claude Code in $(pwd) now?"; then
1733
2035
  say "Open Claude Code here whenever you're ready, then run /orchestra:onboard."
1734
2036
  mark_step_done 3
1735
2037
  return 0
1736
2038
  fi
1737
- local permission_args=()
2039
+ local permission_args=() terminal
2040
+ terminal="$(terminal_device)"
1738
2041
  if [ -n "$CLAUDE_PERMISSION_MODE" ]; then
1739
2042
  permission_args=(--permission-mode "$CLAUDE_PERMISSION_MODE")
1740
2043
  say "Claude Code permission mode: $CLAUDE_PERMISSION_MODE (UNDERSTUDY_CLAUDE_PERMISSION_MODE)."
@@ -1745,7 +2048,9 @@ launch_claude_code() {
1745
2048
  # curl | bash leaves stdin on the pipe, so Claude Code gets the terminal
1746
2049
  # directly. No session transcript is recorded.
1747
2050
  # shellcheck disable=SC2086
1748
- claude ${permission_args[@]+"${permission_args[@]}"} --plugin-dir "$PKG_DIR" ${UNDERSTUDY_CLAUDE_ARGS:-} "$INITIAL_CLAUDE_PROMPT" </dev/tty >/dev/tty 2>&1 || {
2051
+ CLAUDE_LAUNCHED=1
2052
+ AGENT_LAUNCHED=1
2053
+ claude ${permission_args[@]+"${permission_args[@]}"} --plugin-dir "$PKG_DIR" ${UNDERSTUDY_CLAUDE_ARGS:-} "$INITIAL_CLAUDE_PROMPT" <"$terminal" >"$terminal" 2>&1 || {
1749
2054
  local status="$?"
1750
2055
  say "Claude Code exited with status $status."
1751
2056
  return "$status"
@@ -1843,6 +2148,51 @@ need npm || {
1843
2148
  validate_agent_platforms || exit 2
1844
2149
  configure_resume
1845
2150
 
2151
+ if [ "$YES" = "0" ] && ! noninteractive_enabled && { : </dev/tty >/dev/tty; } 2>/dev/null; then
2152
+ HUMAN_RUN=1
2153
+ fi
2154
+ case "$OUTPUT_MODE" in
2155
+ quiet) QUIET_RUN=1 ;;
2156
+ verbose) ;;
2157
+ *) [ "$FANCY" = "1" ] && [ "$HUMAN_RUN" = "1" ] && QUIET_RUN=1 ;;
2158
+ esac
2159
+
2160
+ # A person at a terminal gets the guided setup from the CLI itself
2161
+ # (`orchestra init`: menus, a checklist, sign-in, and the start screen). The
2162
+ # installer only installs the CLI first. Scripts, CI, --yes and partial runs
2163
+ # keep the installer's own steps below.
2164
+ if [ "$HUMAN_RUN" = "1" ] && [ -z "$ONLY_STEP" ] && [ "$START_STEP" = "1" ] && [ "$RESUME" = "0" ] && [ "${UNDERSTUDY_INSTALL_GUIDED:-1}" = "1" ]; then
2165
+ banner
2166
+ printf '\n'
2167
+ QUIET_DETAIL=1
2168
+ install_understudy_package
2169
+ QUIET_DETAIL=0
2170
+ PKG_DIR="$(npm root -g)/$PACKAGE_NAME"
2171
+ if need orchestra; then
2172
+ UNDERSTUDY_HOME_MIGRATION=1 orchestra --version >/dev/null 2>>"$LOG_FILE" || true
2173
+ fi
2174
+ mark_step_done 1
2175
+ [ "$KEEP_LOGIN" = "1" ] || prepare_agent_first_signin
2176
+ ORCHESTRA_BIN="$(command -v orchestra || printf '%s/bin/orchestra' "$(npm prefix -g)")"
2177
+ # `init --help` is no test: commander answers it with the top-level help and
2178
+ # exit 0 on CLIs that have no init command. Look for init in the command list.
2179
+ if "$ORCHESTRA_BIN" --help 2>/dev/null | grep -qE '^[[:space:]]+init([[:space:]]|$)'; then
2180
+ INIT_ARGS=()
2181
+ [ "$LOCAL_MODELS" = "1" ] && INIT_ARGS+=(--local-models)
2182
+ [ "$SKIP_LOGIN" = "1" ] && INIT_ARGS+=(--skip-login)
2183
+ [ "$ADVANCED" = "1" ] && INIT_ARGS+=(--advanced)
2184
+ [ "$AGENT_PLATFORMS_EXPLICIT" = "1" ] && INIT_ARGS+=(--agents "$AGENT_PLATFORMS")
2185
+ lower_my_ant_bill_enabled && INIT_ARGS+=(--lower-anthropic-bill)
2186
+ [ "$LAUNCH_CLAUDE" = "1" ] || INIT_ARGS+=(--no-start)
2187
+ log "EXEC orchestra init ${INIT_ARGS[*]:-}"
2188
+ export UNDERSTUDY_LAB="$LAB" ORCHESTRA_INIT_FROM_INSTALLER=1
2189
+ terminal="$(terminal_device)"
2190
+ exec "$ORCHESTRA_BIN" init ${INIT_ARGS[@]+"${INIT_ARGS[@]}"} <"$terminal" >"$terminal" 2>&1
2191
+ fi
2192
+ warn "This CLI has no guided setup; continuing with the installer's own steps."
2193
+ START_STEP=2
2194
+ fi
2195
+
1846
2196
  banner
1847
2197
  if [ "$FANCY" = "1" ]; then
1848
2198
  section "Welcome"
@@ -1850,6 +2200,7 @@ else
1850
2200
  section "Welcome. We are going to install Orchestra for your coding agent."
1851
2201
  fi
1852
2202
  say "This installer sets up the Orchestra CLI, your Orchestra account, and the plugin for your coding agents."
2203
+ QUIET_DETAIL="$QUIET_RUN"
1853
2204
  if [ -n "$INSTALL_PACKAGE" ]; then
1854
2205
  warn "Source: npm package $(redact_url "$INSTALL_PACKAGE") (UNDERSTUDY_INSTALL_PACKAGE override) ${D}(installer commit: $INSTALLER_COMMIT)${R}"
1855
2206
  elif [ "$INSTALL_SOURCE_OVERRIDDEN" = "1" ]; then
@@ -1858,9 +2209,14 @@ else
1858
2209
  say "Source: $INSTALL_REPO_URL#$INSTALL_REF ${D}(installer commit: $INSTALLER_COMMIT)${R}"
1859
2210
  fi
1860
2211
  say "Install log: $LOG_FILE"
1861
- say ""
2212
+ QUIET_DETAIL=0
1862
2213
  choose_setup
1863
2214
  select_agent_platforms
2215
+ # After a menu choice the plan is already on screen in the person's own
2216
+ # words; keep the restatement for the log.
2217
+ if [ "$QUIET_RUN" = "1" ] && [ "$SETUP_MENU_ANSWERED" = "1" ]; then
2218
+ QUIET_DETAIL=1
2219
+ fi
1864
2220
  report_agent_selection
1865
2221
  say "${B}Install plan${R}"
1866
2222
  say " ${G2}1.${R} Install the Orchestra CLI."
@@ -1880,10 +2236,11 @@ if lower_my_ant_bill_enabled; then
1880
2236
  say " ${G6}·${R} Focus onboarding on the lower Anthropic bill audit path."
1881
2237
  fi
1882
2238
  say ""
2239
+ say "This installer writes only under $LAB, $HOME/.understudy, the global npm prefix, and selected coding-agent plugin state."
2240
+ QUIET_DETAIL=0
1883
2241
  if [ "$LOCAL_MODELS" != "1" ]; then
1884
2242
  say "No model weights are downloaded and no frontier calls are made. Add the local model lab any time with --local-models."
1885
2243
  fi
1886
- say "This installer writes only under $LAB, $HOME/.understudy, the global npm prefix, and selected coding-agent plugin state."
1887
2244
  if [ -n "${UNDERSTUDY_INSTALL_SOURCE_DIR:-}" ]; then
1888
2245
  say "Scratch checkout (UNDERSTUDY_INSTALL_SOURCE_DIR): $INSTALL_SOURCE_DIR is deleted before and after the install."
1889
2246
  fi
@@ -1896,8 +2253,13 @@ fi
1896
2253
  PKG_DIR="$(npm root -g)/$PACKAGE_NAME"
1897
2254
 
1898
2255
  if should_run_step 1; then
1899
- section "Step 1/3 · Install the CLI"
2256
+ step_section "Step 1/3 · Install the CLI"
2257
+ QUIET_DETAIL="$QUIET_RUN"
1900
2258
  install_understudy_package
2259
+ QUIET_DETAIL=0
2260
+ if [ "$QUIET_RUN" = "1" ] && need orchestra; then
2261
+ ok "Orchestra CLI $(orchestra --version 2>/dev/null || true)"
2262
+ fi
1901
2263
  PKG_DIR="$(npm root -g)/$PACKAGE_NAME"
1902
2264
  # Move ~/.understudy to ~/.orchestra (leaving a symlink) now, before the
1903
2265
  # coding agent starts; every path this installer writes later goes through
@@ -1914,8 +2276,10 @@ prepare_agent_first_signin
1914
2276
  sign_in_in_terminal
1915
2277
 
1916
2278
  if should_run_step 2; then
1917
- section "Step 2/3 · Install agent adapters"
2279
+ step_section "Step 2/3 · Install agent adapters"
2280
+ QUIET_DETAIL="$QUIET_RUN"
1918
2281
  install_agent_adapters
2282
+ QUIET_DETAIL=0
1919
2283
  # An incomplete adapter install must not be marked resumable-complete, or a
1920
2284
  # later --resume would start at step 3 and exit 0 with no plugin installed.
1921
2285
  if [ "$(adapter_exit_code)" = "0" ]; then
@@ -1930,60 +2294,75 @@ fi
1930
2294
  start_local_model_lab
1931
2295
  compose_initial_prompt
1932
2296
 
1933
- section "Where this goes next"
1934
- # Only promise per-agent next steps for adapters that actually installed;
1935
- # when the adapter step ran and installed nothing, hand out recovery
1936
- # instructions instead of claiming the skills are ready.
1937
- if [ "$ADAPTERS_ATTEMPTED" != "1" ]; then
1938
- say "The installer is done. The next experience belongs inside your coding agent:"
1939
- say " Claude Code: run /reload-plugins and then /orchestra:onboard."
1940
- say " Cursor: restart Cursor or run Developer: Reload Window, then ask Cursor Agent to use the Orchestra onboarding skill."
1941
- say " Codex: run /plugins, install or enable orchestra, then ask Codex to use the Orchestra onboarding skill."
1942
- say " OpenCode: restart the TUI or open a new session, then run /orchestra-onboard."
1943
- say " Hermes: run /reload-skills in an open session (or start a new hermes session), then run /onboard or ask Hermes to use the Orchestra onboarding skill."
1944
- say " Devin: ask Devin to use the Orchestra onboarding skill for this project. For persistent installs, run this installer with --yes --agents devin --no-launch-agent in the Devin environment blueprint."
1945
- elif [ "$ADAPTERS_INSTALLED_COUNT" -eq 0 ]; then
1946
- if [ "$(normalize_agent_platform "$AGENT_PLATFORMS")" = "none" ]; then
1947
- say "The installer is done. No coding-agent plugins were requested, so only the orchestra CLI was installed."
1948
- say "Rerun this installer with --agents claude-code (or another adapter) when you want the skills inside a coding agent."
1949
- elif [ "${ADAPTERS_UNMET_COUNT:-0}" -eq 0 ]; then
1950
- say "The installer is done. Every selected coding-agent adapter was disabled by a flag (e.g. --no-claude), so only the orchestra CLI was installed."
1951
- say "Rerun this installer without the disable flag (or with --agents <adapter>) when you want the skills inside a coding agent."
1952
- else
1953
- fail_line "The installer finished, but no coding-agent plugin was installed — the Orchestra skills are NOT ready in any coding agent."
1954
- say "Use the manual install commands above (or rerun this installer with --agents <adapter>), then run the platform's reload step before onboarding."
1955
- fi
2297
+ print_attention
2298
+ # A person at the terminal gets one ending: what to paste, what each agent
2299
+ # needs first, and an offer to start a terminal agent. Scripts and CI keep
2300
+ # the full per-agent instructions.
2301
+ if [ "$HUMAN_RUN" = "1" ] && [ "$ADAPTERS_ATTEMPTED" = "1" ] && [ "$ADAPTERS_INSTALLED_COUNT" -gt 0 ]; then
2302
+ start_onboarding
1956
2303
  else
1957
- say "The installer is done. The next experience belongs inside your coding agent:"
1958
- if adapter_installed "claude-code"; then
2304
+ section "Where this goes next"
2305
+ # Only promise per-agent next steps for adapters that actually installed;
2306
+ # when the adapter step ran and installed nothing, hand out recovery
2307
+ # instructions instead of claiming the skills are ready.
2308
+ if [ "$ADAPTERS_ATTEMPTED" != "1" ]; then
2309
+ say "The installer is done. The next experience belongs inside your coding agent:"
1959
2310
  say " Claude Code: run /reload-plugins and then /orchestra:onboard."
1960
- fi
1961
- if adapter_installed "cursor"; then
1962
2311
  say " Cursor: restart Cursor or run Developer: Reload Window, then ask Cursor Agent to use the Orchestra onboarding skill."
1963
- fi
1964
- if adapter_installed "codex"; then
1965
2312
  say " Codex: run /plugins, install or enable orchestra, then ask Codex to use the Orchestra onboarding skill."
1966
- fi
1967
- if adapter_installed "opencode"; then
1968
2313
  say " OpenCode: restart the TUI or open a new session, then run /orchestra-onboard."
1969
- fi
1970
- if adapter_installed "hermes"; then
1971
2314
  say " Hermes: run /reload-skills in an open session (or start a new hermes session), then run /onboard or ask Hermes to use the Orchestra onboarding skill."
1972
- fi
1973
- if adapter_installed "devin"; then
1974
2315
  say " Devin: ask Devin to use the Orchestra onboarding skill for this project. For persistent installs, run this installer with --yes --agents devin --no-launch-agent in the Devin environment blueprint."
2316
+ elif [ "$ADAPTERS_INSTALLED_COUNT" -eq 0 ]; then
2317
+ if [ "$(normalize_agent_platform "$AGENT_PLATFORMS")" = "none" ]; then
2318
+ say "The installer is done. No coding-agent plugins were requested, so only the orchestra CLI was installed."
2319
+ say "Rerun this installer with --agents claude-code (or another adapter) when you want the skills inside a coding agent."
2320
+ elif [ "${ADAPTERS_UNMET_COUNT:-0}" -eq 0 ]; then
2321
+ say "The installer is done. Every selected coding-agent adapter was disabled by a flag (e.g. --no-claude), so only the orchestra CLI was installed."
2322
+ say "Rerun this installer without the disable flag (or with --agents <adapter>) when you want the skills inside a coding agent."
2323
+ else
2324
+ fail_line "The installer finished, but no coding-agent plugin was installed — the Orchestra skills are NOT ready in any coding agent."
2325
+ say "Use the manual install commands above (or rerun this installer with --agents <adapter>), then run the platform's reload step before onboarding."
2326
+ fi
2327
+ else
2328
+ say "The installer is done. The next experience belongs inside your coding agent:"
2329
+ if adapter_installed "claude-code"; then
2330
+ say " Claude Code: run /reload-plugins and then /orchestra:onboard."
2331
+ fi
2332
+ if adapter_installed "cursor"; then
2333
+ say " Cursor: restart Cursor or run Developer: Reload Window, then ask Cursor Agent to use the Orchestra onboarding skill."
2334
+ fi
2335
+ if adapter_installed "codex"; then
2336
+ say " Codex: run /plugins, install or enable orchestra, then ask Codex to use the Orchestra onboarding skill."
2337
+ fi
2338
+ if adapter_installed "opencode"; then
2339
+ say " OpenCode: restart the TUI or open a new session, then run /orchestra-onboard."
2340
+ fi
2341
+ if adapter_installed "hermes"; then
2342
+ say " Hermes: run /reload-skills in an open session (or start a new hermes session), then run /onboard or ask Hermes to use the Orchestra onboarding skill."
2343
+ fi
2344
+ if adapter_installed "devin"; then
2345
+ say " Devin: ask Devin to use the Orchestra onboarding skill for this project. For persistent installs, run this installer with --yes --agents devin --no-launch-agent in the Devin environment blueprint."
2346
+ fi
2347
+ fi
2348
+ if lower_my_ant_bill_enabled; then
2349
+ say "Focused path: lower Anthropic bill. Ask the agent to use onboarding with the lower-Anthropic-bill path, then run the lower-anthropic-bill skill."
2350
+ fi
2351
+ if [ "$ADAPTERS_ATTEMPTED" != "1" ] || [ "$ADAPTERS_INSTALLED_COUNT" -gt 0 ]; then
2352
+ [ "$QUIET_RUN" = "1" ] || say "Onboarding profiles your setup, asks what you're working on, and points the plugin at your real workload."
2353
+ fi
2354
+ show_paste_prompt
2355
+ if should_run_step 3; then
2356
+ launch_selected_agent
2357
+ else
2358
+ say "Skipping step 3/3: open coding agent."
2359
+ fi
2360
+ if [ "$CLAUDE_LAUNCHED" != "1" ]; then
2361
+ copy_paste_prompt_to_clipboard
1975
2362
  fi
1976
2363
  fi
1977
- if lower_my_ant_bill_enabled; then
1978
- say "Focused path: lower Anthropic bill. Ask the agent to use onboarding with the lower-Anthropic-bill path, then run the lower-anthropic-bill skill."
1979
- fi
1980
- if [ "$ADAPTERS_ATTEMPTED" != "1" ] || [ "$ADAPTERS_INSTALLED_COUNT" -gt 0 ]; then
1981
- say "Onboarding profiles your setup, asks what you're working on, and points the plugin at your real workload."
1982
- fi
1983
- if should_run_step 3; then
1984
- launch_selected_agent
1985
- else
1986
- say "Skipping step 3/3: open coding agent."
2364
+ if [ "$QUIET_RUN" = "1" ]; then
2365
+ say "${D}Full install log: $LOG_FILE${R}"
1987
2366
  fi
1988
2367
 
1989
2368
  INSTALL_EXIT="$(adapter_exit_code)"