← Back to patterns
Inline & Contextual
Emerging

Prompt Enhancer

Rewrite the prompt — visibly — before it runs

Instead of running a vague prompt and producing a generic answer, the system rewrites the prompt first — adding structure, scope, and constraints — and shows the rewrite as a diff. The user accepts, edits, or rejects each augmentation before the run starts. No magic prompts behind the curtain.

Metaphor

Editor

Interaction

Pre-flight Rewrite, Diff Review

Use case

Vague Prompts, Repeated Misreads, Onboarding to a New Tool

Failure mode

Hidden Rewriting

Control mechanisms

Suggested Edits · Per-Change Accept/Reject · Final Prompt Preview

Reference examples

Microsoft Foundry Prompt Optimizer · OpenAI Playground Optimize

Interactive Example

The chat default and the pattern, against each other on the same task. The demo is the comparison.

Loading Demo

Preparing the interactive example for this pattern.

The prompt gets rewritten either way. The only question is whether you see it.

Vague prompts produce generic answers, and most users genuinely don't know what shape a good prompt should have. Chat's answer is to rewrite the prompt anyway — silently, inside the system prompt — so the augmentation happens but the user never sees what was added or chooses what to keep. The fix is real; the consent is missing.

Prompt Enhancer surfaces the rewrite as a diff over the original, with per-change accept, edit, or reject and a full preview before a single token is spent. Each augmentation is labelled by the clarity it adds — scope, format, tone, constraint — so the user is editing structure, not trusting magic. Nothing enters the run that the user hasn't seen.

"If the system is going to rewrite your intent, the least it can do is show you the redline first."

DOPE Lens

How this pattern improves AI interaction quality.

DOPETRUSTWORTHYAIAUTONOMY

Directability

Accept, edit, or reject each suggested augmentation independently

Observability

The rewrite is visible as a diff over the original — nothing is added invisibly

PredictabilityPrimary

The final prompt is shown in full before any tokens are spent

Explainability

Each augmentation is labeled with the kind of clarity it adds (scope, format, tone, constraint)

Fit

Where it earns its place.

Use it
when

Many users are not fluent prompters and a transparent rewrite teaches them what good prompts look like.

Avoid
when

The user is already a fluent prompter and the rewriting layer adds friction without value.

In the wild

Where this pattern already ships.

The pattern is shipping but still maturing across products. Entries below show how different teams have approached it; expect variation as the space settles.

Research Frame

Why this pattern exists, and where it breaks.

Vague prompts produce generic answers — but most users do not know what shape a good prompt should have.

Rewrite the prompt as a transparent diff before running, with per-change accept/reject and a final prompt preview.

Chat hides any prompt rewriting inside the system prompt; users cannot see what was added or chose what to keep.

Aggressive rewrites can change the meaning of the original prompt; users may rubber-stamp without reading.

Common questions

What people ask about this pattern.

When should I use the Prompt Enhancer pattern?

+

Many users are not fluent prompters and a transparent rewrite teaches them what good prompts look like.

When should I avoid the Prompt Enhancer pattern?

+

The user is already a fluent prompter and the rewriting layer adds friction without value.

What problem does Prompt Enhancer solve?

+

Vague prompts produce generic answers — but most users do not know what shape a good prompt should have.

Why is chat the wrong fit for this?

+

Chat hides any prompt rewriting inside the system prompt; users cannot see what was added or chose what to keep.