darwinian-evolver

Optimize prompts, regex patterns, SQL queries, and code snippets via an evolutionary search loop.

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/NITISH-gitbit/hermes-custom --skill darwinian-evolver-nitish-gitbit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: darwinian-evolver
Source: https://github.com/NITISH-gitbit/hermes-custom/tree/main/optional-skills/research/darwinian-evolver
Command: npx skills add https://github.com/NITISH-gitbit/hermes-custom --skill darwinian-evolver-nitish-gitbit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python, git, uv, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a powerful tool for evolving prompts, regex patterns, SQL queries, and code snippets through an evolutionary search loop, helping users optimize their work.

Core Features & Use Cases

  • Evolutionary Search Loop: Utilizes Imbue's evolution loop to optimize code and patterns against a fitness function.
  • Custom Problem Definition: Users can define their own problem by specifying an organism, evaluator, and mutator.
  • Use Case: If you need to optimize a regex pattern for a specific task, this Skill can evolve it through multiple iterations to find the most effective solution.

Quick Start

Run the 'darwinian-evolver' skill to optimize a regex pattern for your specific task.

Frequently Asked Questions about darwinian-evolver

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

FAQPage Schema
How does evolutionary search optimize prompts and regex patterns?

Evolutionary search optimizes prompts and regex patterns by iteratively mutating and evaluating them against a fitness function. This Skill uses an evolution loop to evolve code snippets and SQL queries, selecting the most effective solutions over multiple generations.

Can I define a custom problem for code optimization using this approach?

Yes, you can define a custom problem for code optimization by specifying your own organism, evaluator, and mutator components. This allows you to target specific optimization goals for prompts, regex patterns, SQL queries, or code snippets.

Do I need Python and git to run LLM-driven evolutionary search?

Yes, you need Python >=3.11, git, and an API key for a language model provider to run LLM-driven evolutionary search. These dependencies are required to execute the evolution loop and manage the optimization iterations.

What is the best way to optimize a regex pattern for a specific matching task?

The best way to optimize a regex pattern is to use an evolutionary search loop that evolves the pattern through multiple iterations. By defining an evaluator that tests matching accuracy, the search automatically refines the regex to find the most effective solution.

Are there limitations to using LLM-driven evolutionary search for SQL queries?

LLM-driven evolutionary search for SQL queries requires a defined fitness function to evaluate query performance, meaning you must establish clear evaluation metrics. Additionally, optimization quality depends on the language model provider's API and the mutator logic you configure.