darwinian-evolver

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

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

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, or code snippets by automating the search for optimal configurations using an evolutionary loop.

Core Features & Use Cases

  • Automated Optimization: Uses an LLM-driven evolutionary loop to iteratively improve artifacts against a defined fitness function.
  • Flexible Targets: Supports optimization of prompt templates, regex patterns, SQL queries, and small code blocks.
  • Use Case: If you have a prompt that is failing to consistently extract data from messy logs, this skill will evolve the prompt template by testing it against your specific failure cases until it achieves a high success rate.

Quick Start

Use the darwinian-evolver skill to optimize the prompt template in your custom problem script by running the evolution loop with your specified 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 engineering to improve my LLM templates?

Automated prompt engineering uses an LLM-driven evolutionary loop to iteratively refine prompt templates against a defined fitness function. This replaces manual tuning by testing and evolving artifacts until they meet your measurable success criteria.

What is evolutionary optimization for code snippets and SQL queries?

Evolutionary optimization for code snippets and SQL queries applies an automated search process to iteratively mutate and evaluate artifacts. It leverages an LLM to propose improvements and selects the fittest variations based on your specific testing outcomes.

Can I use an LLM to optimize regex patterns for messy log extraction?

Yes, you can use an LLM to optimize regex patterns for messy log extraction by running an evolutionary loop. The system tests mutated regex variations against your specific failure cases, automatically selecting patterns that achieve the highest data extraction success rate.

Do I need Python and an LLM API key to run evolutionary optimization tasks?

Yes, executing the evolutionary optimization process requires Python, git, uv, and an LLM provider API key. These dependencies are necessary to run the automated fitness loop and generate iterative improvements for your artifacts.

What is the best way to fix prompts that fail to extract data consistently?

The best way to fix inconsistent data extraction prompts is to apply an automated evolutionary search. By defining a fitness function based on your failure cases, the system iteratively tests and evolves the prompt template until it achieves a high success rate.

Are there limitations to using an evolutionary loop for prompt optimization?

Evolutionary loop optimization requires clearly defined fitness criteria to evaluate success, and it depends on an active LLM provider API key. Without measurable success criteria for your specific failure cases, the automated evolutionary search cannot effectively refine artifacts.