Summary
Provider-backed agents (#sol lane) can only inject ANTHROPIC_BASE_URL / ANTHROPIC_API_KEY / ANTHROPIC_AUTH_TOKEN into their REPL env (tmux_session._build_repl_env, mirrored by the SDK path). The proven sol recipe requires more: ANTHROPIC_SMALL_FAST_MODEL=gpt-5.6-luna[1m], CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1, CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK=1. Without them, CC's small-fast slot and any subagent with a model: alias resolve to claude-* names, which are only ~17-70% reliable through the codex backend (vs ~99% for gpt-5.6-sol).
Evidence (2026-07-12 night, solik on tmux via claude-code-proxy :18765)
Proxy log totals since install, /v1/messages only:
| model |
200 |
401 |
| claude-sonnet-5 |
1993 |
9642 |
| claude-opus-4-8 |
576 |
790 |
| claude-haiku-4-5 |
330 |
144 |
| gpt-5.6-sol |
~all |
a handful |
Concrete incidents: solik's audit subagent fan-out (sonnet alias) died 08:38Z; a single opus-alias review subagent burned 1000+ failed calls 09:56→10:00Z before being killed. Interim mitigation: behavioral directive to solik — never pass a model override to subagents.
Ask
Per-agent provider env injection — either a provider_env JSON column on agents merged into _build_repl_env() (tmux) and the SDK session's provider_env, or first-class columns for small-fast model + the two disable flags. Registry-driven, so the flip survives respawns and applies to future provider agents (Luna fleet, Ryzhik/GLM). Sol phase-2 ("Luna small-fast") is blocked on exactly this seam.
Related: #868/#869/#870 (tonight's tmux-transport series).
🤖 Opened by Barsik
Summary
Provider-backed agents (#sol lane) can only inject
ANTHROPIC_BASE_URL/ANTHROPIC_API_KEY/ANTHROPIC_AUTH_TOKENinto their REPL env (tmux_session._build_repl_env, mirrored by the SDK path). The proven sol recipe requires more:ANTHROPIC_SMALL_FAST_MODEL=gpt-5.6-luna[1m],CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1,CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK=1. Without them, CC's small-fast slot and any subagent with amodel:alias resolve to claude-* names, which are only ~17-70% reliable through the codex backend (vs ~99% for gpt-5.6-sol).Evidence (2026-07-12 night, solik on tmux via claude-code-proxy :18765)
Proxy log totals since install,
/v1/messagesonly:Concrete incidents: solik's audit subagent fan-out (sonnet alias) died 08:38Z; a single opus-alias review subagent burned 1000+ failed calls 09:56→10:00Z before being killed. Interim mitigation: behavioral directive to solik — never pass a model override to subagents.
Ask
Per-agent provider env injection — either a
provider_envJSON column onagentsmerged into_build_repl_env()(tmux) and the SDK session's provider_env, or first-class columns for small-fast model + the two disable flags. Registry-driven, so the flip survives respawns and applies to future provider agents (Luna fleet, Ryzhik/GLM). Sol phase-2 ("Luna small-fast") is blocked on exactly this seam.Related: #868/#869/#870 (tonight's tmux-transport series).
🤖 Opened by Barsik