claude-evolve 1.0.2 → 1.0.4
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
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
set -e
|
|
4
4
|
|
|
5
5
|
# Parse arguments
|
|
6
|
-
count=
|
|
6
|
+
count=20
|
|
7
7
|
no_ai=false
|
|
8
8
|
|
|
9
9
|
while [[ $# -gt 0 ]]; do
|
|
@@ -16,7 +16,7 @@ USAGE:
|
|
|
16
16
|
claude-evolve ideate [N] [--no-ai]
|
|
17
17
|
|
|
18
18
|
ARGUMENTS:
|
|
19
|
-
N Number of ideas to generate (default:
|
|
19
|
+
N Number of ideas to generate (default: 20, max: 50)
|
|
20
20
|
|
|
21
21
|
OPTIONS:
|
|
22
22
|
--no-ai Use manual entry mode instead of AI generation
|
|
@@ -71,8 +71,8 @@ get_next_id() {
|
|
|
71
71
|
# Find highest ID and increment (pure shell)
|
|
72
72
|
local max_id=0
|
|
73
73
|
while IFS=, read -r id rest; do
|
|
74
|
-
if [[ $id =~ ^[0-9]+$ ]] &&
|
|
75
|
-
max_id=$id
|
|
74
|
+
if [[ $id =~ ^[0-9]+$ ]] && (( 10#$id > max_id )); then
|
|
75
|
+
max_id=$((10#$id))
|
|
76
76
|
fi
|
|
77
77
|
done < <(tail -n +2 evolution/evolution.csv)
|
|
78
78
|
echo $((max_id + 1))
|
|
@@ -166,7 +166,7 @@ Format: One idea per line, no numbering, no extra formatting."
|
|
|
166
166
|
|
|
167
167
|
# Call Claude and process response
|
|
168
168
|
local response
|
|
169
|
-
if ! response=$(echo "$prompt" | claude -p 2>&1); then
|
|
169
|
+
if ! response=$(echo "$prompt" | claude -p --model opus 2>&1); then
|
|
170
170
|
echo "[WARN] Claude API call failed, falling back to manual entry."
|
|
171
171
|
return 1
|
|
172
172
|
fi
|
package/bin/claude-evolve-run
CHANGED
|
@@ -176,7 +176,7 @@ INSTRUCTIONS:
|
|
|
176
176
|
The output should be a complete, executable Python file that builds upon the existing algorithm."
|
|
177
177
|
|
|
178
178
|
# Generate mutation
|
|
179
|
-
if ! generated_code=$(echo "$prompt" | "$claude_cmd"); then
|
|
179
|
+
if ! generated_code=$(echo "$prompt" | "$claude_cmd" --model sonnet); then
|
|
180
180
|
echo "[ERROR] Claude failed to generate algorithm mutation" >&2
|
|
181
181
|
update_csv_row "$row_num" "" "failed"
|
|
182
182
|
exit 1
|