Enabling to pass --model and --effort when run ./ralph#148
Open
ygorpinto wants to merge 1 commit intosnarktank:mainfrom
Open
Enabling to pass --model and --effort when run ./ralph#148ygorpinto wants to merge 1 commit intosnarktank:mainfrom
ygorpinto wants to merge 1 commit intosnarktank:mainfrom
Conversation
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
Extends ralph.sh with two optional passthrough flags for the claude CLI, letting users pick the
model and reasoning effort per run without editing the script or relying on environment variables.
Changes
model IDs (e.g. claude-sonnet-4-6). Empty = CLI default.
with a clear error if the value is off. Empty = CLI default.
flag.
from the log.
invocations.
Usage
default (unchanged)
./ralph.sh --tool claude 20
pick a model
./ralph.sh --tool claude --model sonnet 20
pick model + effort
./ralph.sh --tool claude --model opus --effort high 20
effort only
./ralph.sh --tool claude --effort max 20
Motivation
When running long multi-iteration loops, the right model and effort level vary by task complexity
and cost budget. Hard-coding them in the script or juggling env vars made it awkward to tune. A
flag makes experimentation trivial and keeps the invocation self-documenting in shell history.
Testing
underlying claude command.