fix: correct agent modes, model IDs, and add Catwalk-powered installer#100
Merged
Conversation
Three fixes: 1. Rename remaining 'orchestrator' references to 'PRIME' in prime.md. 2. Demote pilot-builder and pilot-planner from mode: primary to mode: subagent so they no longer appear as tab-selectable primary agents. Fix docs-maintainer model from bare 'sonnet' to 'anthropic/claude-sonnet-4-6'. 3. Fix wrong Bedrock/Vertex model IDs in installer presets (e.g. bedrock/claude-opus-4 → bedrock/anthropic.claude-opus-4-6) to match Crush's Catwalk registry. Add Catwalk API client that fetches live providers during install, with graceful fallback to corrected hardcoded presets when offline. Plan: /Users/austinhess/.glorious/opencode/glorious-opencode/plans/installer-model-config-redesign.md
This was referenced Apr 25, 2026
iceglober
added a commit
that referenced
this pull request
Apr 26, 2026
Users who installed before PR #100 keep stale tier overrides like `models.deep = ["bedrock/claude-opus-4"]` in their opencode.json. resolveHarnessModels applied them unconditionally, stomping the plugin's correct Catwalk-canonical defaults (`anthropic/claude-opus-4-7` etc.) and crashing every subagent invocation with ProviderModelNotFoundError — pilot-planner and qa-reviewer hit first because they're typically delegated first. Add a pure offline pattern validator (src/model-validator.ts) that flags the specific legacy form `<bedrock|vertex|vertexai>/claude-<opus|sonnet|haiku>(-\d+)?` and maps each form to the Catwalk-preset replacement. Conservative: unknown or CRIS-prefixed IDs stay silent. resolveHarnessModels now warns once per unique bad ID (deduped per call) to stderr, naming the offending key and suggesting the fix. The bad value is still written to agentCfg.model so the user's intent is preserved — the warn is advisory, not corrective. `bunx … doctor` gains a model-overrides check that walks both plugin options.models and legacy top-level harness.models, prints a red-X line with the reason and remediation hint per invalid entry, and a green check when a models block exists with all valid entries. Silent on default installs. No user config is ever auto-rewritten. Plan: ~/.glorious/opencode/glorious-opencode/plans/pilot-agents-provider-model-not-found.md
Merged
23 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pilot-builderandpilot-plannerfrommode: "primary"tomode: "subagent"so they stop appearing as tab-selectable primary agents. Fixdocs-maintainermodel from baresonnettoanthropic/claude-sonnet-4-6.bedrock/claude-opus-4→bedrock/anthropic.claude-opus-4-6).src/cli/catwalk.tsfetches live providers fromcatwalk.charm.land/v2/providersduring install, auto-suggests tier mapping by cost. Graceful fallback to corrected hardcoded presets when offline. Custom model ID input option added.Test plan