From 9e50dc6a4dd14dfe5ce5cfbc393597ba66c56331 Mon Sep 17 00:00:00 2001 From: Guillermo Montero Date: Thu, 17 Sep 2026 14:30:34 +0200 Subject: [PATCH] fix(loop-setup): add missing opencode adapter to the setup skill --- CHANGELOG.md | 3 +++ src/bmad_loop/data/skills/bmad-loop-setup/SKILL.md | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5259aee07..6aed608a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -353,6 +353,9 @@ breaking changes may land in a minor release. ### Fixed +- The interactive setup skill now recognizes opencode as a valid `--cli` adapter, + matching the docs and the shipped profile. + - Adopt the current bundle's deferred-work ids before writing a reset sweep task's intent (DW-144). Keep dispatch and ledger-close ids aligned, and journal both old and new ids as `sweep-bundle-dwids-adopted` when they differ. diff --git a/src/bmad_loop/data/skills/bmad-loop-setup/SKILL.md b/src/bmad_loop/data/skills/bmad-loop-setup/SKILL.md index 00bf7c887..c4de68e50 100644 --- a/src/bmad_loop/data/skills/bmad-loop-setup/SKILL.md +++ b/src/bmad_loop/data/skills/bmad-loop-setup/SKILL.md @@ -92,9 +92,9 @@ Unless the user explicitly asked to skip it (e.g. `skills only` / `--no-tool`), 3. **Bootstrap the project** — install the coding-CLI hooks, the bundled `bmad-loop-*` skills, the `.bmad-loop/policy.toml` template, and the gitignore entry (idempotent). - First decide **which coding CLI(s)** the orchestrator should drive. The supported adapters are `claude` (default), `codex`, `gemini`, `copilot`, and `antigravity` (Google's `agy`). Hooks are registered per CLI, so the choice matters — register every CLI you intend to use for dev/review/triage. Ask the user (unless they already specified it in their setup args, e.g. `cli: claude, codex`, or accepted defaults — then default to `claude` only): + First decide **which coding CLI(s)** the orchestrator should drive. The supported adapters are `claude` (default), `codex`, `gemini`, `copilot`, `antigravity` (Google's `agy`), and `opencode`. Hooks are registered per CLI, so the choice matters — register every CLI you intend to use for dev/review/triage. Ask the user (unless they already specified it in their setup args, e.g. `cli: claude, codex`, or accepted defaults — then default to `claude` only): - > "Which coding CLI(s) should the orchestrator drive — `claude`, `codex`, `gemini`, `copilot`, and/or `antigravity`? You can pick more than one. [claude]" + > "Which coding CLI(s) should the orchestrator drive — `claude`, `codex`, `gemini`, `copilot`, `antigravity`, and/or `opencode`? You can pick more than one. [claude]" Build the command with one `--cli ` per selected CLI (the flag is repeatable). **On an upgrade, append `--force-skills`** so the per-project skill copies are actually refreshed — without it `init` skips every existing skill dir and the project keeps stale skills against the upgraded tool. On a fresh install, omit it. @@ -109,7 +109,7 @@ Unless the user explicitly asked to skip it (e.g. `skills only` / `--no-tool`), bmad-loop init --project "{project-root}" --cli claude --force-skills ``` - Names must be exactly `claude`, `codex`, `gemini`, `copilot`, or `antigravity` — `init` errors on an unknown profile and lists the valid ones. `init` prints any one-time first-run notes per CLI (e.g. start `claude` once in the project and accept the workspace-trust + hooks-approval dialogs before `bmad-loop run` — spawned sessions can't answer first-run dialogs). Relay those notes to the user. + Names must be exactly `claude`, `codex`, `gemini`, `copilot`, `antigravity`, or `opencode-http` (alias `opencode`) — `init` errors on an unknown profile and lists the valid ones. A hookless profile like `opencode-http` installs its skills but registers no hooks (it signals over HTTP/SSE). `init` prints any one-time first-run notes per CLI (e.g. start `claude` once in the project and accept the workspace-trust + hooks-approval dialogs before `bmad-loop run` — spawned sessions can't answer first-run dialogs). Relay those notes to the user. **Skills are installed automatically:** `init` lays the bundled `bmad-loop-*` skills into the right tree for each selected CLI — `.claude/skills/` for `claude`, `.agents/skills/` for `codex`/`gemini`/`copilot`/`antigravity`. On a fresh install, existing skill dirs are left untouched; on an upgrade, `--force-skills` overwrites them with the bundled copies from the upgraded tool (use `--no-skills` to skip the step and manage skills yourself).