---
id: 10810
lang: en
title: "Cisco open-sources FAPO: automatic LLM pipeline optimization with diagnosis at every step"
published_at: "2026-07-02 23:20:55"
source_name: "MarkTechPost"
source_url: "https://www.marktechpost.com/2026/06/20/cisco-ai-introduces-fapo-pipeline-aware-prompt-optimization-with-step-level-failure-attribution-and-claude-code-orchestration/"
canonical_url: "https://news.hamidun.com/en/news/10810"
categories: ["healthcare"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Cisco open-sources FAPO: automatic LLM pipeline optimization with diagnosis at every step

> **Краткая суть (BLUF):** Cisco Foundation AI has released the source code of FAPO, a system that automatically optimizes multi-step LLM pipelines. The tool runs on Claude Code: it executes a chain of prompts, finds the step where accuracy drops, proposes fixes at the level of the prompt, the parameters or the chain structure, and checks the result with an independent reviewer.  In Cisco's tests, FAPO beat GEPA in 15 of 18 comparisons.

Cisco Foundation AI has made FAPO publicly available. It is an automatic prompt optimization system that works at the level of an entire pipeline rather than a single request. Claude Code handles orchestration, turning tuning into a fully autonomous loop.

## Why a single prompt is not enough

Most modern AI products are not a single request to a language model but a chain of interconnected steps: one extracts data, a second classifies it, a third reasons over it, a fourth generates the final answer. When overall quality drops, finding by hand the step where accuracy is lost is a slow and unobvious task. Existing prompt optimization systems, including the popular GEPA, treat each prompt in isolation: they do not account for how changing one step affects the inputs and quality of the steps that follow. FAPO is built on a fundamentally different principle: it sees the whole pipeline and optimizes it as a connected system.

## How the optimization loop works

FAPO works in four stages that repeat iteratively:

- **Diagnosis**: the system runs the pipeline on a test set and measures accuracy at each step. This identifies the specific step where quality is lost; the authors call it step-level failure attribution.
- **Variant generation**: for the problem step, FAPO proposes fixes at three levels at once: the prompt (a new wording of the instruction), the parameters (temperature, top-p) and the chain structure (adding or removing a step).
- **Independent validation**: each variant is evaluated by a separate LLM reviewer agent, which decides based only on metrics, free of the bias of whoever made the change.
- **Iteration**: the loop repeats until the target accuracy is reached or the budget of attempts runs out.

Claude Code acts as the orchestrator: it runs diagnosis in sequence, calls the variant generators, passes data to the reviewer and applies the approved changes. All of this happens without human involvement.

## Benchmarks: FAPO vs. GEPA

Cisco compared FAPO with GEPA, one of the leading methods for automatic prompt optimization. The result was convincing: FAPO won 15 of 18 comparisons across "model + task" combinations.

> "The step-level error attribution approach is especially effective where the problem is not localized in a single prompt but smeared across several transitions in the chain," the authors state in the technical documentation.

FAPO's key advantage lies in the multi-step context: GEPA and similar tools look at each prompt separately. FAPO understands that the output of one step is the input of the next, and optimizes the chain with those dependencies in mind. This is critical for agentic systems, where a change to an early step cascades through all the later ones.

## What this means

Cisco has published FAPO under an open license, so the system can be deployed on your own pipelines right now. For teams building multi-step AI agents, it is a way to automate what used to take weeks of manual trial and error. The choice of Claude Code as the orchestration engine is a telling signal: corporate AI tooling is increasingly built on the Claude ecosystem.

---
- **Первоисточник:** [MarkTechPost](https://www.marktechpost.com/2026/06/20/cisco-ai-introduces-fapo-pipeline-aware-prompt-optimization-with-step-level-failure-attribution-and-claude-code-orchestration/)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/10810
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
