This workflow implements an evolutionary algorithm designed to evolve and refine unstructured text concepts, drafts, and ideas. Unlike code evolution tools, this workflow is intended for improving concepts and unstructured text through recursive mutation, crossover, and selection of the fittest.
The workflow acts as an orchestrator that manages a population of variations. In each cycle, it:
- Evaluates Fitness: Assesses how well each variation meets the defined objectives.
- Selects Elites: Identifies the strongest versions to preserve.
- Applies Mutations & Crossovers: Generates new variations by modifying or combining existing ones.
- Iterates: Repeats the process to progressively enhance the population.
This process allows you to explore a wide search space of ideas and converge on high-quality candidates that align with your specific goals. I've found it particularly useful for refining creative concepts, structuring content, and generating diverse but high-quality variations.
This workflow is composed of a main entry point and several sub-workflows that handle specific parts of the evolutionary cycle.
- Copy the workflow files into your project's
.agent/workflows/directory.evolve-concept.md(Main Workflow)evolve-concept-cycle.md(Evolutionary Cycle)evolve-concept-fitness.md(Fitness Evaluation)evolve-concept-elites.md(Elite Selection)evolve-concept-mutations.md(Mutation Application)evolve-concept-crossovers.md(Crossover Application)
Before running the workflow, you must set up the required folder structure in your project root:
- Create a folder named
evolution. - Inside
evolution, create a subfolder namedprocess.
Your structure should look like this:
/
├── .agent/
│ └── workflows/
│ ├── evolve-concept.md
│ ├── evolve-concept-cycle.md
│ ├── evolve-concept-fitness.md
│ ├── evolve-concept-elites.md
│ ├── evolve-concept-mutations.md
│ └── evolve-concept-crossovers.md
└── evolution/
└── process/
- Trigger the
evolve-conceptworkflow. - First Run Configuration:
- The workflow will ask you to populate
meta-guidance.mdin the/evolutionfolder. This file defines your objectives, fitness criteria, and mutation/crossover rules. - It will also ask you to populate
genesis.mdin the/evolutionfolder. This is your starting concept or draft.
- The workflow will ask you to populate
- Evolution:
- Once configured, the workflow will generate an initial population (e.g., 50 variations) in
/evolution/process. - It will recursively execute the evolutionary cycle (
evolve-concept-cycle) to refine the population.
- Once configured, the workflow will generate an initial population (e.g., 50 variations) in
- Result:
- Upon completion, the best evolved concept will be saved as
result.mdin the/evolutionfolder.
- Upon completion, the best evolved concept will be saved as