Skip to content

fix: correct agent modes, model IDs, and add Catwalk-powered installer#100

Merged
iceglober merged 1 commit into
mainfrom
fix/agent-config-and-installer-models
Apr 25, 2026
Merged

fix: correct agent modes, model IDs, and add Catwalk-powered installer#100
iceglober merged 1 commit into
mainfrom
fix/agent-config-and-installer-models

Conversation

@iceglober

Copy link
Copy Markdown
Owner

Summary

  • Fix agent config: Rename remaining "orchestrator" → "PRIME" in prime.md. Demote pilot-builder and pilot-planner from mode: "primary" to mode: "subagent" so they stop appearing as tab-selectable primary agents. Fix docs-maintainer model from bare sonnet to anthropic/claude-sonnet-4-6.
  • Fix model IDs: Correct wrong Bedrock and Vertex model IDs in installer presets to match Crush's Catwalk registry (e.g. bedrock/claude-opus-4bedrock/anthropic.claude-opus-4-6).
  • Catwalk-powered installer: New src/cli/catwalk.ts fetches live providers from catwalk.charm.land/v2/providers during install, auto-suggests tier mapping by cost. Graceful fallback to corrected hardcoded presets when offline. Custom model ID input option added.

Test plan

  • 813 tests pass (7 new for Catwalk tier suggestion logic)
  • Build clean, no type errors

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
@iceglober iceglober merged commit 97072e9 into main Apr 25, 2026
2 checks passed
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
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