claude-evolve 1.7.17 → 1.7.20
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 +33 -26
- package/bin/claude-evolve-worker +8 -0
- package/package.json +1 -1
package/bin/claude-evolve-ideate
CHANGED
|
@@ -176,6 +176,12 @@ call_ai_for_ideation() {
|
|
|
176
176
|
fi
|
|
177
177
|
else
|
|
178
178
|
echo "[INFO] CSV unchanged after $model (exit code: $ai_exit_code)" >&2
|
|
179
|
+
# Log last few lines of AI output to help debug why it succeeded but didn't change the file
|
|
180
|
+
if [[ -n "$ai_output" ]]; then
|
|
181
|
+
echo "[AI] Last 10 lines of $model output:" >&2
|
|
182
|
+
echo "$ai_output" | tail -n 10 >&2
|
|
183
|
+
echo "[AI] ---" >&2
|
|
184
|
+
fi
|
|
179
185
|
# Continue to next model
|
|
180
186
|
fi
|
|
181
187
|
else
|
|
@@ -1019,20 +1025,18 @@ THE CSV FILE IS VERY LARGE (OVER 100,000 TOKENS). YOU WILL RUN OUT OF CONTEXT IF
|
|
|
1019
1025
|
CRITICAL INSTRUCTIONS:
|
|
1020
1026
|
1. Read ONLY the last 20-30 lines of the CSV to see the placeholder rows
|
|
1021
1027
|
2. DO NOT ADD OR DELETE ANY ROWS - only EDIT the placeholder descriptions
|
|
1022
|
-
3. DO NOT CHANGE THE IDs - they are already correct
|
|
1023
|
-
4. Use the Edit tool to replace
|
|
1024
|
-
5.
|
|
1028
|
+
3. DO NOT CHANGE THE IDs - they are already correct ($required_ids_str)
|
|
1029
|
+
4. Use the Edit tool to replace EACH PLACEHOLDER text with a real algorithmic idea
|
|
1030
|
+
5. When editing, preserve the CSV structure: keep the ID and parent_id fields unchanged"
|
|
1025
1031
|
|
|
1026
1032
|
if [[ -n "$existing_py_files" ]]; then
|
|
1027
1033
|
prompt+="
|
|
1028
|
-
|
|
1034
|
+
6. IMPORTANT: The following IDs already have Python files: $existing_py_files
|
|
1029
1035
|
(This is informational only - use the IDs specified above)"
|
|
1030
1036
|
fi
|
|
1031
|
-
|
|
1037
|
+
|
|
1032
1038
|
prompt+="
|
|
1033
|
-
|
|
1034
|
-
7. For each idea, create a row with: id,,description,,pending (empty parent_id for novel ideas)
|
|
1035
|
-
8. CRITICAL CSV FORMATTING RULES:
|
|
1039
|
+
7. CRITICAL CSV FORMATTING RULES:
|
|
1036
1040
|
- ALWAYS wrap the description field in double quotes
|
|
1037
1041
|
- If the description contains quotes, escape them by doubling them (\" becomes \"\")
|
|
1038
1042
|
- Example: gen01-001,,\"Implement adaptive RSI thresholds based on volatility\",,pending
|
|
@@ -1171,13 +1175,14 @@ THE CSV FILE IS VERY LARGE (OVER 100,000 TOKENS). YOU WILL RUN OUT OF CONTEXT IF
|
|
|
1171
1175
|
CRITICAL INSTRUCTIONS:
|
|
1172
1176
|
1. Read ONLY the last 25 lines using the offset specified above
|
|
1173
1177
|
2. DO NOT ADD OR DELETE ANY ROWS - only EDIT the placeholder descriptions
|
|
1174
|
-
3. DO NOT CHANGE THE IDs - they are already correct
|
|
1175
|
-
4. Use the Edit tool to replace
|
|
1176
|
-
5.
|
|
1177
|
-
6.
|
|
1178
|
+
3. DO NOT CHANGE THE IDs - they are already correct ($required_ids_str)
|
|
1179
|
+
4. Use the Edit tool to replace EACH PLACEHOLDER text with a parameter tuning idea
|
|
1180
|
+
5. When editing, preserve the CSV structure: keep the ID field unchanged
|
|
1181
|
+
6. You may change the parent_id field if needed to reference a different top performer
|
|
1182
|
+
7. Each description should focus on adjusting specific parameters - include current and new values
|
|
1178
1183
|
Example: \"Lower rsi_entry from 21 to 18\" or \"Increase MA period from 20 to 50\"
|
|
1179
|
-
|
|
1180
|
-
|
|
1184
|
+
8. CRITICAL: When editing, preserve the CSV formatting with proper quoting
|
|
1185
|
+
9. DO NOT use any git commands (git add, git commit, git reset, etc.). Only modify the file directly."
|
|
1181
1186
|
|
|
1182
1187
|
# Change to evolution directory so AI can access files
|
|
1183
1188
|
local original_pwd=$(pwd)
|
|
@@ -1291,12 +1296,13 @@ THE CSV FILE IS VERY LARGE (OVER 100,000 TOKENS). YOU WILL RUN OUT OF CONTEXT IF
|
|
|
1291
1296
|
CRITICAL INSTRUCTIONS:
|
|
1292
1297
|
1. Read ONLY the last 25 lines using the offset specified above
|
|
1293
1298
|
2. DO NOT ADD OR DELETE ANY ROWS - only EDIT the placeholder descriptions
|
|
1294
|
-
3. DO NOT CHANGE THE IDs - they are already correct
|
|
1295
|
-
4. Use the Edit tool to replace
|
|
1296
|
-
5.
|
|
1297
|
-
6.
|
|
1298
|
-
7.
|
|
1299
|
-
8.
|
|
1299
|
+
3. DO NOT CHANGE THE IDs - they are already correct ($required_ids_str)
|
|
1300
|
+
4. Use the Edit tool to replace EACH PLACEHOLDER text with a structural modification idea
|
|
1301
|
+
5. When editing, preserve the CSV structure: keep the ID field unchanged
|
|
1302
|
+
6. You may change the parent_id field if needed to reference a different top performer
|
|
1303
|
+
7. Each description should focus on architectural/structural changes
|
|
1304
|
+
8. CRITICAL: When editing, preserve the CSV formatting with proper quoting
|
|
1305
|
+
9. DO NOT use any git commands (git add, git commit, git reset, etc.). Only modify the file directly."
|
|
1300
1306
|
|
|
1301
1307
|
# Change to evolution directory so AI can access files
|
|
1302
1308
|
local original_pwd=$(pwd)
|
|
@@ -1410,12 +1416,13 @@ THE CSV FILE IS VERY LARGE (OVER 100,000 TOKENS). YOU WILL RUN OUT OF CONTEXT IF
|
|
|
1410
1416
|
CRITICAL INSTRUCTIONS:
|
|
1411
1417
|
1. Read ONLY the last 25 lines using the offset specified above
|
|
1412
1418
|
2. DO NOT ADD OR DELETE ANY ROWS - only EDIT the placeholder descriptions
|
|
1413
|
-
3. DO NOT CHANGE THE IDs - they are already correct
|
|
1414
|
-
4. Use the Edit tool to replace
|
|
1415
|
-
5.
|
|
1416
|
-
6.
|
|
1417
|
-
7.
|
|
1418
|
-
8.
|
|
1419
|
+
3. DO NOT CHANGE THE IDs - they are already correct ($required_ids_str)
|
|
1420
|
+
4. Use the Edit tool to replace EACH PLACEHOLDER text with a crossover idea
|
|
1421
|
+
5. When editing, preserve the CSV structure: keep the ID field unchanged
|
|
1422
|
+
6. You may change the parent_id field if needed (choose the primary parent)
|
|
1423
|
+
7. Each description should combine actual elements from 2+ top performers
|
|
1424
|
+
8. CRITICAL: When editing, preserve the CSV formatting with proper quoting
|
|
1425
|
+
9. DO NOT use any git commands (git add, git commit, git reset, etc.). Only modify the file directly."
|
|
1419
1426
|
|
|
1420
1427
|
# Change to evolution directory so AI can access files
|
|
1421
1428
|
local original_pwd=$(pwd)
|
package/bin/claude-evolve-worker
CHANGED
|
@@ -255,6 +255,14 @@ with EvolutionCSV('$FULL_CSV_PATH') as csv:
|
|
|
255
255
|
|
|
256
256
|
if [[ "$current_status" == "complete" ]]; then
|
|
257
257
|
echo "[WORKER-$$] Already evaluated - skipping"
|
|
258
|
+
# Reset status back to complete since get_next_pending_candidate() set it to running
|
|
259
|
+
"$PYTHON_CMD" -c "
|
|
260
|
+
import sys
|
|
261
|
+
sys.path.insert(0, '$SCRIPT_DIR/..')
|
|
262
|
+
from lib.evolution_csv import EvolutionCSV
|
|
263
|
+
with EvolutionCSV('$FULL_CSV_PATH') as csv:
|
|
264
|
+
csv.update_candidate_status('$candidate_id', 'complete')
|
|
265
|
+
" 2>/dev/null || true
|
|
258
266
|
return 0
|
|
259
267
|
fi
|
|
260
268
|
|