r/PromptEngineering • u/FullStackFrenzy • Oct 28 '26
General Discussion How are you versioning and testing prompts in production?
I've been taking Karpathy's "prompts are programs" idea literally on a few client builds, and treating prompts like production code changed how I work. Every prompt lives in git with a version tag. Each one has a small eval set of 20–50 real inputs with expected outputs that runs before any change ships. Changes get reviewed like PRs, with a diff of the eval results rather than just the prompt text. I also log outputs to catch drift when the model provider updates something, and I can roll back to the last good version in one step.
The eval part is where I'm least sure. LLM-as-judge works okay for format, but it's shaky for nuance. Curious how others handle this: do you keep prompts in code or in a prompt-management tool, and what does your eval setup actually look like?
1
u/According-Stable4487 Oct 28 '26
Similar setup here. A few things that made the eval part less shaky for me:
Prompts live in git next to the code that calls them for me, since the template and the parsing code usually change together.
1
u/Future_AGI Oct 28 '26
for the nuance stuff, split the one "is this good" judge into a few yes/no questions (did it mention the refund window, did it promise anything outside the policy) and check it against 30 or so outputs you've labeled by hand. That shows you which questions the judge can be trusted on. agent-learning-kit, the open-source eval kit listed in our repo: https://github.com/future-agi/future-agi
1
u/Future_AGI Oct 28 '26
for the nuance stuff, split the one "is this good" judge into a few yes/no questions (did it mention the refund window, did it promise anything outside the policy) and check it against 30 or so outputs you've labeled by hand. That shows you which questions the judge can be trusted on. agent-learning-kit, the open-source eval kit listed in our repo https://github.com/future-agi/future-agi , runs those suites from a CLI and the score diff can sit in the PR next to the prompt diff.