Most prompt optimizers hand your prompt to another model and return whatever comes back. That can read well and still lose a constraint. PromptFlowEngine takes the opposite approach: it applies a small set of documented transforms, then proves that the result still contains everything the original did.
There are three modes. Conservative normalizes whitespace and removes exact duplicate sentences. Balanced also removes filler and politeness phrases. Structured additionally arranges the prompt into Task, Context, Requirements, Output format, and Input sections and wraps template variables in tags.
Each mode produces a candidate. A candidate is kept only if every original sentence, every extracted requirement, and every protected span (code, quotes, URLs, variables) is still present, and it introduces no new warning. You choose a goal: fewest tokens, highest quality, or a balance. If nothing beats the original, the original wins.