claude-evolve 1.1.1 → 1.1.3
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 +2 -1
- package/bin/claude-evolve-run +5 -24
- package/package.json +1 -1
package/bin/claude-evolve-ideate
CHANGED
|
@@ -166,13 +166,14 @@ $top_performers
|
|
|
166
166
|
prompt+="
|
|
167
167
|
Generate $count creative algorithm variation(s) that could potentially improve performance.
|
|
168
168
|
For each idea, provide a single line description that explains the approach.
|
|
169
|
+
Base it on the top algorithms by their ID.
|
|
169
170
|
Format: One idea per line, no numbering, no extra formatting."
|
|
170
171
|
|
|
171
172
|
echo "[INFO] Generating $count idea(s) with Claude..."
|
|
172
173
|
|
|
173
174
|
# Call Claude and process response
|
|
174
175
|
local response
|
|
175
|
-
if ! response=$(echo "$prompt" | claude --model opus -p 2>&1); then
|
|
176
|
+
if ! response=$(echo "$prompt" | claude --dangerously-skip-permissions --model opus -p 2>&1); then
|
|
176
177
|
echo "[WARN] Claude API call failed, falling back to manual entry."
|
|
177
178
|
return 1
|
|
178
179
|
fi
|
package/bin/claude-evolve-run
CHANGED
|
@@ -210,31 +210,12 @@ if ! command -v "$claude_cmd" >/dev/null 2>&1; then
|
|
|
210
210
|
exit 1
|
|
211
211
|
fi
|
|
212
212
|
|
|
213
|
-
#
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
LOOP_COUNTER=$(cat "$FULL_EVOLUTION_DIR/.loop_counter")
|
|
217
|
-
else
|
|
218
|
-
LOOP_COUNTER=1
|
|
219
|
-
fi
|
|
220
|
-
|
|
221
|
-
# Check if this is the 4th iteration for megathinking mode
|
|
222
|
-
if [ $((LOOP_COUNTER % 4)) -eq 0 ]; then
|
|
223
|
-
echo -e "\033[33m**** MEGATHINKING MODE ACTIVATED ****\033[0m"
|
|
224
|
-
CLAUDE_MODEL="opus"
|
|
225
|
-
MEGATHINK_PREFIX="megathink: "
|
|
226
|
-
echo "[INFO] Using Claude Opus for architectural thinking"
|
|
227
|
-
else
|
|
228
|
-
CLAUDE_MODEL="sonnet"
|
|
229
|
-
MEGATHINK_PREFIX=""
|
|
230
|
-
echo "[INFO] Using Claude Sonnet for development"
|
|
231
|
-
fi
|
|
232
|
-
|
|
233
|
-
# Increment and save counter
|
|
234
|
-
echo $((LOOP_COUNTER + 1)) > "$FULL_EVOLUTION_DIR/.loop_counter"
|
|
213
|
+
# Always use Claude Sonnet
|
|
214
|
+
CLAUDE_MODEL="sonnet"
|
|
215
|
+
echo "[INFO] Using Claude Sonnet for development"
|
|
235
216
|
|
|
236
217
|
# Create mutation prompt - Claude will edit the file directly
|
|
237
|
-
prompt="
|
|
218
|
+
prompt="Please edit file $output_file to implement the following change for iteration $id: $description
|
|
238
219
|
|
|
239
220
|
There may be extra information in documentation in the $FULL_EVOLUTION_DIR/*.md files.
|
|
240
221
|
|
|
@@ -264,7 +245,7 @@ else
|
|
|
264
245
|
} >> "${LOGFILE}-developer"
|
|
265
246
|
|
|
266
247
|
# Use tee to show output and log simultaneously
|
|
267
|
-
if ! echo "$prompt" | "$claude_cmd" --model $CLAUDE_MODEL -p 2>&1 | tee -a "${LOGFILE}-developer"; then
|
|
248
|
+
if ! echo "$prompt" | "$claude_cmd" --dangerously-skip-permissions --model $CLAUDE_MODEL -p 2>&1 | tee -a "${LOGFILE}-developer"; then
|
|
268
249
|
echo "[ERROR] Claude failed to mutate algorithm" >&2
|
|
269
250
|
update_csv_row "$row_num" "" "failed"
|
|
270
251
|
if should_continue_after_failure; then
|