feat(agents): add Claude model tier configuration (haiku/sonnet/opus)#134
Merged
vadimvlasenko merged 2 commits intomainfrom Feb 12, 2026
Merged
feat(agents): add Claude model tier configuration (haiku/sonnet/opus)#134vadimvlasenko merged 2 commits intomainfrom
vadimvlasenko merged 2 commits intomainfrom
Conversation
Add support for configuring separate models for each Claude tier (haiku, sonnet, opus) in CodeMie profiles. This allows users to map CodeMie model names to actual Anthropic model IDs per tier. - Add haikuModel, sonnetModel, opusModel fields to ProviderProfile - Extend envMapping to support ANTHROPIC_DEFAULT_*_MODEL env vars - Auto-map CLAUDE_CODE_SUBAGENT_MODEL to sonnet model - Add optional model tier prompts in setup wizard (Claude providers only) - Pass model tiers through Bedrock provider hook Generated with AI Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
Enhanced the automatic Claude model tier selection to handle various model naming formats and provide robust fallback mechanisms. Changes: - Add support for dot-separated versions (claude-haiku-4.5) - Add support for mixed formats (claude-4.5-sonnet-v2) - Add fallback to string comparison for unparseable versions - Enhance debug logging with candidate lists and sorted order - Environment variables (ANTHROPIC_DEFAULT_*_MODEL) take precedence Testing: - Add comprehensive unit tests (31 tests covering all scenarios) - Add model tier auto-selection test suite (384 lines) - All 1,622 tests passing (1,446 unit + 176 integration) - Zero linter warnings Benefits: - Future-proof: automatically handles Claude 5, 6, etc. - Robust: always selects at least one model even if parsing fails - Debuggable: logs selection details and fallback usage - Override: environment variables allow manual control Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
TarasSpashchenko
approved these changes
Feb 12, 2026
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.
Summary
Changed Claude model tier configuration from manual prompts to automatic selection during setup. Intelligently selects the latest haiku/opus models and uses the user's chosen model for sonnet.
Logic
Priority 1: Environment Variables
ANTHROPIC_DEFAULT_*_MODELenv vars are set, use thosePriority 2: Automatic Selection
Version Comparison
claude-opus-4-6-20260205,claude-haiku-4.5,claude-4-5-sonnetBenefits
Changes
autoSelectModelTiers()with intelligent version parsingparseModelVersion()andcompareModelVersions()helpersImpact