Skip to content

feat: add model selection env vars for Sonnet operators (#102)#103

Merged
itscooleric merged 2 commits intodevfrom
feat/sonnet-operator-model
Apr 1, 2026
Merged

feat: add model selection env vars for Sonnet operators (#102)#103
itscooleric merged 2 commits intodevfrom
feat/sonnet-operator-model

Conversation

@itscooleric
Copy link
Copy Markdown
Owner

Summary

  • Adds ANTHROPIC_MODEL and CLAUDE_CODE_SUBAGENT_MODEL env var passthrough in docker-compose.yml
  • Documents model selection in .env.example with recommended Sonnet default for operators
  • Boss/Lead override to Opus per-window via export ANTHROPIC_MODEL=opus or --model opus

Part of corral Phase 0 — switches operators from Opus to Sonnet (5x savings, ~1pt SWE-bench gap).

Closes #102
Refs: clidecorral#4

How it works

  1. Set ANTHROPIC_MODEL=sonnet in .env (container-wide default → most windows are operators)
  2. Operators get Sonnet automatically
  3. Boss/Lead windows override: export ANTHROPIC_MODEL=opus before running claude, or claude --model opus

Test plan

  • Set ANTHROPIC_MODEL=sonnet in .env, start session → verify model is Sonnet
  • Override per-window: export ANTHROPIC_MODEL=opus → verify model is Opus
  • Verify --model opus flag overrides env var
  • Confirm no effect when env vars are unset (defaults to account tier)

🤖 Generated with Claude Code

itscooleric and others added 2 commits March 26, 2026 21:39
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>
@itscooleric itscooleric marked this pull request as ready for review April 1, 2026 01:23
@itscooleric itscooleric merged commit d3faadd into dev Apr 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant