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.
@@ -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 each PLACEHOLDER description with a real idea
1024
- 5. Each replacement should be one clear sentence describing a novel algorithmic approach"
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
- 5. IMPORTANT: The following IDs already have Python files: $existing_py_files
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
- 6. Use the Edit or MultiEdit tool to APPEND exactly $count new rows AT THE END of the CSV file
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 each PLACEHOLDER description with a parameter tuning idea
1176
- 5. You may also change the parent_id field if needed to reference a different top performer
1177
- 6. Each description should focus on adjusting specific parameters - include current and new values
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
- 7. CRITICAL: When editing, preserve the CSV formatting with proper quoting
1180
- 8. DO NOT use any git commands (git add, git commit, git reset, etc.). Only modify the file directly."
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 each PLACEHOLDER description with a structural modification idea
1296
- 5. You may also change the parent_id field if needed to reference a different top performer
1297
- 6. Each description should focus on architectural/structural changes
1298
- 7. CRITICAL: When editing, preserve the CSV formatting with proper quoting
1299
- 8. DO NOT use any git commands (git add, git commit, git reset, etc.). Only modify the file directly."
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 each PLACEHOLDER description with a crossover idea
1415
- 5. You may also change the parent_id field if needed (choose the primary parent)
1416
- 6. Each description should combine actual elements from 2+ top performers
1417
- 7. CRITICAL: When editing, preserve the CSV formatting with proper quoting
1418
- 8. DO NOT use any git commands (git add, git commit, git reset, etc.). Only modify the file directly."
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)
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-evolve",
3
- "version": "1.7.17",
3
+ "version": "1.7.20",
4
4
  "bin": {
5
5
  "claude-evolve": "./bin/claude-evolve",
6
6
  "claude-evolve-main": "./bin/claude-evolve-main",