darwinian-evolver

Evolve prompts, regex, SQL, or code via fitness-based selection.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill automates evolutionary optimization of prompts, regex, SQL queries, or small code snippets using an LLM-driven Darwinian evolver.

Core Features & Use Cases

  • Conduct fitness-based optimization by evolving artifacts (prompts, regex patterns, SQL queries, or code) with lightweight evaluators and mutators.
  • Supports reproducible experiments via trainable and holdout datasets and a driver loop to generate snapshots for analysis.
  • Enables rapid experiments to improve AI artifacts by guiding iterative improvements with feedback from evaluation results.

Quick Start

Provide an initial artifact and run the evolver to optimize it against a defined fitness function.

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 optimization for LLMs?

You can automate prompt optimization by using an LLM-driven Darwinian evolver to iteratively mutate and select artifacts based on fitness evaluation scores. This skill applies evolutionary algorithms to improve prompts, regex, SQL queries, or small code snippets automatically.

What is evolutionary optimization of code and prompts?

Evolutionary optimization is a process where artifacts like prompts or code snippets undergo fitness-based selection using trainable and holdout datasets. Lightweight evaluators and mutators guide iterative improvements, generating snapshots for reproducible analysis and rapid prototyping.

Do I need an OpenAI API key to run evolutionary code optimization?

Yes, you need Python 3.11+ and access to either an OpenAI or OpenRouter API to execute the evolutionary loop. The included scripts, templates, and problem-driving code require this LLM access to generate mutations and evaluate fitness.

How do I optimize regex patterns using an LLM?

You optimize regex patterns by providing an initial artifact and running the evolver against a defined fitness function. The LLM-driven loop evaluates the regex patterns using trainable and holdout data sets, selecting the fittest variations for the next generation.

What's the best way to improve SQL queries through evolutionary algorithms?

The best way to improve SQL queries through evolutionary algorithms is using a Darwinian evolver with lightweight evaluators to apply fitness-based selection. This approach enables rapid prototyping and reproducible experiments by guiding iterative improvements with feedback from evaluation results.

Can I use this evolutionary optimization approach for rapid prototyping?

Yes, evolutionary optimization supports rapid prototyping and research by applying fitness-based selection to artifacts. By using trainable and holdout datasets, you can run reproducible experiments that generate snapshots for analysis and iterative improvement.