Add configurable Claude model via top-level model config key#80
Merged
Conversation
Allow users to specify the Claude model draft passes to `claude --model` through a top-level `model` key in global or project config. Project config wins over global when both are present. When absent, draft omits `--model` entirely and lets the claude CLI pick its own default. The setting applies uniformly across all commands (create, continue, babysit, fix-pr). Callers that already supply `--model` via `extra_args` take precedence, preventing double-injection.
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
model:key to draft config that passes--model <value>to everyclaudeinvocation viaRunner--modelinextra_args(e.g._live_status.py) are not overridden — prevents double-injectionvalidate_configrejects non-string and blankmodel:values with a clear error at startupTest plan
tests/pipeline/test_runner.pycover: model injection, omission when unset, no double-inject whenextra_argsalready has--model, whitespace normalisation, and coexistence with otherextra_argstests/draft/test_config.pycover: valid string accepted, absent key accepted, blank/non-string values rejected, step validation still runs after a validmodel:, and merge behaviour (project overrides global)