darwinian-evolver

Evolve prompts, regex patterns, SQL queries, and code snippets via an LLM-driven loop.

2|Updated May 22, 2026
One-click install
npx skills add https://github.com/519lab/thoth-agent --skill darwinian-evolver-519lab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: darwinian-evolver
Source: https://github.com/519lab/thoth-agent/tree/main/optional-skills/research/darwinian-evolver
Command: npx skills add https://github.com/519lab/thoth-agent --skill darwinian-evolver-519lab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires darwinian_evolver, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the optimization of prompts, regex patterns, SQL queries, and code snippets by applying an evolutionary search algorithm, allowing users to quickly refine their inputs.

Core Features & Use Cases

  • Evolutionary Search: Utilizes an LLM-driven evolutionary loop to optimize code and other inputs.
  • Custom Problem Definition: Users can define their own problem, including organisms, evaluators, and mutators.
  • Use Case: A developer might use this skill to evolve a regex pattern that perfectly matches a complex dataset.

Quick Start

Run the skill to optimize a regex pattern for a given input string.

Frequently Asked Questions about darwinian-evolver

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

FAQPage Schema
How do I optimize a regex pattern for complex data matching?

You can optimize prompts by running an LLM-driven evolutionary loop that iteratively mutates and evaluates prompt variations against a custom fitness function. This Skill automates the prompt optimization process, generating and testing candidate prompts to maximize your defined evaluation metrics.

How does evolutionary search work for code optimization?

Evolutionary search for code optimization works by treating code snippets as organisms, applying LLM-driven mutators to generate variations, and scoring them with evaluators against a fitness function. The evolutionary loop iteratively selects and mutates the fittest code snippets to improve performance or accuracy.

Do I need Python and git to run the darwinian-evolver Skill?

Yes, you need Python version 3.11 or higher, git, and a language model provider API key to run the evolutionary search. These prerequisites are strictly required to execute the LLM-driven evolutionary loop and manage the optimization environment.

Can I define a custom fitness function to evaluate SQL queries?

Yes, you can define a custom fitness function to evaluate and optimize SQL queries by specifying your own organisms, evaluators, and mutators. The evolutionary search loop will use your custom evaluator to score and iteratively refine the SQL queries for better performance.

What is the best way to automate prompt engineering and refinement?

The best way to automate prompt engineering is using an LLM-driven evolutionary loop that systematically mutates and evaluates prompts against a target fitness function. This approach automates the refinement process, allowing you to optimize inputs without manual trial and error.