@artale/pi-gepa
v1.2.0
Published
Skill scanner and quality scorer for Pi. Scans, scores, and identifies weak skills. Pairs with pi-evolve for mutation.
Readme
pi-gepa
Genetic Evolution for Prompts and Agents. Evolve Pi skills and prompts through mutation, crossover, and selection.
Install
pi install npm:@artale/pi-gepaWhat it does
GEPA applies evolutionary algorithms to prompt/skill optimization:
- Mutate — create variants of a skill with targeted changes
- Crossover — combine strengths of two skills
- Select — evaluate variants against a fitness function
- Evolve — repeat until convergence
Results
Tested on real Pi skills:
canvas-design: −69% token reduction while maintaining qualitypptx: −60% token reductionxlsx: −63% token reduction
Commands
/gepa evolve <skill> — start evolution of a skill
/gepa status — show evolution state
/gepa history — past evolution resultsHow it works
Uses the LLM itself as the mutation operator. Each generation:
- Reads the current skill SKILL.md
- Generates N mutated variants (shorter, restructured, different examples)
- Evaluates each variant on a benchmark task
- Selects the best performer
- Repeats for M generations
The fitness function measures: output quality + token efficiency + instruction clarity.
License
MIT
