Skip to content

Prompts need version control.

Production behavior can change when a prompt changes in place. Keep the history, compare results, and make rollback part of the release workflow.

There is a moment in every LLM engineering team's history when something breaks in production and no one can explain why. The model is the same. The code is the same. The output is different. After an hour of investigation, someone checks the prompt — and there it is. An edit made two days ago, no diff, no record, no way to know what it changed from.

This is the prompt management failure mode. It is completely avoidable and almost universal.

The spreadsheet problem.

Most teams that are early in LLM product development store prompts in spreadsheets, Notion pages, or comments in application code. This is reasonable at the start. The prompts are simple, the team is small, the product is moving fast.

The problem arrives when the team grows, the prompts grow in complexity, and the volume of production AI behavior starts to matter. At that point, the spreadsheet becomes a liability. There are no diffs. There is no history. There is no way to run an eval against the old version and the new version before deploying. There is no rollback path.

A prompt without history is a production incident waiting for a name.

A versioned prompt can live alongside the code that uses it. The important part is the review and release discipline, rather than a particular prompt-management product.

What version control gives you.

Diffs. The most basic thing. Being able to see exactly what changed between the version running in production and the version you are about to deploy. This sounds trivial and is not, because without it, the review process is either skipped or done by comparing two documents side by side, manually, under pressure.

Eval runs before merge. A practical workflow is: branch, edit, run evals, review results, merge. The eval runs compare the proposed version against a golden set of inputs and expected outputs. Regression alerts fire if accuracy drops below a threshold. This turns "I think this edit is better" into "the eval set agrees, or it does not."

Rollback. When something breaks in production — and it will — having a rollback path that is one command instead of a manual archaeology session through a Notion page history is the difference between a five-minute incident and a fifty-minute one.

Multi-model comparison as a forcing function.

An unexpected benefit of side-by-side model comparison: it reveals how model-specific most prompts are. A prompt that works well on Claude often degrades on GPT-4o, not because either model is worse, but because the prompting conventions differ. Anthropic models tend to respond well to explicit structural guidance. OpenAI models have different sensitivities.

Running the same prompt across providers before deployment surfaces this before it becomes a customer-facing problem. It also makes prompt authors more precise — when you know the prompt will be tested against multiple models, you write it more carefully.

The deploy discipline matters most.

The biggest behavioral change comes from release discipline, not the version history or the evals alone. It is the habit of treating a prompt deploy the same way you treat a code deploy. Review required. Eval passing. Merge to main. SDK pulls the merged version automatically.

That habit is the actual product. The software is just what enforces it.

Common questions

What problem does putting prompts under version control solve?

It addresses the failure mode where production behavior changes because a prompt was edited in place with no diff, no record, and no way to know what it changed from. This is described as completely avoidable yet almost universal, and a prompt without history is treated as a production incident waiting for a name.

Why are spreadsheets and Notion pages a poor way to manage prompts?

They work early on when prompts are simple and the team is small, but as prompts grow in complexity and production volume matters, the lack of diffs, history, eval comparison between versions, and a rollback path becomes a liability. Review then gets skipped or done by comparing documents side by side, manually, under pressure.

What does a reviewed prompt deployment look like?

The pattern is branch, edit, run evals, review results, and merge, with eval runs comparing the proposed version against a golden set and regression alerts firing if accuracy drops below a threshold. The core change is treating a prompt deploy like a code deploy, with review required, evals passing, and a one-command rollback instead of manual archaeology through page history.