Add Claude Opus 4.8 support#2849
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the 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. Comment |
a604f0e to
f0a3f00
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a604f0e929
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
ApprovabilityVerdict: Needs human review This PR introduces new feature capability (Claude Opus 4.8 model support) with new effort modes and configuration options that affect runtime behavior. Additionally, there is an unresolved review comment about potentially misleading UI options for Sonnet 4.6 effort settings. You can customize Macroscope's approvability policy. Learn more. |
1838ab5 to
9057406
Compare
9057406 to
625f0c5
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 625f0c5. Configure here.
| { value: "high", label: "High", isDefault: true }, | ||
| { value: "max", label: "Max" }, | ||
| { value: "ultrathink", label: "Ultrathink" }, | ||
| ], |
There was a problem hiding this comment.
Sonnet 4.6 "Max" option silently behaves as "High"
Medium Severity
The CLAUDE_EFFORT_OPTIONS.sonnet46 constant adds a new max option that didn't exist before for Sonnet 4.6. However, normalizeClaudeCliEffort maps max to "high" when the model is claude-sonnet-4-6. This means the UI presents "Max" and "High" as two distinct effort choices, but they produce identical behavior. Users selecting "Max" will unknowingly receive "High" effort, which is misleading.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 625f0c5. Configure here.


Summary
Validation
Note
Medium Risk
Changes the default
opusmodel alias and effort flags passed to Claude Code/SDK across several models; SDK minor-major bump may affect runtime behavior even though scope is provider configuration.Overview
Adds Claude Opus 4.8 as a built-in model (shown only when Claude Code is v2.1.154+), with shared per-model reasoning effort lists and a new Ultracode option on Opus 4.8.
Ultracode is wired through agent sessions and
claude -ptext generation as a Claude Code setting (settings.ultracode) while CLI/SDK effort is normalized toxhigh.normalizeClaudeCliEffortnow takes the selected model soxhighstays on Opus 4.8 but maps tomaxon older models, andmaxon Sonnet 4.6 maps tohigh.The
opusslug alias in contracts now resolves toclaude-opus-4-8. Provider health checks surface an Opus 4.8 upgrade hint when the CLI is new enough for 4.7 but not 4.8.Bumps
@anthropic-ai/claude-agent-sdkto ^0.3.154 (lockfile picks up platform-specific SDK packages).Reviewed by Cursor Bugbot for commit 625f0c5. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add Claude Opus 4.8 model with ultracode effort mode support
claude-opus-4-8as a built-in model withultracodeandultrathinkeffort options and a 200k/1m context window selector, gated behind Claude Code version ≥ 2.1.154.normalizeClaudeCliEffortto accept a model parameter, with model-specific mappings:ultracodemaps toxhigh,xhighmaps tomaxexcept for Opus 4.8, andmaxmaps tohighfor Sonnet 4.6.ultracodeeffort is selected, both the Claude adapter and text generation layer now setultracode: truein CLI settings.opusalias in model slug aliases to resolve toclaude-opus-4-8, and bumps@anthropic-ai/claude-agent-sdkto^0.3.154.Macroscope summarized 625f0c5.