What#
Adds claude-opus-5 ("Claude Opus 5") to the Claude provider's built-in model list, following the same shape as #3009 (Fable 5) and #2849 (Opus 4.8).
- Listed above Opus 4.8, gated on Claude Code v2.1.219 — the release that shipped Opus 5 as the default Opus model.
- Effort options low →
ultracode, defaulting to high, plus ultrathink as a prompt-injected value.
fastMode toggle and a contextWindow select (200k default, 1M opt-in, which resolveClaudeApiModelId renders as claude-opus-5[1m]).
normalizeClaudeCliEffort no longer downgrades xhigh to max for this model, since Opus 5 supports it natively.
- The bare
opus alias now resolves to claude-opus-5; opus-5 / claude-opus-5.0 / claude-opus-5-0 were added alongside. Existing 4.8/4.7/4.6 aliases are untouched.
Why#
Claude Code v2.1.219 makes Opus 5 the default Opus model, so anyone on a current CLI can't select it from t3 code without this entry. Older CLIs are unaffected — the version gate hides the model and surfaces the usual upgrade message.
Testing#
ProviderRegistry.test.ts: model shown at v2.1.219, hidden with the upgrade message at v2.1.218.
ClaudeAdapter.test.ts: xhigh reaches the SDK unchanged.
packages/shared/src/model.test.ts: updated for the opus alias target.
- Server typecheck and lint clean.
Three pre-existing failures in ProviderRegistry.test.ts on Windows (CLAUDE_CONFIG_DIR expecting a POSIX /tmp path, the codex binaryPath re-probe, and the OpenCode removal test) reproduce on main without this change.
Note#
No UI screenshots — this is a data-only entry that renders through the existing model picker rows.
Separately: v2.1.219 also removed fast mode for Opus 4.7, so the fastMode descriptor on claude-opus-4-7 is now stale. Left out of this PR to keep it focused; happy to send a follow-up.
🤖 Generated with Claude Code
Note
Low Risk
Data and alias mapping changes in the Claude model catalog; the main behavioral shift is opus resolving to Opus 5 instead of 4.8.
Overview
Adds claude-opus-5 to the Claude provider built-in list (reasoning effort through ultrathink, fast mode, 200k/1M context), shown only when Claude Code is v2.1.219+; older CLIs get an Opus 5 upgrade nudge in the provider status message chain.
normalizeClaudeCliEffort keeps xhigh for Opus 5 instead of mapping it to max. Contract aliases repoint bare opus (and opus-5 / versioned variants) to claude-opus-5 rather than Opus 4.8.
Tests cover registry visibility at/ below the version cutoff, adapter effort passthrough, and slug normalization.
Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 38a3cd208e2ef2303b9164c8736a6d7d82aee3e1. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).
Note
Add Claude Opus 5 model with version gating and effort normalization#
- Adds
claude-opus-5 as a built-in model with effort options (low, medium, high, xhigh, max, ultracode, ultrathink), a fastMode toggle, and a 200k/1m context window selector.
- Gates the model behind a minimum Claude Code version (
2.1.219), showing an upgrade message when the version is too old.
- Fixes
xhigh effort normalization for claude-opus-5 so it is passed through as-is instead of being coerced to max.
- Updates the
opus slug alias in model.ts to resolve to claude-opus-5 instead of claude-opus-4-8, and adds opus-5, claude-opus-5.0, and claude-opus-5-0 as new aliases.
- Behavioral Change: any client using the
opus alias will now route to claude-opus-5 rather than claude-opus-4-8.
Macroscope summarized 38a3cd2.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
bea7ba7c-a366-421d-8184-2c224d74c75dYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share