Open
Conversation
Tasks can now have a model override (e.g., "opus", "sonnet", "haiku") that gets passed via --model flag to the Claude CLI. This allows choosing different models per task based on complexity/cost needs. Changes: - Add `model` column to tasks table with DB migration - Pass --model flag to Claude CLI in all execution paths (run, resume, dangerous/safe mode toggle, BuildCommand) - Add Model selector to the task form UI (only shown for executors that support models, currently Claude) - Add model parameter to MCP taskyou_create_task tool - Log model info alongside executor in task execution output Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Previously --model flag was only wired up for Claude. Now Codex and Gemini executors also pass the per-task model to their CLIs in all execution paths (runCodex/runGemini, BuildCommand, resumeWithMode). Updated modelsForExecutor() with appropriate model choices for each. Co-Authored-By: Claude Opus 4.6 <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
opus,sonnet,haiku) that gets passed via--modelflag to the Claude CLIexecutorandmodelparameters to the MCPtaskyou_create_tasktool so agents can specify model when creating tasksHow it works
modelcolumn in the tasks database (empty string = use executor's default model)--model <value>is passed to the Claude CLI in all execution paths: initial run, resume, dangerous mode toggle, safe mode toggle, and interactive BuildCommand--modelTest plan
go test ./...)--model opusappears in the tmux command--modelflag is added🤖 Generated with Claude Code