feat: add model selection env vars for Sonnet operators (#102)#103
Merged
itscooleric merged 2 commits intodevfrom Apr 1, 2026
Merged
feat: add model selection env vars for Sonnet operators (#102)#103itscooleric merged 2 commits intodevfrom
itscooleric merged 2 commits intodevfrom
Conversation
Adds ANTHROPIC_MODEL and CLAUDE_CODE_SUBAGENT_MODEL passthrough in docker-compose.yml so deployments can default operators to Sonnet while Boss/Lead override to Opus per-window. Part of corral Phase 0. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Per Lead recommendation: model env vars (ANTHROPIC_MODEL, CLAUDE_CODE_SUBAGENT_MODEL) belong in docker-compose.override.yml, not base compose. Clide stays generic. .env.example documents the vars with an override snippet for deployments that need them. Co-Authored-By: Claude Opus 4.6 (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
ANTHROPIC_MODELandCLAUDE_CODE_SUBAGENT_MODELenv var passthrough in docker-compose.yml.env.examplewith recommended Sonnet default for operatorsexport ANTHROPIC_MODEL=opusor--model opusPart of corral Phase 0 — switches operators from Opus to Sonnet (5x savings, ~1pt SWE-bench gap).
Closes #102
Refs: clidecorral#4
How it works
ANTHROPIC_MODEL=sonnetin.env(container-wide default → most windows are operators)export ANTHROPIC_MODEL=opusbefore runningclaude, orclaude --model opusTest plan
ANTHROPIC_MODEL=sonnetin.env, start session → verify model is Sonnetexport ANTHROPIC_MODEL=opus→ verify model is Opus--model opusflag overrides env var🤖 Generated with Claude Code