[Question/Usage] What is the best way of passing arguments to the evaluate.py function?

Author: ai-nikolaiCreated Jul 24, 2026Updated Jul 26, 2026

Just trying to understand how to best pass arguments to the evaluate.py function when invoking openevolve-cli. @codelion

Currently:

bash
 python openevolve-run.py baseline.py \
  evaluate.py \
  --config config.yaml \
  --iterations 10 \
  --output ${EXPERIMENT_NAME}

Desired:

bash
 python openevolve-run.py baseline.py \
  evaluate.py \
  --evaluate_kwargs "{'arg1':'xyz', 'arg2':3.5}" \
  --config config.yaml \
  --iterations 10 \
  --output ${EXPERIMENT_NAME}

Where openevolve-run.py is just:

python
"""
Entry point script for OpenEvolve
"""
import sys
import asyncio
import multiprocessing as mp
from openevolve.cli import main_async

def new_main():
    mp.set_start_method("spawn", force=True)
    return asyncio.run(main_async())

if __name__ == "__main__":
    sys.exit(new_main())

Source: algorithmicsuperintelligence/openevolve