Skip to content

feat: add configurable Claude model and effort parameters, default is haiku effort low - #21

Open
alexzarp wants to merge 1 commit into
aniketkarne:mainfrom
alexzarp:haiku-effort-low
Open

feat: add configurable Claude model and effort parameters, default is haiku effort low#21
alexzarp wants to merge 1 commit into
aniketkarne:mainfrom
alexzarp:haiku-effort-low

Conversation

@alexzarp

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings July 21, 2026 20:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 / --effort options to the daemon manager and daemon argument parsing, and persist chosen values across manager restarts.
  • Default CLAUDE_MODEL and CLAUDE_EFFORT in renewal scripts and pass them through to claude invocations.
  • 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 thread claude-daemon-manager.sh
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 thread README.md
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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants