darwinian-evolver

Evolve prompts, regex, SQL, and code via mutation and fitness evaluation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides an end-to-end evolution loop to automatically improve prompts, regex patterns, SQL queries, and small code snippets by iteratively mutating artifacts and evaluating them with a fitness function.

Core Features & Use Cases

  • End-to-end evolution loop: define Organism, Evaluator, and Mutator to drive automated improvements.
  • Flexible artifact support: evolve prompts, regex, SQL, or code blocks through a reproducible workflow.
  • LLM-backed evaluation: leverage a compatible model (via OpenRouter/OpenAI) to score candidates and guide mutations.

Quick Start

Install prerequisites, configure an API key, and run a starter example to begin evolving a prompt or small code artifact.

Frequently Asked Questions about darwinian-evolver

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

FAQPage Schema
How does evolutionary search apply to prompt optimization and code refinement?

Prompt optimization through evolutionary search works by wiring an initial problem, evaluation logic, and mutations into an end-to-end loop. It automatically iterates on prompt or code artifacts, using an LLM to score candidates and guide subsequent mutations for continuous improvement.

How do I set up an automated evolution loop for LLM prompt engineering?

To set up an automated evolution loop for LLM prompt engineering, install the darwinian_evolver package in a Python environment, configure an API key for your chosen LLM provider, and define your initial problem, evaluation logic, and mutations to start the iterative refinement process.

Can I use an OpenAI API key to evaluate mutations and score candidates?

Yes, you can use an OpenAI API key to evaluate mutations and score candidates. The evolution loop leverages a compatible model via OpenAI or OpenRouter to back the fitness function that scores candidates and guides the automated mutation process.

What is the best way to automate regex refinement and SQL query optimization?

The best way to automate regex refinement and SQL query optimization is using an AI-driven evolution loop. By defining specific evaluators for your regex or SQL artifacts, the system iteratively mutates and scores them to maximize functional fitness within a reproducible automated workflow.

Do I need a Python environment and the jinja2 package to run evolutionary searches?

Yes, you need a Python environment and the jinja2 package to run evolutionary searches. The automated evolution loop requires a Python setup along with the darwinian_evolver package and an openai dependency to execute the mutation and evaluation scripts.

What are the limitations of using an AI-driven mutator-evaluator for code iterations?

A limitation of using an AI-driven mutator-evaluator is that it is designed for small code iterations rather than large-scale refactoring. Additionally, it relies entirely on the LLM's ability to accurately score candidates, requiring a well-defined fitness function to guide mutations effectively.