Skip to content

feat(LAC-3106): add Claude Opus 5 and set it as default Anthropic model - #492

Merged
lacymorrow merged 2 commits into
mainfrom
LAC-3106-weekly-model-update-check-juno
Jul 27, 2026
Merged

feat(LAC-3106): add Claude Opus 5 and set it as default Anthropic model#492
lacymorrow merged 2 commits into
mainfrom
LAC-3106-weekly-model-update-check-juno

Conversation

@lacymorrow

Copy link
Copy Markdown
Owner

LAC-3106 — Weekly Model Update Check (Juno)

Verified src-tauri/src/agent/providers/types.rs against live Anthropic model docs. A new flagship shipped since the last check:

Claude Opus 5 (claude-opus-5) — released 2026-07-24 (Anthropic announcement). Opus-tier flagship at Opus-4.8 pricing ($5/$25 per MTok), adaptive thinking, 1M context, 128k output. Anthropic recommends it as the default for complex agentic/coding/enterprise work and it becomes the default for Claude Max.

⚠️ Verification note: both the assistant's training cutoff (Jan 2026) and the bundled model reference (cached 2026-06-24) predate this release, so cached knowledge said "no Opus 5 exists." Confirmed against live platform.claude.com docs + independent press before landing — per the project's model-ID verification rule.

Changes (types.rs)

  • Add CLAUDE_OPUS_5 = "claude-opus-5" constant
  • Add it to OPUS_4_5_PLUS_MODELS → uses the 2025-11-24 computer-use beta (computer_20251124 + text_editor_20250728), the correct tier for a current-gen model
  • List Opus 5 first and mark it the sole recommended (default) Anthropic model; demote Opus 4.8 to non-recommended
  • Update the empty-definitions fallback constant → Opus 5
  • Add tests: test_opus_5_is_default_anthropic_model, test_resolve_tool_type_opus_5_remaps

CLI (cli/mod.rs)

  • Refresh stale --model help example: claude-opus-4-7claude-opus-5

Frontend

No change required. Model selectors are populated dynamically via invoke("get_provider_models")get_model_info()model_definitions(); grep of src/ found zero hardcoded model IDs, so the UI picks up Opus 5 automatically with the correct recommended badge.

Verification

cargo test --lib agent::providers::types13/13 pass (incl. both new tests). Full-crate cargo check is blocked only by a missing ../dist (frontend not built in this worktree) — a pre-existing env condition in tauri::generate_context!, unrelated to this change.

🤖 Generated with Claude Code

Claude Opus 5 (`claude-opus-5`) was released 2026-07-24 as the new
flagship Opus-tier model (Opus-4.8 pricing, adaptive thinking, 1M
context). Verified against live Anthropic model docs per the weekly
model-update check.

- Add CLAUDE_OPUS_5 constant to model_ids
- Include it in OPUS_4_5_PLUS_MODELS so it uses the 2025-11-24
  computer-use beta (computer_20251124 + text_editor_20250728)
- List it first and mark it the sole recommended (default) Anthropic
  model; demote Opus 4.8 to non-recommended
- Update the empty-definitions fallback constant to Opus 5
- Add tests: default-model selection and tool-type remapping
- Refresh stale CLI --model help example (claude-opus-4-7 -> claude-opus-5)

Frontend needs no change: model selectors are populated dynamically via
get_provider_models (zero hardcoded IDs). Verified with cargo test on the
agent::providers::types module (13/13 pass).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

Wrap the assert_eq! in test_opus_5_is_default_anthropic_model to satisfy
rustfmt line width — preempts the CI Rust (fmt) gate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lacymorrow
lacymorrow merged commit 7c7abd2 into main Jul 27, 2026
4 checks passed
@lacymorrow
lacymorrow deleted the LAC-3106-weekly-model-update-check-juno branch July 27, 2026 13:24
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