evolve
Scannednpx machina-cli add skill Q00/ouroboros/evolve --openclawooo evolve - Evolutionary Loop
Description
Start, monitor, or rewind an evolutionary development loop. The loop iteratively refines the ontology and acceptance criteria across generations until convergence.
Flow
Gen 1: Interview → Seed(O₁) → Execute → Evaluate
Gen 2: Wonder → Reflect → Seed(O₂) → Execute → Evaluate
Gen 3: Wonder → Reflect → Seed(O₃) → Execute → Evaluate
...until ontology converges (similarity ≥ 0.95) or max 30 generations
Usage
Start a new evolutionary loop
ooo evolve "build a task management CLI"
Fast mode (ontology-only, no execution)
ooo evolve "build a task management CLI" --no-execute
Check lineage status
ooo evolve --status <lineage_id>
Rewind to a previous generation
ooo evolve --rewind <lineage_id> <generation_number>
Instructions
Path A: MCP Available (check for ouroboros_evolve_step tool)
Starting a new evolutionary loop:
- Parse the user's input as
initial_context - Run the interview: call
ouroboros_interviewwithinitial_context - Complete the interview (3+ rounds until ambiguity ≤ 0.2)
- Generate seed: call
ouroboros_generate_seedwith thesession_id - Call
ouroboros_evolve_stepwith:lineage_id: new unique ID (e.g.,lin_<seed_id>)seed_content: the generated seed YAMLexecute:true(default) for full Execute→Evaluate pipeline,falsefor fast ontology-only evolution (no seed execution)
- Check the
actionin the response:continue→ Callouroboros_evolve_stepagain with justlineage_idconverged→ Evolution complete! Display final ontologystagnated→ Ontology unchanged for 3+ gens. Considerouroboros_lateral_thinkexhausted→ Max 30 generations reached. Display best resultfailed→ Check error, possibly retry
- Repeat step 6 until action ≠
continue
Checking status:
- Call
ouroboros_lineage_statuswith thelineage_id - Display: generation count, ontology evolution, convergence progress
Rewinding:
- Call
ouroboros_evolve_stepwith:lineage_id: the lineage to continue from a rewind pointseed_content: the seed YAML from the target generation (Future: dedicatedouroboros_evolve_rewindtool)
Path B: Plugin-only (no MCP tools available)
If MCP tools are not available, explain the evolutionary loop concept and suggest installing the Ouroboros MCP server:
pip install ouroboros-ai
ouroboros mcp serve
Then add to Claude Code's MCP configuration.
Key Concepts
- Wonder: "What do we still not know?" - examines evaluation results to identify ontological gaps and hidden assumptions
- Reflect: "How should the ontology evolve?" - proposes specific mutations to fields, acceptance criteria, and constraints
- Convergence: Loop stops when ontology similarity ≥ 0.95 between consecutive generations, or after 30 generations max
- Rewind: Each generation is a snapshot. You can rewind to any generation and branch evolution from there
- evolve_step: Runs exactly ONE generation per call. Designed for Ralph integration — state is fully reconstructed from events between calls
- execute flag:
true(default) runs full Execute→Evaluate each generation.falseskips execution for fast ontology exploration. Previous generation's execution output is fed into Wonder/Reflect for informed evolution
Overview
Evolve starts, monitors, or rewinds an evolutionary development loop that iteratively refines an ontology and acceptance criteria across generations. It progresses through Gen 1..N using Interview, Wonder, Reflect, Seed → Execute → Evaluate steps until convergence (similarity ≥ 0.95) or a 30-generation cap.
How This Skill Works
Begin with an initial_context and run an interview to generate a seed, then execute and evaluate. Each generation applies Wonder and Reflect to mutate the ontology and criteria, seeds new content, and optionally executes to feed results back; evolution steps are performed one generation per call via evolve_step. Use --no-execute for ontology-only exploration.
When to Use It
- Starting a new evolutionary loop for a project prompt (e.g., define a task).
- Using fast ontology-only mode to explore options without running execution.
- Checking lineage status to monitor generation count and convergence progress.
- Rewinding to a previous generation to branch and experiment from a past seed.
- Goal is to converge the ontology to ≥0.95 similarity or reach the 30-generation limit.
Quick Start
- Step 1: ooo evolve "build a task management CLI"
- Step 2: ooo evolve "build a task management CLI" --no-execute
- Step 3: ooo evolve --status <lineage_id> or ooo evolve --rewind <lineage_id> <generation_number>
Best Practices
- Define a clear initial_context and concrete acceptance criteria.
- Leverage Wonder to surface ontological gaps and hidden assumptions.
- Use Reflect to propose targeted mutations to fields and constraints.
- Monitor convergence criteria and cap generations to avoid drift.
- Use rewind to safely explore alternative branches and seeds.
Example Use Cases
- Build a task management CLI and converge its ontology and criteria.
- Refine an AI agent's task ontology for autonomous planning.
- Evolve evaluation criteria for a data ingestion pipeline.
- Audit a customer support bot's intents and response constraints.
- Converge a knowledge graph's ontology across domains (e.g., finance, healthcare).