Ship a prompt or model change safely
Take a prompt or model change from edit to full rollout with a versioned prompt, an offline eval against the baseline and a monitored staged rollout, and plan a model migration before retirement.
Scenario
In April 2026 Anthropic added one line to Claude Code's system prompt to keep answers short. It passed weeks of internal testing and the evals that were run. A broader eval run later showed a 3% drop in quality, and the line was reverted four days after it shipped.
Anthropic's follow-up: run a broad suite of per-model evals for every system prompt change, and add soak periods and gradual rollouts. A one-line prompt edit is a release.
Explanation
A prompt edit or a new model ID changes behaviour as much as a code change does. Give it the same life cycle.
- Version it. Keep prompts in source control next to the code that sends them, reviewed in a pull request. Call a pinned model ID: each model ID identifies a fixed snapshot, while the aliases some older models have move to newer snapshots. Then behaviour changes only when you change it, and the previous version is one revert away.
- Eval it offline. Run the new version and the current one on the same test set: real inputs, including edge cases, scored against your success criteria. Compare per category, not only the average: a change that helps one kind of input often hurts another.
- Roll it out in stages. Send a small share of traffic to the new version and watch the signals you already monitor (quality, error rate, latency, token spend) next to the current version. Keep the switch in configuration so rollback takes minutes.
- Finish it. Raise to full traffic once the numbers hold. The old version stays as the rollback target until you are sure.
Model retirement is a planned change. A deprecated model still works but has a recommended replacement and a retirement date. A retired model fails every request; nothing redirects it. Anthropic gives at least 60 days' notice for publicly released models. Use that time:
- find every caller (the Console's Usage page exports usage by API key and model),
- run each service's evals on the replacement and fix what regresses,
- roll the new model ID out in stages, well before the date.
Worked example
A support team changes its ticket-triage prompt to stop over-escalating.
Before: someone edits the prompt in an admin panel on Friday. It is live for everyone at once. On Monday refund tickets are going to the wrong queue, and nobody can say exactly what the prompt said on Thursday.
After:
- Prompt v14 is a pull request against v13.
- The eval runs both on 500 labelled tickets. Escalation precision rises from 81% to 90%, but refund routing falls from 96% to 89%.
- The author adds a refund example to the prompt and re-runs: refunds back at 96%, escalation still at 90%.
- v14 goes to 5% of traffic for two days. Queue accuracy, reopen rate and cost match or beat v13.
- v14 goes to 100%. v13 stays the rollback target.
The regression that hit production in the first version was caught in step 2 of the second.