darwinian-evolver

Optimizes prompts, regexes, SQL queries, and code snippets via LLM evolutionary search loops.

1|Updated Jul 31, 2026
One-click install
npx skills add https://github.com/icyzh/hermes-web --skill darwinian-evolver-icyzh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: darwinian-evolver
Source: https://github.com/icyzh/hermes-web/tree/main/optional-skills/research/darwinian-evolver
Command: npx skills add https://github.com/icyzh/hermes-web --skill darwinian-evolver-icyzh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openai, jinja2, and includes scripts (resource) components.

What problem does it solve?

This skill automates the iterative optimization of prompts, regex patterns, SQL queries, and code snippets by applying an evolutionary search loop to find the most effective version based on a defined fitness function.

Core Features & Use Cases

  • Evolutionary Search: Uses an LLM-driven loop to mutate and evaluate candidates against specific success criteria.
  • Custom Problem Definition: Provides a flexible framework to define organisms, evaluators, and mutators for domain-specific optimization.
  • Use Case: If you have a prompt that is failing to consistently extract data from unstructured text, use this skill to evolve the prompt template against a set of test cases until it achieves a high success rate.

Quick Start

Use the darwinian-evolver skill to optimize the prompt template in custom_problem_template.py by running the evolution loop for 5 iterations.

Frequently Asked Questions about darwinian-evolver

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate prompt optimization for unstructured text extraction?

Automate prompt optimization by running an LLM-driven evolutionary search loop that mutates and evaluates prompt candidates against defined test cases until a high success rate is achieved.

What is evolutionary search for code snippets and SQL queries?

Evolutionary search for code snippets and SQL queries is an automated refinement process where an LLM mutates artifacts and evaluates them against measurable fitness criteria to find the most effective version.

Can I use a custom fitness function to evaluate regex patterns?

Yes, you can define custom organisms, evaluators, and mutators to apply domain-specific fitness functions for evaluating and optimizing regex patterns through the evolutionary search loop.

Do I need Python 3.11 and an LLM provider API key to run the evolution loop?

Yes, executing the evolutionary search process requires Python 3.11, git, uv, jinja2, openai, and a compatible LLM provider API key to function properly.

How do I set up a custom problem definition for automated refinement?

Set up automated refinement by modifying the custom problem template to define your specific organisms, evaluators, and mutators, then run the evolution loop for a set number of iterations.

What are the limitations of using LLM-driven mutation for query optimization?

LLM-driven mutation for query optimization requires measurable fitness criteria to evaluate candidates effectively; without clear test cases or success metrics, the evolutionary loop cannot determine improvements.