Cisco AI has open-sourced a new system called FAPO that automatically improves multi-step LLM pipelines from initial prompts to target accuracy. The tool, built around Claude Code agents, evaluates, identifies failure types, generates alternatives, validates them, and repeats the cycle until the pipeline performs well enough.
FAPO stands for Fully Automated Prompt Optimization and is available under an Apache 2.0 license. It supports OpenAI, Baseten, and SageMaker as providers. Users supply a dataset and a basic prompt; the framework handles the rest, including scaffolding the chain and scoring function.
The optimization process works at three levels: first tweaking prompts, then adjusting parameters like retrieval count or temperature, and finally altering the chain structure (e.g., adding a self-reflection step). Failures are categorized into four types—retrieval, cascade, format, and reasoning—which guide what to change next.
In Cisco's internal benchmarks, FAPO outperformed GEPA (a state-of-the-art prompt optimizer) on 15 out of 18 model-benchmark comparisons. On two benchmarks where FAPO escalated to structural changes, the average accuracy gain was +33.8 percentage points. The only benchmark where GEPA led was AIME, but the difference was within sampling noise.
Guardrails prevent overfitting: only training data is inspected during optimization, variants are stored as immutable files, and an independent reviewer checks every proposal before execution.