darwinian-evolver

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill solves the challenge of manually tuning prompts, regex patterns, SQL queries, or code snippets by automating the search for optimal versions using an evolutionary loop.

Core Features & Use Cases

  • Automated Optimization: Uses an LLM-driven evolutionary search loop to iteratively improve artifacts based on a defined fitness function.
  • Custom Problem Definition: Provides a flexible framework to define organisms, evaluators, and mutators for domain-specific tasks.
  • Use Case: If you have a prompt that is failing to consistently extract data from unstructured text, this skill can evolve the prompt template by testing it against a set of training examples and refining it based on failure cases.

Quick Start

Use the darwinian-evolver skill to optimize the prompt template in custom_problem_template.py by running the driver script with your specific fitness criteria.

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 extracting data from unstructured text?

Automated prompt optimization is achieved by using an LLM-driven evolutionary search loop to iteratively test and refine prompt templates against a defined fitness function. This skill evaluates failure cases from training examples to evolve more effective extraction prompts.

What is an LLM-driven evolutionary search loop for code and query refinement?

An LLM-driven evolutionary search loop is an automated optimization method that iteratively mutates and evaluates artifacts like code snippets and SQL queries. It selects the fittest variations based on a custom-defined evaluator to progressively improve heuristic performance.

How do I optimize SQL queries and regex patterns using an evolutionary approach?

To optimize SQL queries and regex patterns, define custom organisms, evaluators, and mutators within a flexible framework. The evolutionary loop then applies these domain-specific fitness criteria to iteratively refine the patterns and queries for better performance.

Do I need OpenAI and Jinja2 to use this automated prompt engineering skill?

Yes, this automated prompt engineering skill requires the OpenAI dependency for the LLM-driven evolutionary loop and Jinja2 for rendering prompt templates. You also need Python to execute the driver scripts and define custom problem templates.

Can I define custom fitness functions for domain-specific code improvement?

Yes, you can define custom fitness functions for domain-specific code improvement by specifying custom evaluators and mutators. This allows the evolutionary search loop to iteratively refine artifacts based on your exact optimization criteria.

What are the limitations of using evolutionary search for automated prompt engineering?

The main limitation of evolutionary search for automated prompt engineering is its reliance on measurable fitness functions. If your optimization criteria cannot be quantitatively evaluated against training examples, the mutator loop will lack the feedback needed to iteratively refine artifacts.