esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

Why Do Prompts Break When You Switch Models?

Why a prompt that worked on one model can change or fail on another, what moves, and how to re-test it, explained simply for your AI interview.

In short

A prompt breaks when the new model reads the same words differently. Models differ in how literally they follow rules, how long they write and how hard they think by default, so every prompt needs a re-test on each model.

11 min readIntermediateCommon · estimateFacts checked 26 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

A prompt is written for one model, and every model has its own habits. Some write longer answers, some follow every rule to the letter, and some think harder by default. So the same words can give a different result on a new model. When we switch, I don't trust the old prompt. I pin the model version, run our fixed test set on the new one, read what moved, and only then re-tune and ship.

What does it mean for a prompt to break, in plain words?

A prompt is a set of instructions written for one reader. When you switch models, the reader changes. The words stay the same, but the new reader has its own habits: how much it writes, how literally it reads a rule, and how hard it thinks before it answers.

Picture a senior claims handler who moves to a new insurer. The handbook is the same, but the new colleague reads it with a different style and a different level of care. The same memo gets a different result, and nobody edited the memo.

A made-up case with rough numbers: a mid-size bank's support assistant answers fee questions, and its prompt was tuned on one model. After a switch, the answers ran about three times as long, and the fee table came back in a new layout that broke the code reading it. The team fixed it by testing the new model before customers saw it.

Key words

Prompt
The instructions and context you send the model with each request.
Model version
A named release of a model. Pin it, so you know exactly what you tested on.
Effort
How hard the model thinks before it answers. Some APIs let you set it.
Test set
A fixed list of real cases with the answer you expect, run again after every change.

Why does the same prompt move between models?

Anthropic's best practices page says its latest models are trained for precise instruction following. It also notes that its newest Claude models answer more concisely than before. OpenAI describes GPT-5 as a model that follows prompt instructions with surgical precision. Anthropic's best practices page also says that where a single model behaves differently, you change the prompt for that model.

  • Length

    Answers change size

    Newer Claude models answer more concisely than earlier ones, so the length a prompt got before can shift.

  • Rules

    Literal reading

    On GPT-5, OpenAI says two clashing rules can do more damage, because the model spends effort reconciling them. The answer can drift.

  • Effort

    Default thinking level

    A request that omits effort runs one level lower on Claude Opus 5.5 than it did on Claude Opus 5.

What moves when the model changes

Your prompt

written for the old model

New model

reads the same words its own way

Three things move

Answer length

longer or shorter than before

Literal reading

rules followed to the letter

Default effort

thinking level set by default

Re-test first

same cases, both models

  1. 1The same prompt is sent to the new model.
  2. 2The model reads it with its own habits, which can shift three things.
  3. 3Those shifts are what the test set is there to catch.
Your prompt goes to the new model unchanged, and the model reads it with its own habits. Length, literal reading and default effort can all move, so the test comes before any ship.

Anthropic's best practices say that the more precisely you explain what you want, the better the result. So the fix is never to hope the words carry over. It is to say exactly what you need, then check it on each model.

How does a clash of two rules break a prompt?

Take a claims triage agent at a mid-size insurer. Its prompt asks for two things: keep every answer under 80 words, and list each policy clause the agent relied on. On the old model both rules fit. Suppose the new model runs long on big claims and sometimes puts a sentence before the decision. That is the kind of break worth testing for before a customer sees it.

The code below replays both models on three made-up claims. It checks two things the team cares about: the decision comes first, and the answer stays under 80 words. The saved answers stand in for live calls, so the output is the same on every run.

Python
# Re-test a claims prompt after a model switch: same cases, same checks, both models.
LIMIT = 80
DECISIONS = ("APPROVE", "REVIEW", "DECLINE")

def check(answer):
    words = len(answer.split())
    if not answer.startswith(DECISIONS):
        return "FAIL: no decision first"
    if words > LIMIT:
        return f"FAIL: {words} words, limit {LIMIT}"
    return "ok"

# Saved answers for three made-up claims, one set per model.
saved = {
    "old": {
        "claim-1041": "APPROVE. Clause 4.2 covers water damage.",
        "claim-1042": "REVIEW. Clause 7.1 needs a repair quote.",
        "claim-1043": "DECLINE. Clause 9.3 excludes flood.",
    },
    "new": {
        "claim-1041": "APPROVE. Clause 4.2 covers water damage. " + "Pay the agreed amount. " * 2,
        "claim-1042": "REVIEW. " + "Clause 7.1 needs a repair quote, and the quote must show labour. " * 8,
        "claim-1043": "Looking at clause 9.3, the flood exclusion applies, so decline.",
    },
}

