Skip to content

Bump default model to Opus 5 - #39

Open
matej wants to merge 1 commit into
mainfrom
bump-default-model-opus-5
Open

Bump default model to Opus 5#39
matej wants to merge 1 commit into
mainfrom
bump-default-model-opus-5

Conversation

@matej

@matej matej commented Jul 29, 2026

Copy link
Copy Markdown
Member

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.pyDEFAULT_CLAUDE_MODELclaude-opus-5
  • action.ymlmax-diff-chars context-window note references Opus 5
  • README.mdclaude-model input table and large-diff model-selection table

The 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 on main, unrelated to this change).

🤖 Generated with Claude Code

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>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📋 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant