feat(models): update the capable-tier Sonnet to Claude Sonnet 5#1198
Merged
Conversation
Swaps the default "capable" model from claude-sonnet-4-6 to the newly released claude-sonnet-5 (GA 2026-06-09) across the registry, adaptive routing, providers, telemetry, token estimation, and the literal model_id defaults scattered through the codebase. Verified the ID against the live Anthropic models doc before changing anything. Pricing is unchanged: $3/$15 per MTok standard (introductory $2/$10 through 2026-08-31). 1M context, 128K max output, adaptive thinking, effort defaults to high. Sonnet 4.6 is now a legacy model. - Full claude-sonnet-4-6 -> claude-sonnet-5 swap across src/ + tests/ (65 files); matching test expectations updated so CI stays green. - Registry CAPABLE ModelInfo + TIER_PRICING comment refreshed. - Stale "Sonnet 4.6" prose comments updated to "Sonnet 5". - Left claude-sonnet-4-5 (legacy 4.5) references untouched. - CHANGELOG Unreleased "Changed" entry added. 962 model/routing/pricing/telemetry/provider tests pass. The only failures are the live-API integration tests in tests/models/test_sonnet_opus_fallback.py (skipif HAS_API_KEY) — a local creditless-key 400, skipped in CI; the new ID is accepted (no 404), confirming the swap. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
silversurfer562
added a commit
that referenced
this pull request
Jul 1, 2026
Follow-up to the src/tests Sonnet 5 swap (#1198): updates the claude-sonnet-4-6 references in served docs, the example config, and the blog tutorials to claude-sonnet-5, so user-facing surfaces match the registry default. - docs/ served pages (installation model list, agent-factory capable table, API_REFERENCE + agent-factory-readme code examples) - examples/config/attune.config.example.yml - website/content/blog/*.mdx code snippets Left untouched (historical / generated, not the cleanup target): .claude/lessons.md (illustrative stable-alias example), .claude/plans/* (dated planning docs), docs/archive/**, weekly-reports/**, the CHANGELOG entry that introduced 4.6, and website/public/framework-docs/** (built mkdocs HTML — regenerated from docs/ at build time). Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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.
What
Updates attune's default "capable" model from
claude-sonnet-4-6to the newly releasedclaude-sonnet-5(Claude Sonnet 5, GA 2026-06-09).I verified the model ID against the live Anthropic models doc before touching anything — my cached reference predated the release, so this confirms
claude-sonnet-5is real and current (Sonnet 4.6 is now legacy).Scope — full swap (src/ + tests/)
A clean ID swap
claude-sonnet-4-6 → claude-sonnet-5across 65 source/test files (169 occurrences), plus the CHANGELOG. Pricing is unchanged ($3/$15 per MTok standard), so no pricing math moved.ModelInfo+TIER_PRICINGcomment"capable"map, executor, token estimator, telemetry baselinesmodel_id="claude-sonnet-4-6"defaults across providers, configs, workflows, agent factory, orchestration tools# Sonnet 4.6prose comments refreshed to# Sonnet 5claude-sonnet-4-5(legacy 4.5 — a different model) and the historical CHANGELOG entry that introduced 4.6Sonnet 5 facts (from the live doc)
claude-sonnet-5(Bedrockanthropic.claude-sonnet-5)effortdefaults tohighVerification
tests/models/,tests/unit/models/,tests/routing/, pricing lookup, telemetry analytics, retired-snapshot guard).get_model('anthropic','capable').id → claude-sonnet-5.tests/models/test_sonnet_opus_fallback.py(@pytest.mark.integration,skipif(not HAS_API_KEY)) — a local creditless-key 400, not the swap. CI runs these withANTHROPIC_API_KEY=""so they're skipped. The new ID was accepted by the API (billing 400, not a 404 model-not-found), which itself confirms the ID is valid.Not in this PR (follow-up if wanted)
claude-sonnet-4-6also appears in docs/ (6), website/ (7), examples/ (1), and.claude/(3) — out of the chosen src+tests scope. Happy to sweep those in a follow-up (website has its own deploy + content-accuracy guard).🤖 Generated with Claude Code