dspy-optimize-anything

Solid

Universal text artifact optimizer using GEPA's optimize_anything API for code, prompts, agent architectures, configs, and more

AI & Automation 78 stars 10 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
63
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# GEPA optimize_anything ## Goal Optimize any artifact representable as text — code, prompts, agent architectures, vector graphics, configurations — using a single declarative API powered by GEPA's reflective evolutionary search. ## When to Use - **Beyond prompt optimization** — optimizing code, configs, SVGs, scheduling policies, etc. - **Single hard problems** — circle packing, kernel generation, algorithm discovery - **Batch related problems** — CUDA kernels, code generation tasks with cross-transfer - **Generalization** — agent skills, policies, or prompts that must transfer to unseen inputs - When you can **express quality as a score** and provide **diagnostic feedback** (ASI) ## Inputs | Input | Type | Description | |-------|------|-------------| | `seed_candidate` | `str \| dict[str, str] \| None` | Starting artifact text, or `None` for seedless mode | | `evaluator` | `Callable` | Returns score (higher=better), optionally with ASI dict | | `dataset` | `list \| None` | Training examples (for multi-task and generalization modes) | | `valset` | `list \| None` | Validation set (for generalization mode) | | `objective` | `str \| None` | Natural language description of what to optimize for | | `background` | `str \| None` | Domain knowledge and constraints | | `config` | `GEPAConfig \| None` | Engine, reflection, and tracking settings | ## Outputs | Output | Type | Description | |--------|------|-------------| | `result.best_candidate` | `str \| dict` | Best optimize...

Details

Author
OmidZamani
Repository
OmidZamani/dspy-skills
Created
5 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category