darwinian-evolver

Evolve prompts, regex, SQL, or code via an LLM-driven mutation loop.

150|25|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/Devsoul2026/Hermes-One-Click --skill darwinian-evolver-devsoul2026
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: darwinian-evolver
Source: https://github.com/Devsoul2026/Hermes-One-Click/tree/main/hermes-agent/optional-skills/research/darwinian-evolver
Command: npx skills add https://github.com/Devsoul2026/Hermes-One-Click --skill darwinian-evolver-devsoul2026

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The Darwinian Evolver enables end-to-end optimization of prompts, regex patterns, SQL queries, or small code blocks by running an evolution loop driven by LLMs, allowing rapid, automated improvement of artifacts.

Core Features & Use Cases

  • Drives a complete Mutator/Evaluator workflow with Organism, Problem, and EvolveProblemLoop to iteratively refine artifacts.
  • Includes built-in OpenRouter/Parrot-style drivers, templates for problem definitions, and guidance for custom problems.
  • Supports experimentation with different hyperparameters, evaluation data, and failure patterns to surface robust improvements and guard against overfitting.

Quick Start

Run the built-in parrot example by executing the evolution loop with uv run darwinian_evolver parrot and customize the iteration count and output directory.

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 engineering for iterative improvement?

You can automate prompt engineering by running an LLM-driven evolution loop that iteratively mutates and evaluates prompts against defined criteria to surface robust improvements automatically.

What is an evolution loop for optimizing code and regex patterns?

An evolution loop for code and regex optimization uses LLMs to apply mutator and evaluator workflows, repeatedly refining artifacts like SQL queries or small code blocks until optimal performance is achieved.

Do I need Python and an LLM API key to run evolutionary mutator workflows?

Yes, running evolutionary mutator workflows requires Python, an active LLM provider API key, and the darwinian_evolver tools to execute the defined Problem with Organism, Evaluator, and Mutator components.

How do I set up a custom problem definition for prompt mutation?

To set up custom prompt mutation, you configure a Problem definition using provided templates, specify your Organism, Evaluator, and Mutator logic, then execute the EvolveProblemLoop with your LLM driver.

Can I use OpenRouter drivers to evolve SQL queries automatically?

Yes, built-in OpenRouter-style drivers support the automated evolution of SQL queries by passing them through the iterative LLM mutation and evaluation workflow alongside your custom evaluation data.

What are the limitations of using LLM-driven evolution for code optimization?

A key limitation of LLM-driven code evolution is the risk of overfitting artifacts to specific evaluation data, requiring careful hyperparameter experimentation and failure pattern analysis to guard against degraded generalization.