fix(doctor): recommend current Anthropic and Google models #1133
 <br/>All committers have signed the CLA.
claude-sonnet-5-5 is not a published Anthropic API model ID. Please switch this to claude-sonnet-5 and update the matching test/template text so af doctor suggests a model users can call.
Thanks for updating these recommendations. The Google change is current, but the Anthropic model ID needs one small correction before this can land.
Thanks for checking this. I believe claude-sonnet-5-5 is a published API model ID: it is listed as the Claude API ID and alias for Claude Sonnet 5.5 in the Models overview, and the Model deprecations page lists it as Active and as the recommended replacement for claude-sonnet-4-5-20250929 (retiring November 30, 2026).
claude-sonnet-5 is also still listed as active, so if you would rather af doctor suggest that one, I'm happy to switch it and update the matching test/template text. Just let me know which you prefer.
This reply was drafted with the assistance of an AI coding agent (Claude).
📊 Coverage gate
Thresholds from [.coverage-gate.toml](../../.coverage-gate.toml): per-surface ≥ 84%, aggregate ≥ 85%, max per-surface regression ≤ 1.0 pp, max aggregate regression ≤ 0.50 pp.
| Surface | Current | Baseline | Δ | |
| --- | ---: | ---: | ---: | :---: |
| control-plane | 88.20% | 87.40% | ↑ +0.80 pp | 🟡 |
| sdk-go | 93.70% | 92.00% | ↑ +1.70 pp | 🟢 |
| sdk-python | 94.72% | 93.73% | ↑ +0.99 pp | 🟢 |
| sdk-typescript | 92.50% | 90.42% | ↑ +2.08 pp | 🟢 |
| web-ui | 84.90% | 84.79% | ↑ +0.11 pp | 🟡 |
| aggregate | 86.12% | 85.75% | ↑ +0.37 pp | 🟡 |
✅ Gate passed
No surface regressed past the allowed threshold and the aggregate stayed above the floor.
<!-- Sticky Pull Request Commentcoverage-gate -->
📐 Patch coverage gate
Threshold: 80% on lines this PR touches vs origin/main (from .coverage-gate.toml:thresholds.min_patch).
| Surface | Touched lines | Patch coverage | Status |
| --- | ---: | ---: | :---: |
| control-plane | 1 | 100.00% | ✅ |
| sdk-go | 0 | — | ➖ no changes |
| sdk-python | 0 | — | ➖ no changes |
| sdk-typescript | 0 | — | ➖ no changes |
| web-ui | 0 | — | ➖ no changes |
✅ Patch gate passed
Every surface whose lines were touched by this PR has patch coverage at or above the threshold.
<!-- Sticky Pull Request Commentpatch-coverage-gate -->
Checked this one. claude-sonnet-5-5 is the published ID for Claude Sonnet 5.5, the current Sonnet, and claude-3-5-sonnet-20241022 was retired on 2025-10-28, so the value in the PR is right as written. gemini-3.8-flash is also listed as stable on Google's models page with no shutdown date. Resolving this and re-requesting your review.
Both suggested models check out (details in the doctor.go thread), the doctor tests pass, and CI is green. The one leftover retired-model mention is the claude-3-sonnet example in the Python AIConfig.model description, which is out of scope here.
Hi @santoshkumarradha, the changes you requested on 10-28 are addressed and @AbirAbbas has approved since. Could you take another look when you have a moment, so the old review no longer blocks the merge?
AbirAbbas
pcbeingused33
Summary
af doctorsuggests anAI_MODELfor whichever provider key it finds, and for Anthropic and Google it suggestedclaude-3-5-sonnet-20241022andgemini-1.5-pro. Both models are retired (claude-3-5-sonnetwas retired on 2025-10-28 per Anthropic's model deprecations; no Gemini 1.5 model is listed any more on the Gemini API models page), so a scaffold that follows the recommendation fails on its first model call. The recommendation is nowclaude-sonnet-5-5andgemini-3.8-flash(the current stable Flash model), and the commented examples in the docker.envtemplate and theaf init --default-modelhelp text match.The
gpt-4osuggestion for OpenAI is left as it is.Type of change
Test plan
cd control-plane && go test ./internal/cli ./internal/templatesrecommended models are not retired onesindoctor_additional_test.gosets only the Anthropic (then only the Google) key and checks the recommended model. It fails onmainwith the retired IDs and passes with this change.Test coverage
Checklist
This change was prepared with Claude Code.