Autonomous multi-agent code evolution system for optimization problems. Use when solving complex optimization problems (packing, geometry, scheduling, search) through evolutionary approaches with multiple independent AI agents. Multi-start hybrid heuristic+SLSQP methods significantly outperform single approaches. Triggers include genetic algorithms, evolutionary optimization, multi-agent problem solving, parameter tuning at scale, AlphaEvolve-style research, or evolving code solutions across ge…
Autonomous multi-agent code evolution system for optimization problems.
Use when solving complex optimization problems (packing, geometry, scheduling, search) through evolutionary approaches with multiple independent AI agents.
Multi-start hybrid heuristic+SLSQP methods significantly outperform single approaches.
Triggers include genetic algorithms, evolutionary optimization, multi-agent problem solving, parameter tuning at scale, AlphaEvolve-style research, or evolving code solutions across generations.
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Agents receive paths to these files but cannot modify them.
Phase 1: Generation Loop (3-7 generations)
Plan Strategies: Design 2-4 different approaches for agents to explore
Spawn Agents: Use Task tool with subagent_type='general-purpose' (15s timeout per agent)
- Each agent gets problem description, their specific approach, and path to evaluator - Agents write solutions to generations/gen{N}/agent{id}.py - Agents run themselves: subprocess.run([sys.executable, agentfile]) - Output: JSON with "score" and "circles"
Evaluate: You run evaluator on agent outputs (agents cannot run this)
Cross-Inspiration: Share winning ideas with next generation agents for inspiration
Prune: Keep only the best 1-2 approaches from previous generation
Archive: Store best solution to generations/archive/
Phase 2: Cross-Inspiration & Pruning
Between generations:
Reference winners: Show agents the best previous solution's strategy
Prune dead approaches: Stop testing approaches that underperform
Mix winning ideas: Combine best techniques from multiple agents
Diversify within winners: Vary parameters (seeds, iteration counts, thresholds)
Prune: Decide which approaches to continue, which to kill
Cross-inspire: Extract winning ideas and share with next agents
Archive best solutions
What Agents Do (Full Autonomy)
Implement their assigned strategy
Write solution code
Self-validate before output
Run themselves and produce JSON output
Cross-Inspiration Strategy
After each generation, extract and communicate:
## What Worked
- Agent X achieved Y% with [strategy description]
- Key insight: [what made it work]
- Code reference: [location or snippet]
## What Failed
- Agent Z's [strategy] only achieved W%
- Likely issue: [root cause analysis]
- Don't repeat: [specific thing to avoid]
## Recommended Evolution
- Agents should build on: [winning strategy]
- Vary these parameters: [list of what to try]
- Combine techniques: [which ideas from multiple winners]
Agents use this to:
Understand what works (cross-inspiration)
Avoid dead ends (prune knowledge)
Focus effort on proven directions
References
Agent spawning: See [references/agent-prompts.md](references/agent-prompts.md)
Evaluator template: See [references/evaluator-template.md](references/evaluator-template.md)