Most prompt optimization tools treat you like a beginner. They take a blank slate and build something mediocre. Amazon just shipped the opposite. Promptimus optimizes prompts that are already good. It finds the specific failure points and fixes them without touching what works.

Amazon Bedrock rolled this out as a managed service called Advanced Prompt Optimization on May 14, 2026. The research behind it came from Amazon Science. This is not a prototype. It is in production.

The problem with existing optimizers

Prompt optimization is not new. DSPy, GEPA, OPRO, and others have been around for months. But they share a blind spot. They work best when you hand them a terrible prompt and ask them to make it decent.

Enterprise prompts are not terrible. They are carefully crafted by domain experts over weeks or months. They encode HIPAA compliance rules, financial risk tolerances, API schemas, and defect taxonomies. The remaining improvements are tiny and specific. A generic suggestion like "be more creative" does nothing. Random exploration wastes API calls.

Worse, models keep changing. A prompt tuned for Claude 4.2 may underperform on Claude 4.6. Manual reoptimization is expensive and slow. Teams delay model upgrades because they fear regression.

How Promptimus works

Promptimus runs a four-step loop. You feed it four things: the target LLM, your existing prompt template, a small JSONL dataset (20 to 50 samples), and a custom Python metric function. The system does the rest.

Step 1: Evaluate and diagnose

The metric-analyzer AI agent reads your metric function and breaks it into checkpoint functions. These checkpoints decompose evaluation into intermediate steps. For example, the checkpoints might report that 98% of outputs have valid JSON format, 95% have valid schemas, but only 88% have valid values. The problem is instantly localized to value validation.

Step 2: Find root causes

The debugging helper AI agent examines the failing examples alongside passing ones. It identifies the bottleneck checkpoint with the lowest pass rate, collects representative instances, and analyzes common failure modes. Then it produces actionable suggestions like "model outputs descriptive text instead of enum codes, suggest adding explicit constraint."

Step 3: Generate targeted improvements

The metaoptimizer turns the feedback into task-specific strategies. For each strategy, the instruction optimizer builds a prompt candidate that addresses the exact weakness. This one-to-one coupling between strategies and candidates means the system explores the optimization landscape efficiently instead of spraying random changes.

Step 4: Evaluate and iterate

Each candidate runs against the dev set. The best performer becomes the starting point for the next iteration. The loop runs for a user-specified number of iterations, typically plateauing within three to five cycles.

Two modes for different prompt sizes

Promptimus offers standard mode and edit mode.

Standard mode rewrites the entire prompt. This works for short prompts that need major expansion, like a two-line math prompt that needs to grow into detailed reasoning protocols.

Edit mode makes surgical, targeted modifications. For large prompts with 50,000 to 100,000 tokens, a typical iteration produces three to five edits totaling 500 to 1,000 tokens. The rest of the prompt stays untouched. This preserves carefully crafted sections like API schemas and compliance rules. Edit mode matched or beat standard mode on all four multimodal benchmarks in Amazon's tests.

The benchmark numbers

Amazon tested Promptimus against six leading methods across 20 public benchmarks spanning reasoning, math, question answering, text-to-SQL, coding, function calling, instruction following, and multimodal tasks.

Promptimus achieved the best result on 16 of 20 benchmarks and tied on one. Its average score was 0.792 versus 0.765 for the best baseline. The largest gains appeared on tasks with decomposable metrics where the checkpoint system could pinpoint exactly what was failing.

Edit mode reached 90% of its final development score in a median of about 300 metric calls. Both modes typically plateaued within eight iterations, with most improvement concentrated in the first three to five.

Importantly, dev-set gains transferred to held-out test sets. Some baselines matched Promptimus on dev but fell behind on test, indicating overfitting. Amazon attributes this to edit mode's surgical modifications preserving generalizable prompt structure.

Model migration without tears

Promptimus is model-agnostic. It can take a prompt optimized for one model and reoptimize it for another. Amazon tested this across seven target models including GPT-OSS-120B, Claude 4.5 Opus, Nova Pro, Nova Lite, Nova Micro, Haiku 4.5, and Qwen3-235B.

Improvements ranged from 3.18% to 90.27% depending on the task and model pair. For example, a complex API call generation task on GPT-OSS-120B jumped from 0.45 to 0.86 accuracy. A math reasoning task on Claude 4.5 Opus improved from 0.60 to 0.73.

This removes the regression risk that blocks model upgrades. Teams can adopt newer models without rebuilding prompts from scratch.

Real examples from the wild

Competitive programming

A CodeForces coding prompt needed to generate Python solutions from problem descriptions. The original prompt gave the model reasoning actions like ASSESS, ADVANCE, VERIFY, and OUTPUT. The optimized prompt added a strict two-phase structure with five mandatory validation gates, explicit I/O consistency rules, and a fallback rule committing to a slower correct solution over a faster broken one.

The original prompt's generated code used typed C arrays that caused timeout failures on large inputs. The optimized prompt's code passed all test cases.

Construction defect detection

A multimodal agent examined inspection photos to identify construction defects and risk levels. The original prompt was 0.438 accurate. After three iterations of edit mode with 16 dev samples, accuracy jumped to 0.812. The optimized prompt added a role definition, defect categories with examples, a disambiguation section, a decision tree for analysis, and explicit output format requirements.

What this means for prompt engineers

Promptimus shifts the job description. You are no longer tweaking wording by hand. You are defining metrics, curating datasets, and reviewing the optimizer's failure analysis. The creative work moves upstream to metric design and downstream to acceptance testing. The brute-force iteration happens automatically.

The edit mode is the killer feature for production. Most teams have prompts that are too large and too carefully structured to tolerate full rewrites. Surgical modification lets them improve performance without risking silent breakage of compliance rules or API contracts.

Amazon Bedrock Advanced Prompt Optimization makes this available as a managed service. You do not need to run the open-source framework yourself. You submit a job through the AWS console or API, provide your prompt and dataset, and receive an optimized version.

Citations

Suggested title

Amazon Shipped a Prompt Optimizer That Needs Zero Human Input

Word count

1,247

Fact-check notes

  • Verify the exact availability and pricing of Amazon Bedrock Advanced Prompt Optimization in your AWS region before recommending it to readers.
  • The 90.27% improvement figure came from a single task (complex API call generation on GPT-OSS-120B). Typical gains are smaller.
  • The benchmark table compared Promptimus against GEPA, OPRO, MIPROv2, ProTeGi, TextGrad, and GPO. All used Claude Sonnet 4.6 as target model and averaged over five random seeds.
  • Edit mode's 97.3% match success rate for programmatic edits is based on internal Amazon testing and may vary with prompt structure.