Documentation Index
Fetch the complete documentation index at: https://mintlify.com/EvoMap/evolver/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Theevolve.run() function is the core orchestration engine that manages the entire evolution cycle. It reads session logs, extracts signals, selects genes, executes mutations, and coordinates all evolution phases.
Function Signature
This function is called from the Evolver entry point (
index.js) and does not accept direct parameters. Configuration is managed through environment variables and CLI flags.Configuration
Environment Variables
Name of the agent instance
Enable random drift mode for exploration
Enable continuous loop mode
Enable bridge mode for hand agent integration
Maximum system load threshold (auto-calculated based on CPU cores if not set)
Maximum active user sessions before backing off
Force innovation intent (internal use)
CLI Flags
Enable review mode (pause before applying changes)
Run without making actual changes
Enable random drift mode
Run in continuous loop mode
Return Value
The function returns nothing but performs side effects including:
- Writing to memory graph
- Creating evolution events
- Generating prompts for hand agent
- Recording outcomes and metrics
Execution Flow
Phase 1: Safety Guards
Phase 2: Signal Extraction
Location:src/evolve.js:812
Phase 3: Gene Selection
Location:src/evolve.js:1298
Phase 4: Memory Graph Recording
Location:src/evolve.js:1151
Phase 5: Prompt Generation
Location:src/evolve.js:1400+
Error Handling
Related Functions
- extractSignals() - Extract structured signals from logs
- selectGeneAndCapsule() - Select appropriate gene
- recordSignalSnapshot() - Record signals to memory
- buildMutation() - Build mutation object
- solidify() - Validate and commit changes
Example Usage
Health Monitoring
Location:src/evolve.js:252
Maintenance Operations
Location:src/evolve.js:453