How do you test prompt changes before shipping them?
Summary
An engineer building work AI agents finds system prompt edits break unrelated behavior, caught only later. They currently rerun a small saved conversation set and read outputs by hand, and ask what actually works in production: eval tools, LLM-as-judge, or manual checks.
What the comments say
Automate grading of the existing test set: use code checks like string match first, an LLM grader with a detailed rubric for judgment calls, and human grading only where necessary; test the grader's reliability before scaling it.
Compare old and new prompt outputs on the same cases and read only the differences, cutting review from about 40 outputs to 5 diffs; tag cases by behavior (tool use, refusals, formatting, tone) and run each case 2-3 times to catch flaky regressions.
Every production break should become a permanent test case with a one-line pass condition, so after a few months the set is mostly past regressions, which is what catches the next one.
Validate the grader by feeding it an output known to be bad and confirming it fails; a grader that passes everything looks identical to a prompt change that broke nothing.
Give each saved chat a pass condition checkable in code, such as asking for the order ID before calling the refund tool, mock the tools, run both prompts, and review only cases that flip from pass to fail.
Join the discussion
Was this useful to you?
Related
LLM as a judge in production: ship it in shadow mode first
prasad.tech
My Top 10 Eval Papers of 2026
X · omarsar0
Think Before You Prompt: A Four-Step Framework for Working With AI
r/PromptEngineering · Echo_Tech_Labs
How do you make AI agents reliable when they use multiple tools?
r/AI_Agents · Aware-Resource9831
Can public chat data predict real-world AI misalignments?
openai.com