Prompts are code
What it is
A prompt is the text sent to the model: instructions, context and the user's request. In a product, a prompt:
- decides what the feature does, as surely as any function;
- changes often, as the team learns what works;
- can break the feature when a single sentence is changed.
So it is kept in version control, reviewed, tested and released, like code.
Why it matters
A prompt edited straight in a dashboard, with no record and no test, is the most common cause of 'the assistant got worse last week and nobody knows why'. Treating prompts as code gives you a history of every change, someone who reviewed it, and a way to go back.
In the real world: A support lead rewords one instruction to sound friendlier; refund answers quietly stop quoting the policy. With versions, the team finds the change in minutes and reverts it.
Scattering prompt text through the application as string fragments joined together in different files. Nobody can then read the whole prompt that the model actually receives, which is the first thing you need when debugging.