darwinian-evolver

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

Updated May 4, 2026
One-click install
npx skills add https://github.com/Plaidmustache/hermes-nulab --skill darwinian-evolver-plaidmustache
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: darwinian-evolver
Source: https://github.com/Plaidmustache/hermes-nulab/tree/main/optional-skills/research/darwinian-evolver
Command: npx skills add https://github.com/Plaidmustache/hermes-nulab --skill darwinian-evolver-plaidmustache

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automate the iterative improvement of prompts, patterns, queries, and small code blocks using an LLM-guided evolution loop.

Core Features & Use Cases

  • End-to-end evolution: define Organism, Evaluator, and Mutator; drive optimization across iterations.
  • OpenRouter/OpenAI compatibility: run the upstream darwinian_evolver tool via a driver to experiment with different models.
  • Custom problem templates: ship templates and drivers to tailor evolution to your domain.

Quick Start

Run the parrot_openrouter driver to start a three-iteration evolution with your OpenRouter API key.

Frequently Asked Questions about darwinian-evolver

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

FAQPage Schema
How do I optimize prompts automatically using an LLM?

You can optimize prompts automatically by running an LLM-driven evolution loop that applies a fitness evaluator and mutator across multiple iterations to iteratively improve your text. This Skill automates that process using OpenRouter or OpenAI models.

Can I tune regex patterns and SQL queries with LLM evolution?

Yes, LLM evolution can tune regex patterns and SQL queries by defining an Evaluator and Mutator to guide optimization. The loop iteratively mutates and evaluates your patterns or queries to maximize fitness.

How does the LLM-driven evolution loop actually work?

The evolution loop works by defining an Organism, Evaluator, and Mutator, then driving optimization across iterations. The LLM generates mutations, the Evaluator scores fitness, and the best candidates survive to the next generation.

Do I need an OpenRouter API key to run LLM-based prompt evolution?

Yes, you need a provider API key from OpenRouter or OpenAI to run LLM-based prompt evolution, along with Python 3.11+ and the upstream darwinian_evolver tool. The Skill ships a parrot_openrouter driver to connect.

What's the best way to improve small code snippets using evolutionary algorithms?

The best way to improve small code snippets is using an LLM-guided evolution loop that scores code fitness and applies mutations across iterations. This Skill provides custom problem templates to tailor the evolutionary process to your domain.

Can I use different LLM models for the evaluator and mutator in prompt evolution?

Yes, you can experiment with different models for the evaluator and mutator by running the upstream darwinian_evolver tool via the OpenRouter driver. This allows testing various models to find the optimal configuration for your evolution task.