feat(presets): add 'optimal' preset (multi-provider speed-first routing)#295
Merged
Destynova2 merged 1 commit intomainfrom Apr 27, 2026
Merged
feat(presets): add 'optimal' preset (multi-provider speed-first routing)#295Destynova2 merged 1 commit intomainfrom
Destynova2 merged 1 commit intomainfrom
Conversation
New shipped preset alongside cheap/fast/perf/medium/local. Targets the best price/perf/quality ratio for Claude Code users with Anthropic Max subscription, validated by real benchmarks. Strategy: - Trivial / background : Groq gpt-oss-20b (LPU, 960 t/s measured) - Default : DeepSeek V4-Flash (81% SWE-V, 1M ctx) - Think : Claude Opus 4.7 (87.6% SWE-V, OAuth Max free) - Search : Claude Sonnet 4.6 (tool-use, OAuth free) - Long context (>150k) : V4-Pro / OpenRouter (1M+ ctx providers) - Rust / k8s / TF : Anthropic only (quality on unsafe/HCL/YAML) Includes commented blocks for xAI Grok activation (grok-4-fast, grok-code-fast-1, grok-4) once a key is added. Mercury 2 included as last-resort fallback with a note about the post-2026-02-24 model gating. Co-Authored-By: Claude Opus 4.7 (1M context) <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.
Summary
optimal.tomlalongside existingcheap/fast/perf/medium/local.enabled = false) with commented[[models.mappings]]blocks ready to uncomment aftergrob secrets add xai.Routing strategy
gpt-oss-20b(960 t/s mesuré)gpt-oss-120b→ Sonnet 4.6Tier matchers cover
max_tokens_below = 500(trivial),min_input_tokensthresholds (30k / 150k), file-pattern + keyword combos for Rust, Terraform, Kubernetes, CI/CD YAML, andmin_messages = 50for big-history conversations.Bench data baked into the preset (2026-04-26)
openai/gpt-oss-20bopenai/gpt-oss-120bllama-3.1-8b-instantMercury's vendor-claimed 1109 t/s drops to ~155 t/s effective because the model is reasoning-heavy. It stays as a last-resort fallback.
Test plan
python3 -c "import tomllib; tomllib.loads(open('presets/optimal.toml').read())"— TOML parsesgrob preset info optimal— preset lists 6 providers, 8 models, all router slots wiredgrob preset apply optimal --dry-run— emits valid normalized TOMLgrep -E '\bv[0-9]+\.[0-9]+\.[0-9]+\b'clean)grob preset apply optimal --reloadthen a small request hits Groq viatier:trivial🤖 Generated with Claude Code