claude-evolve 1.5.20 → 1.5.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/claude-evolve-ideate +45 -10
- package/lib/ai-cli.sh +2 -2
- package/lib/config.sh +3 -3
- package/package.json +1 -1
package/bin/claude-evolve-ideate
CHANGED
|
@@ -1374,13 +1374,48 @@ CRITICAL: Do NOT use any git commands (git add, git commit, git reset, etc.). On
|
|
|
1374
1374
|
CURRENT_GENERATION=$(get_next_generation)
|
|
1375
1375
|
echo "[INFO] Starting ideation for generation $CURRENT_GENERATION"
|
|
1376
1376
|
|
|
1377
|
-
# Main execution
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1377
|
+
# Main execution with retry logic and exponential backoff
|
|
1378
|
+
retry_count=0
|
|
1379
|
+
wait_seconds=300 # Start with 5 minutes
|
|
1380
|
+
max_wait_seconds=1800 # Cap at 30 minutes
|
|
1381
|
+
|
|
1382
|
+
while true; do
|
|
1383
|
+
if [[ $use_strategies == true ]]; then
|
|
1384
|
+
echo "[INFO] Multi-strategy AI generation mode"
|
|
1385
|
+
if ideate_ai_strategies; then
|
|
1386
|
+
echo "[INFO] Ideation complete! Check $EVOLUTION_CSV for new ideas."
|
|
1387
|
+
exit 0
|
|
1388
|
+
fi
|
|
1389
|
+
else
|
|
1390
|
+
echo "[INFO] Legacy AI generation mode"
|
|
1391
|
+
if ideate_ai_legacy; then
|
|
1392
|
+
echo "[INFO] Ideation complete! Check $EVOLUTION_CSV for new ideas."
|
|
1393
|
+
exit 0
|
|
1394
|
+
fi
|
|
1395
|
+
fi
|
|
1396
|
+
|
|
1397
|
+
# If we reach here, ideation failed
|
|
1398
|
+
((retry_count++))
|
|
1399
|
+
|
|
1400
|
+
echo "[WARN] All ideation attempts failed (retry #$retry_count)" >&2
|
|
1401
|
+
echo "[INFO] This could be temporary API rate limits or service issues" >&2
|
|
1402
|
+
echo "[INFO] Waiting $wait_seconds seconds ($(($wait_seconds / 60)) minutes) before retrying..." >&2
|
|
1403
|
+
|
|
1404
|
+
# Sleep with countdown
|
|
1405
|
+
remaining=$wait_seconds
|
|
1406
|
+
while [[ $remaining -gt 0 ]]; do
|
|
1407
|
+
if [[ $((remaining % 60)) -eq 0 ]]; then
|
|
1408
|
+
echo "[INFO] Retrying in $((remaining / 60)) minutes..." >&2
|
|
1409
|
+
fi
|
|
1410
|
+
sleep 60
|
|
1411
|
+
remaining=$((remaining - 60))
|
|
1412
|
+
done
|
|
1413
|
+
|
|
1414
|
+
echo "[INFO] Retrying ideation (attempt #$((retry_count + 1)))..." >&2
|
|
1415
|
+
|
|
1416
|
+
# Exponential backoff: double the wait time, up to max
|
|
1417
|
+
wait_seconds=$((wait_seconds * 2))
|
|
1418
|
+
if [[ $wait_seconds -gt $max_wait_seconds ]]; then
|
|
1419
|
+
wait_seconds=$max_wait_seconds
|
|
1420
|
+
fi
|
|
1421
|
+
done
|
package/lib/ai-cli.sh
CHANGED
|
@@ -28,7 +28,7 @@ call_ai_model_configured() {
|
|
|
28
28
|
local think_prompt="ultrathink
|
|
29
29
|
|
|
30
30
|
$prompt"
|
|
31
|
-
ai_output=$(timeout 600 claude --dangerously-skip-permissions --model sonnet
|
|
31
|
+
ai_output=$(timeout 600 claude --dangerously-skip-permissions --model sonnet -p "$think_prompt" 2>&1)
|
|
32
32
|
local ai_exit_code=$?
|
|
33
33
|
;;
|
|
34
34
|
opus-think)
|
|
@@ -37,7 +37,7 @@ $prompt"
|
|
|
37
37
|
local think_prompt="ultrathink
|
|
38
38
|
|
|
39
39
|
$prompt"
|
|
40
|
-
ai_output=$(timeout 600 claude --dangerously-skip-permissions --model opus
|
|
40
|
+
ai_output=$(timeout 600 claude --dangerously-skip-permissions --model opus -p "$think_prompt" 2>&1)
|
|
41
41
|
local ai_exit_code=$?
|
|
42
42
|
;;
|
|
43
43
|
gpt5high)
|
package/lib/config.sh
CHANGED
|
@@ -55,7 +55,7 @@ DEFAULT_MEMORY_LIMIT_MB=12288
|
|
|
55
55
|
|
|
56
56
|
# Default LLM CLI configuration - use simple variables instead of arrays
|
|
57
57
|
DEFAULT_LLM_RUN="sonnet gpt5 cursor-sonnet"
|
|
58
|
-
DEFAULT_LLM_IDEATE="gemini
|
|
58
|
+
DEFAULT_LLM_IDEATE="gemini sonnet-think opus-think sonnet-think gpt5high sonnet-think o3high cursor-opus"
|
|
59
59
|
|
|
60
60
|
# Load configuration from config file
|
|
61
61
|
load_config() {
|
|
@@ -103,9 +103,9 @@ load_config() {
|
|
|
103
103
|
LLM_CLI_codex='codex exec --dangerously-bypass-approvals-and-sandbox "{{PROMPT}}"'
|
|
104
104
|
LLM_CLI_gemini='gemini -y -p "{{PROMPT}}"'
|
|
105
105
|
LLM_CLI_opus='claude --dangerously-skip-permissions --model opus -p "{{PROMPT}}"'
|
|
106
|
-
LLM_CLI_opus_think='claude --dangerously-skip-permissions --model opus
|
|
106
|
+
LLM_CLI_opus_think='claude --dangerously-skip-permissions --model opus -p "ultrathink\n\n{{PROMPT}}"'
|
|
107
107
|
LLM_CLI_sonnet='claude --dangerously-skip-permissions --model sonnet -p "{{PROMPT}}"'
|
|
108
|
-
LLM_CLI_sonnet_think='claude --dangerously-skip-permissions --model sonnet
|
|
108
|
+
LLM_CLI_sonnet_think='claude --dangerously-skip-permissions --model sonnet -p "ultrathink\n\n{{PROMPT}}"'
|
|
109
109
|
LLM_CLI_cursor_sonnet='cursor-agent sonnet -p "{{PROMPT}}"'
|
|
110
110
|
LLM_CLI_cursor_opus='cursor-agent opus -p "{{PROMPT}}"'
|
|
111
111
|
LLM_RUN="$DEFAULT_LLM_RUN"
|