Skip to content

Firsthand.today

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.

    — oyren-ai · Reddit
  • 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.

    — useleash · Reddit
  • 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.

    — Loudllama99, Aware_Risk7076 · Reddit
  • 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.

    — ChemicalExcellent463 · Reddit
  • 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.

    — Unable_Dirt_9857, NaiveHome7448 · Reddit

Join the discussion

Was this useful to you?