Documentation Index
Fetch the complete documentation index at: https://mintlify.com/skydiscover-ai/skydiscover/llms.txt
Use this file to discover all available pages before exploring further.
Quick Start
Using the CLI
The simplest way to run SkyDiscover is with theskydiscover-run command:
initial_program.py- Starting solution (optional for from-scratch generation)evaluator.py- Scoring function that returns metrics
-c, --config- Path to YAML configuration file-s, --search- Search algorithm (topk, adaevolve, beam_search, evox, gepa, openevolve)-i, --iterations- Maximum number of iterations (default: 100)-m, --model- Model name(s), comma-separated (e.g.,gpt-5,gemini/gemini-3-pro)-o, --output- Output directory for results--agentic- Enable agentic mode for codebase-aware generation--api-base- Custom API endpoint URL-l, --log-level- Logging level (DEBUG, INFO, WARNING, ERROR)
Using the Python API
Search Algorithms
topk
Simple top-k selection. Good baseline for quick experiments.
adaevolve
Adaptive multi-island evolution with dynamic search intensity.
beam_search
Beam search with diversity-weighted selection.
evox
Co-evolution of solutions and search strategies.
gepa
Guided evolution with acceptance gating and merging.
openevolve
MAP-Elites with island-based exploration (external package).
CLI Examples
Basic Run
Specify Model and Search Algorithm
Multiple Models
Custom API Endpoint
Agentic Mode
Resume from Checkpoint
Understanding Results
Output Directory Structure
DiscoveryResult Fields
Full Program object with code, metrics, and lineage
The
combined_score from the best program’s metricsSource code of the best solution
All metrics returned by the evaluator for the best program
Score of the initial program (if provided)
Path to the output directory (None if cleanup=True)
Environment Variables
OpenAI API key (or set per-model in config)
Google Gemini API key (alias:
GOOGLE_API_KEY)Anthropic Claude API key
DeepSeek API key
Override the default API base URL (alias:
OPENAI_BASE_URL)From-Scratch Generation
You can omit the initial program to have the LLM generate solutions from scratch:Performance Tips
Parallel Iterations
Parallel Iterations
Speed up discovery by running multiple iterations concurrently:Works best with fast evaluators and sufficient API rate limits.
Cascade Evaluation
Cascade Evaluation
Exit early on low-scoring programs:Implement
evaluate_stage1() and evaluate_stage2() in your evaluator.Checkpoint Regularly
Checkpoint Regularly
Save progress and resume if interrupted:
Next Steps
Writing Evaluators
Learn how to write effective scoring functions
Configuration
Deep dive into YAML configuration options
Model Providers
Set up OpenAI, Gemini, Anthropic, and local models
Monitoring
Watch your discovery run in real-time