feat: add configurable Claude model and effort parameters, default is haiku effort low - #21
Open
alexzarp wants to merge 1 commit into
Open
feat: add configurable Claude model and effort parameters, default is haiku effort low#21alexzarp wants to merge 1 commit into
alexzarp wants to merge 1 commit into
Conversation
… haiku effort low
There was a problem hiding this comment.
Pull request overview
This PR introduces configurable Claude CLI model and effort parameters across the renewal scripts, with economical defaults (haiku + low) and documentation updates to explain the new behavior.
Changes:
- Add
--model/--effortoptions to the daemon manager and daemon argument parsing, and persist chosen values across manager restarts. - Default
CLAUDE_MODELandCLAUDE_EFFORTin renewal scripts and pass them through toclaudeinvocations. - Update README to describe the new “Economical Mode” defaults and configuration.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Documents the new economical defaults and configuration options. |
| claude-daemon-manager.sh | Adds --model / --effort flags, persists them, and forwards them to the daemon. |
| claude-auto-renew.sh | Adds default model/effort env vars and passes them to claude. |
| claude-auto-renew-daemon.sh | Adds default model/effort env vars and supports --model / --effort flags. |
| claude-auto-renew-advanced.sh | Adds default model/effort env vars and passes them into both expect and fallback execution paths. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
122
to
127
| # Create a temporary expect script for better automation | ||
| cat > /tmp/claude_auto_start.exp << 'EOF' | ||
| cat > /tmp/claude_auto_start.exp << EOF | ||
| #!/usr/bin/expect -f | ||
| set timeout 10 | ||
| spawn claude | ||
| spawn ${claude_cmd[*]} | ||
| expect { |
Comment on lines
+68
to
+75
| --model) | ||
| CUSTOM_MODEL="$3" | ||
| shift 2 | ||
| ;; | ||
| --effort) | ||
| CUSTOM_EFFORT="$3" | ||
| shift 2 | ||
| ;; |
Comment on lines
+490
to
+497
| --model) | ||
| CLAUDE_MODEL="$2" | ||
| shift 2 | ||
| ;; | ||
| --effort) | ||
| CLAUDE_EFFORT="$2" | ||
| shift 2 | ||
| ;; |
Comment on lines
+208
to
+209
| By default, the daemon uses a low-effort Claude session and a model set through `CLAUDE_MODEL`. The scripts default that variable to `haiku`, but you can override both at startup through command flags: | ||
|
|
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.
No description provided.