darwinian-evolver

Evolve prompts, regex patterns, SQL queries, and code snippets via an AI-driven loop.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires darwinian_evolver, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the process of evolving prompts, regex, SQL queries, and small code snippets through an AI-driven evolutionary loop, improving their effectiveness and efficiency.

Core Features & Use Cases

  • Evolutionary Search Loop: Utilizes an LLM-driven loop to optimize prompts, regex, SQL, and code against a fitness function.
  • Custom Problem Definition: Allows users to define their own problem specifications, including organisms, evaluators, and mutators.
  • OpenRouter Integration: Integrates with OpenRouter for flexible LLM usage.
  • Use Case: If you have a prompt that you want to optimize for better performance, you can use this Skill to evolve it using the provided tools and settings.

Quick Start

Install the darwinian-evolver skill and run the built-in parrot example to evolve a prompt:

darwinian-evolver parrot --num_iterations 2 --num_parents_per_iteration 2 --mutator_concurrency 2 --evaluator_concurrency 2 --output_dir /tmp/parrot_demo

Frequently Asked Questions about darwinian-evolver

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

FAQPage Schema
How do I optimize a prompt using an AI-driven evolutionary loop?

To optimize a prompt using an AI-driven evolutionary loop, you use the darwinian-evolver skill to iteratively mutate and evaluate prompts against a fitness function. This improves prompt effectiveness for various administrative and technical text-based tasks.

Can I evolve regex patterns and SQL queries with AI?

Yes, you can evolve regex patterns and SQL queries with AI using the darwinian-evolver skill. It applies an evolutionary search loop to optimize text-based code snippets and queries, improving their performance and efficiency.

What is evolutionary optimization for code and prompts?

Evolutionary optimization for code and prompts is an AI-driven process that iteratively mutates and evaluates text-based assets against a defined fitness function. The darwinian-evolver skill automates this search to improve the effectiveness of prompts, regex, SQL, and code snippets.

Do I need an OpenRouter API key to run the evolutionary search loop?

You need an OpenRouter API key, an Anthropic API key, or an OpenAI API key to run the evolutionary search loop. The darwinian-evolver integrates with these providers to drive the LLM-based mutation and evaluation processes.

How do I define a custom problem for AI-driven code evolution?

To define a custom problem for AI-driven code evolution, you specify your own problem definitions including organisms, evaluators, and mutators within the darwinian-evolver skill. This allows the evolutionary loop to target your specific text-based optimization requirements.

What are the limitations of using an evolutionary loop for prompt engineering?

Limitations of using an evolutionary loop for prompt engineering include the dependency on Python >=3.11, git, and uv, alongside requiring an active API key. The darwinian-evolver also requires defining accurate fitness functions to effectively evaluate text-based mutations.