Skip to content

feat(claude): add Claude Opus 5 to built-in models - #44

Merged
DanielGGordon merged 1 commit into
mainfrom
t3code/claude-opus-5-builtin
Jul 27, 2026
Merged

feat(claude): add Claude Opus 5 to built-in models#44
DanielGGordon merged 1 commit into
mainfrom
t3code/claude-opus-5-builtin

Conversation

@DanielGGordon

Copy link
Copy Markdown
Owner

Summary

Adds claude-opus-5 ("Claude Opus 5") as a first-class built-in Claude model. Upstream's catalog currently stops at Fable 5 + Opus 4.8 — there is no upstream commit to pull for this (verified against upstream/main through 2026-07-23), so this is a deliberate fork divergence.

  • New BUILT_IN_MODELS entry mirroring Opus 4.8: Reasoning effort (low → ultrathink, default high) + Fast Mode toggle
  • Gated on the existing Fable 5 minimum CLI version (2.1.169) — both shipped in the same Claude Code generation; upgrade message now names both models
  • Runtime wiring (caught in Codex review): exempted from the xhighmax older-model effort downgrade in normalizeClaudeCliEffort, and treated as always-1M in selectedClaudeContextWindow like the other Opus entries
  • Tests: presence/absence on both sides of the version gate, descriptor contents, and xhigh normalization

Verification

  • vp test run ProviderRegistry.test.ts ClaudeAdapter.test.ts — 98/98 pass
  • tsgo --noEmit on apps/server — clean
  • Codex (gpt-5.6-sol) review: initial FIX-FIRST findings (effort downgrade, context-window omission, stale upgrade message) all addressed

🤖 Generated with Claude Code

Upstream's catalog stops at Fable 5 + Opus 4.8; claude-opus-5 exists in the
Claude 5 family but has no upstream catalog entry yet, leaving it unusable
in the picker except via the capability-less custom-slug path. Add it as a
first-class entry (effort options + fast mode, mirroring Opus 4.8) gated on
the Fable 5 minimum CLI version, since both shipped in the same Claude Code
generation.

Also wire the two runtime paths a new model entry interacts with (found in
review): exempt claude-opus-5 from the xhigh->max older-model effort
downgrade, and treat it as always-1M in selectedClaudeContextWindow like
the other Opus models without a contextWindow descriptor.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 27, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Jul 27, 2026
@DanielGGordon
DanielGGordon merged commit 77d79ff into main Jul 27, 2026
6 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant