Bump default model to Opus 5 - #39
Open
matej wants to merge 1 commit into
Open
Conversation
Updates the default Claude model from Opus 4.8 to Opus 5 (claude-opus-5). - claudecode/constants.py — DEFAULT_CLAUDE_MODEL -> claude-opus-5 - action.yml — max-diff-chars context-window note references Opus 5 - README.md — claude-model input table and large-diff model-selection table The Sonnet 4.6 alternative references are unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
📋 PR Summary:
This PR bumps the default Claude model used by the code-review action from Opus 4.8 (claude-opus-4-8) to Opus 5 (claude-opus-5) and updates the accompanying documentation. The change touches a single functional line — DEFAULT_CLAUDE_MODEL in constants.py — with the rest being README and action.yml description text. Because pricing and the 1M context window are unchanged, all existing diff-size guidance and thresholds (DEFAULT_MAX_DIFF_CHARS = 800000) remain valid, so no logic or limits needed adjusting.
3 files reviewed
| File | Changes |
|---|---|
claudecode/constants.py |
Default model fallback bumped to claude-opus-5 |
action.yml |
max-diff-chars context-window note now references Opus 5 |
README.md |
Input table and model-selection table updated to Opus 5 |
No issues found. Changes look good.
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.
Updates the default Claude model from Opus 4.8 to Opus 5 (
claude-opus-5).Opus 5 is a drop-in upgrade at the same pricing as Opus 4.8 ($5/$25 per MTok) with the same 1M context window, so all existing diff-size guidance stays valid.
Changes
claudecode/constants.py—DEFAULT_CLAUDE_MODEL→claude-opus-5action.yml—max-diff-charscontext-window note references Opus 5README.md—claude-modelinput table and large-diff model-selection tableThe Sonnet 4.6 alternative references are unchanged.
Testing
pytest claudecode— 220 passed; 1 pre-existing failure (test_anthropic_api_key_handling, an environment-dependent integration test that also fails onmain, unrelated to this change).🤖 Generated with Claude Code