for model, answers in saved.items():
    for claim, answer in answers.items():
        print(f"{model} {claim}: {check(answer)}")

Output

old claim-1041: ok
old claim-1042: ok
old claim-1043: ok
new claim-1041: ok
new claim-1042: FAIL: 97 words, limit 80
new claim-1043: FAIL: no decision first

The old answers pass. The new model fails two of three: one answer runs to 97 words, and another opens with reasoning instead of the decision. The prompt text stayed the same, and the test shows the break before a customer sees it.

The fix is to remove the clash. Pick one priority, such as the decision first and a short clause list, and say which rule wins when two conflict.

Tip

In an interview, name the cause (the new model reads the same words differently) and the check that catches it: a fixed test set run on both models.

How do you re-test a prompt after switching models?

Treat a model switch like a software upgrade. Anthropic's migration guide for Claude Opus 5.5 says to test in a development environment before switching production traffic.

  1. 1

    Pin the model version

    Write down the exact model you tested on, so you know what changed when the results move.

  2. 2

    Run the same test set

    The same cases and the same checks, on the old and the new model. Keep the set fixed while you test.

  3. 3

    Read what moved

    Look at length, format, the decision and any tool calls. Note each change before you edit anything.

  4. 4

    Remove old workarounds

    Anthropic's Opus 5.5 guide says instructions tuned for Claude Opus 5's behaviour might no longer be needed. Delete them only after the tests pass.

  5. 5

    Ship in steps

    Move a slice of traffic first, and keep the old model as a fallback until the new one holds up.

Re-testing a prompt after a switch

Switch to a new model

same prompt, new reader

Pin and test

pin the version, same test set

Read what moved

length, format, decisions

Re-tune, then ship

only when the test set passes

  1. 1The same prompt goes to the new model.
  2. 2Pin the model version and run the fixed test set on it.
  3. 3Read each change before editing anything, then re-tune and ship once the set passes.
The steps run left to right. Nothing ships until the same test set has run on the new model and each change has been read.
  • “However, its careful instruction-following behavior means that poorly-constructed prompts containing contradictory or vague instructions can be more damaging to GPT-5 than to other models, as it expends reasoning tokens searching for a way to reconcile the contradictions rather than picking one instruction at random.”

    OpenAI, GPT-5 prompting guide

  • “Where a technique names a specific model, treat it as measured on that model and re-check it against your own evals before applying it to another.”

    Anthropic, prompting best practices

What does the interviewer want to hear?

A strong answer covers

  • A plain definition: the same prompt can behave differently on another model.
  • Why: each model has its own habits for length, rules and default effort.
  • The clash problem: two rules that fight make the model spend effort on them.
  • Defaults such as effort can change on a switch, not only the words.
  • The fix in order: pin the version, run the test set, read the changes, re-tune, roll out in steps.
  • An honest limit: no prompt is guaranteed to work unchanged on every model.

Common traps

  • Trap"A better model will fix the prompt."

    BetterA newer model can read the same words differently, so it needs its own test run before it replaces the old one.

  • Trap"The words are the same, so the result is the same."

    BetterThe words are the same, but the reader changed. Test it on that reader.

  • Trap"We only changed the model name, so nothing else moved."

    BetterA new name means a new reader with its own defaults. Re-run the test set before shipping.

Can you spot the clash?

Spot the clash

Your claims prompt is moving to a new model. Which line asks for two things that pull against each other?

Quick check

You moved a prompt to a newer Claude model, and it still reads well. What comes first?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q100How do you test prompts systematically?12 min
  2. Q101What are prompt optimizers (e.g. DSPy)?Coming soon
  3. Q108When do you raise a reasoning-effort setting?10 min
  4. Q109How do you prompt across languages?Coming soon
  5. Q110Where is the line between prompting and fine-tuning?11 min

Learn it in depth

Last updated on 26 November 2026

Switching models and not sure what will break?

I design and build AI products and agents, the interface and the system behind it. Book a short call and tell me which models you are moving between and what the prompt has to do.