New Tool Radar

AI Agents & Automation

How to Compare Two Agent Runs With Two Prompts on the Same Input

Compare two agent prompts on the same input and the same rubric, so the better prompt wins on evidence, not on feeling.

Schematic with three steps: Freeze the input and the rubric; Run both prompts and score both outputs; Keep the winner and note why it.

Prompt changes are easy to make and hard to judge: a new prompt feels better because it is new, not because it is better. The honest comparison runs both prompts on the same input, scores both outputs with the same rubric, and keeps the winner. LangSmith experiments do this at scale, scoring runs from a dataset with the same evaluators, and the same discipline works by hand: same input, same test set, same rubric, and the same person scoring both. Change one thing at a time, or you will not know which change helped.

What you need

  • Two prompts to compare: the current one and a changed one
  • A test input with a known correct answer
  • A rubric to score both outputs with

Step 1: Freeze the input and the rubric

Pick the test input and the rubric, and use the same ones for both prompts. A comparison with different inputs or different rubrics proves nothing.

Step 2: Run both prompts and score both outputs

Run the current prompt and the changed prompt on the same input, then score both outputs with the rubric. Record both scores, not just the winner.

Step 3: Keep the winner and note why it won

Keep the prompt with the higher score and write down which rubric criteria it won on. If the scores tie, keep the shorter prompt.

Worked example: synthetic prompt comparison

The table below is a synthetic example. It shows the expected result of the prompt comparison; no agent was run.

Prompt Rubric score Winner?
Current prompt 3 of 4 No
Changed prompt 4 of 4 Yes
Changed prompt wins on Citations Pass
Scores recorded Yes Pass

Expected result (UNTESTED). the changed prompt scores 4 of 4 against the current prompt’s 3 of 4, winning on citations, and both scores are recorded. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Change one thing at a time, or you will not know which change helped.
  • One input proves little; repeat the comparison on the full test set before switching.
  • The same person should score both outputs, with the same rubric.
  • A prompt that wins on one input can lose on the next, so check the whole set.

Sources

See all