You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plumb --model through to claude and codex executors #20
pkg/worker/claude.goclaudeCommand() never passes --model to the CLI
So sweeper run --provider claude --model haiku runs on whatever the CLI's default model is, with no warning.
Proposal
Change NewClaudeExecutor / NewCodexExecutor to accept provider.Config (or at minimum the model string) and append --model <x> (claude) / the codex equivalent to the spawned CLI args when set.
Thread Config.ExtraArgs through at the same time since the struct already defines it.
Record the resolved model in worker.Result / telemetry so sweeper observe can attribute outcomes per model.
Why now
This is the foundation for the advisor/worker model-tiering work (see follow-up issues): planning on a frontier model while workers run on cheap models requires executors that can actually be told which model to use.
Two gaps found during verification, deliberately left out of that PR:
VM executor ignores --model — pkg/worker/vm.go hardcodes claude --print --dangerously-skip-permissions when building the in-VM command, so sweeper run --vm --model X silently drops the model the same way the non-VM path used to. Should be fixed the same way (append --model from config) — either as a small follow-up here or folded into Per-role model config and model escalation ladder on stagnation #22's per-role config work.
ExtraArgs has no user-facing config — it's now threaded from provider.Config through both CLI executors, but nothing populates it from TOML or CLI flags yet. Reachable by code (e.g. the advisor in Advisor phase: frontier model plans the sweep, workers execute it #21), not by users.
Activity
bdougie commentedon Jul 4, 2026
PR up: #23
Two gaps found during verification, deliberately left out of that PR:
VM executor ignores
--model—pkg/worker/vm.gohardcodesclaude --print --dangerously-skip-permissionswhen building the in-VM command, sosweeper run --vm --model Xsilently drops the model the same way the non-VM path used to. Should be fixed the same way (append--modelfrom config) — either as a small follow-up here or folded into Per-role model config and model escalation ladder on stagnation #22's per-role config work.ExtraArgshas no user-facing config — it's now threaded fromprovider.Configthrough both CLI executors, but nothing populates it from TOML or CLI flags yet. Reachable by code (e.g. the advisor in Advisor phase: frontier model plans the sweep, workers execute it #21), not by users.✨ feat: plumb --model through to claude and codex executors (#23)