Skip to content

Prompt-Rewrite Discipline on Cross-Generation Model Migration

On a cross-generation migration, discard the inherited prompt stack, rebuild the smallest prompt that holds the product contract, then re-tune four axes against representative examples.

When the Discipline Applies

Both OpenAI and Anthropic now make this an explicit, in-product recommendation, bounded to cross-generation hops. OpenAI's "Using GPT-5.5" guide states it verbatim:

To get the most out of GPT-5.5, treat it as a new model family to tune for, not a drop-in replacement for gpt-5.2 or gpt-5.4. Begin migration with a fresh baseline instead of carrying over every instruction from an older prompt stack. Start with the smallest prompt that preserves the product contract, then tune reasoning effort, verbosity, tool descriptions, and output format against representative examples (OpenAI: Using GPT-5.5).

Anthropic reaches the same conclusion: "Claude Opus 4.7 interprets prompts more literally and explicitly than Claude Opus 4.6... A prompt and harness review may be especially helpful" (Anthropic: Migration guide). The discipline applies when the successor changes how it reads prompts — not for every model-ID swap.

Rewrite vs. Patch-Forward

OpenAI's openai-docs skill classifies upgrades into three buckets (OpenAI skills upgrade-guide.md):

Class Choose when Action
model string only Minor-version successor, prompts already short and task-bounded, no strict output-shape dependency Replace the model string, keep prompts unchanged, run the regression eval
model string + light prompt rewrite Strict output shape, scaffolded prompts, observed verbosity or density change, tool-heavy or multi-agent flow Replace the string, rewrite prompts tied to the workflow risk, leave the rest
blocked Upgrade requires API-surface changes, parameter rewrites, or tool-handler rewiring Report the blocker; do not improvise

Cross-generation hops sit in the middle bucket by default; minor-version successors sit in the first. Anthropic aligns: "Claude Opus 4.7 should have strong out-of-the-box performance on existing Claude Opus 4.6 prompts and evals" (Anthropic: Migration guide) — the rewrite is conditional on observed drift, not assumed.

The Smallest Prompt That Preserves the Product Contract

The product contract is the externally observable behavior the agent owes the user: input domain, output shape, tool-call discipline, refusal posture, latency envelope. The smallest prompt produces it without inherited compensation layers.

Old prompts encode workarounds for prior-generation defaults — verbosity controls, status-message scaffolding, redundant examples to force generalization. Claude Opus 4.7 "will not silently generalize an instruction from one item to another, and it will not infer requests you didn't make" (Anthropic: Migration guide), so those workarounds become noise or misfire. Strip first: "Re-baseline response length with existing length-control prompts removed, then tune explicitly."

The Four-Axis Tuning Order

OpenAI names the order: reasoning effort → verbosity → tool descriptions → output format (OpenAI: Using GPT-5.5). The order is not arbitrary.

graph TD
    B[Smallest prompt + product contract] --> E[1. Reasoning effort]
    E --> V[2. Verbosity]
    V --> T[3. Tool descriptions]
    T --> O[4. Output format]
    O --> R[Representative-example eval]
    R -->|Regression| E
  1. Reasoning effort sets computation depth before anything downstream is observable; tuning later axes first reads signal off the wrong substrate. Anthropic: "start with the new xhigh effort level for coding and agentic use cases, and use a minimum of high effort for most intelligence-sensitive use cases" (Anthropic: Migration guide). See Reasoning Budget Allocation.
  2. Verbosity shapes length and density. Higher effort lengthens output, so verbosity prompts written before effort is fixed over-correct ("to decrease verbosity, add: 'Provide concise, focused responses...'" — Anthropic: Migration guide).
  3. Tool descriptions calibrate against the literal-interpretation profile, since cross-generation models shift tool-call frequency and subagent defaults: "Claude Opus 4.7 tends to spawn fewer subagents by default... give Claude Opus 4.7 explicit guidance around when subagents are desirable" (Anthropic: Migration guide).
  4. Output format is fixed last: constraints surface most clearly once the stack below is stable, and re-tuning against an unstable lower stack locks in transient artifacts.

The Representative-Example Coupling

A rewrite without an eval set degenerates into vibes. Both vendors require representative examples as the tuning surface — Anthropic: "Review prompts for the behavior changes above (response length, literalism, tone, progress updates, subagents, effort calibration, tool triggering...)" (Anthropic: Migration guide). The eval set must predate the rewrite, or a team cannot tell whether drift came from the new model, the rewrite, or their interaction. Pair it with Golden Query Pairs Regression and the operational wrapper in Model Deprecation Lifecycle.

When This Backfires

  • Minor-version successor with no eval drift. Where the regression eval shows no behavioral change, rewriting from a fresh baseline discards working prompt-eval coupling for no measured gain. OpenAI's upgrade-guide recommends model string only here (OpenAI skills upgrade-guide).
  • No representative example set. Without evals, the four-axis tuning has no signal to optimise against and the rewrite produces unmeasured prompt churn.
  • Provider-managed harness. For Claude Managed Agents, "no changes beyond updating model name are required" (Anthropic: Migration guide). Copilot consumer tiers route users to successors automatically.
  • Audited or change-controlled prompts. Prompts pinned by a regulatory regime, security review, or external sign-off cannot be rewritten on every cross-generation hop without re-running the audit. The certification cost dominates the tuning gain.

Example

Anthropic's migration checklist for Opus 4.6 → 4.7 codifies the four-axis rewrite as concrete tasks (Anthropic: Migration guide):

- [ ] Re-tune max_tokens to account for the updated tokenization.
- [ ] Re-baseline response length with existing length-control prompts
      removed, then tune explicitly.
- [ ] Review prompts for the behavior changes above (response length,
      literalism, tone, progress updates, subagents, effort calibration,
      tool triggering, cyber safeguards, high-resolution image handling).

Anthropic's /claude-api migrate skill and the openai-docs migrate this project to gpt-5.5 skill both automate the model-string swap and produce a manual-verification checklist for the prompt review (Anthropic: Migration guide; OpenAI skills upgrade-guide). Tooling handles mechanical edits; the prompt rewrite is a human review against representative examples.

Key Takeaways

  • Cross-generation hops are not drop-in replacements; minor-version successors usually are. Classify the upgrade before deciding to rewrite.
  • The smallest prompt that preserves the product contract is the rewrite target — strip inherited compensation layers first, re-tune second.
  • The four-axis order is reasoning effort → verbosity → tool descriptions → output format. Tuning out of order locks in transient artifacts from unstable lower stages.
  • A representative example set must predate the rewrite. Without it, the team cannot tell whether output drift is from the model, the rewrite, or their interaction.
  • Both OpenAI and Anthropic ship in-product migration tooling that automates the mechanical edits and explicitly defers the prompt review to a human pass.
  • Provider-managed harnesses, change-controlled prompts, and stable-eval minor-version successors are the conditions under which patch-forward beats rewrite.
Feedback