darwinian-evolver

Run an evolutionary search loop to optimize prompts, regex, SQL, or code.

Updated May 20, 2026
One-click install
npx skills add https://github.com/SriRamkunamsetty/SITA2.0-HermesAgent --skill darwinian-evolver-sriramkunamsetty
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: darwinian-evolver
Source: https://github.com/SriRamkunamsetty/SITA2.0-HermesAgent/tree/main/hermes-agent/optional-skills/research/darwinian-evolver
Command: npx skills add https://github.com/SriRamkunamsetty/SITA2.0-HermesAgent --skill darwinian-evolver-sriramkunamsetty

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps developers optimize prompts, regex patterns, SQL queries, or small code snippets by running an evolutionary search loop around a candidate artifact.

Core Features & Use Cases

  • Evolutionary search loop around a candidate artifact (prompt, regex, SQL, or code) to progressively improve performance against a fitness metric.
  • Built-in problem-definition scaffolding (Organism, Evaluator, Mutator) and drivers that drive the loop via CLI or a small Python driver.
  • Includes templates and drivers for practical experimentation (parrot_openrouter driver, custom problem template, and utility scripts).

Quick Start

Run the OpenRouter-based parrot evolution driver to start a small run and inspect results in the 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 optimize LLM prompts automatically using an evolutionary search loop?

To optimize LLM prompts automatically, you can run an evolutionary search loop around a candidate prompt to progressively improve its performance against a defined fitness metric. This requires defining an Organism, Evaluator, and Mutator to drive the optimization.

Can I use this to improve regex patterns and SQL queries?

Yes, you can improve regex patterns and SQL queries by running the evolutionary search loop around those candidate artifacts. The loop progressively mutates and evaluates the regex or SQL to optimize performance against your specific fitness metric.

What do I need to set up before running an evolutionary code improvement loop?

Before running an evolutionary code improvement loop, you need Python 3.11 or higher, git, uv, and access keys for your chosen LLM provider. These dependencies are required to execute the minimal Organism, Evaluator, and Mutator abstractions.

What is the best way to define a custom problem for evolutionary search?

The best way to define a custom problem for evolutionary search is using the built-in problem-definition scaffolding. You implement the Organism, Evaluator, and Mutator abstractions and drive the loop via the CLI or a custom Python driver.

Does the evolutionary search loop work with OpenRouter?

Yes, the evolutionary search loop works with OpenRouter through a provided parrot evolution driver. You can run this OpenRouter-based driver to start a small run and inspect the optimization results in the output directory.

When should I not use an evolutionary search loop for prompt engineering?

You should not use an evolutionary search loop for prompt engineering if your optimization problem cannot be clearly defined by a fitness metric or if you lack the required Python 3.11, git, uv, and LLM provider access keys needed to run the loop.