darwinian-evolver

Optimize prompts, regexes, SQL queries, and code snippets via evolutionary search algorithms.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/THTProtocol/lastochka --skill darwinian-evolver-thtprotocol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: darwinian-evolver
Source: https://github.com/THTProtocol/lastochka/tree/main/optional-skills/research/darwinian-evolver
Command: npx skills add https://github.com/THTProtocol/lastochka --skill darwinian-evolver-thtprotocol

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill allows for the evolution and optimization of prompts, regular expressions, SQL queries, and code snippets using an evolutionary search algorithm.

Core Features & Use Cases

  • Evolutionary Search: Uses a LLM-driven evolutionary search loop to optimize against a fitness function.
  • Custom Problem Definition: Users can define the problem with an organism, evaluator, and mutator.
  • Use Case: For example, evolve a regex pattern to match a complex pattern more accurately, or optimize a SQL query for performance.

Quick Start

Use the darwinian-evolver skill to optimize a regex pattern for matching a specific sequence.

Frequently Asked Questions about darwinian-evolver

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

FAQPage Schema
How do I optimize SQL queries automatically?

You can optimize SQL queries by defining a custom problem with an evaluator and mutator to drive an evolutionary search loop that iteratively improves query performance against a fitness function.

What is evolutionary search for regex optimization?

Evolutionary search for regex optimization uses a LLM-driven loop to mutate and evaluate regex patterns, selecting the fittest organisms over generations to match complex sequences more accurately.

How do I set up a custom problem for code snippet evolution?

To set up code snippet evolution, you must define a Problem structure containing an Organism, an Evaluator to measure fitness, and a Mutator to introduce variations for the search algorithm.

Can I use evolutionary search to improve LLM prompts?

Yes, you can use evolutionary search to improve LLM prompts by treating the prompt as an organism and applying a custom evaluator to optimize its effectiveness against a defined fitness function.

What do I need to define before running evolutionary optimization?

Before running evolutionary optimization, you need to define a complete Problem specification, which includes the initial Organism, an Evaluator for fitness scoring, and a Mutator for generating variations.

Why use an evolutionary algorithm instead of manual regex tuning?

An evolutionary algorithm automates regex tuning by using a LLM-driven mutator to explore variations and an evaluator to score accuracy, finding complex pattern matches faster than manual trial and error.