CLI: Add Opus 4.7 support to code agent with max effort thinking - #3124
Merged
Conversation
Collaborator
📊 Performance Test ResultsComparing dcaec9c vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
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.
Related issues
How AI was used in this PR
Claude Code (running on Opus 4.7) located the model registry and wired itself in. I reviewed the two-line diff in
agent.ts.Proposed Changes
claude-opus-4-7(label: "Opus 4.7") toAI_MODELSinapps/cli/ai/agent.ts. The/modelpicker, status line, session-resume validator, andAiModelIdtype all derive from this object and pick up the new entry automatically.effort: 'max'to the Agent SDKquery()when the selected model is any Opus variant (matchesclaude-opus-*). Sonnet stays on the SDK default ('high') since'max'is currently documented as Opus-only.Testing Instructions
npm run cli:build/model— confirm "Opus 4.7" appears, select it, and verify the status line switches to "Opus 4.7".'max'on 4.7 yet — if the API errors, we can narrow the gate toclaude-opus-4-6.)Pre-merge Checklist