Problem
Shopify's Sidekick is an LLM assistant inside the merchant admin. As tools were added, one growing system prompt made the agent confuse tools and quality dropped. Testing was informal "vibe testing": a teammate tried it, it looked good, it shipped, and it launched with errors. Chat agents are harder to test than ordinary ML models because answers are open-ended and conversations diverge after the first turn.
Example from the article: a citation format meant only for the help tool leaked into answers from unrelated tools while it lived in the system prompt.
Solution in brief
Tool-specific instructions move into tool responses, so the system prompt stays static. An LLM judge is tuned against conversations labeled by product experts, and a merchant simulator replays production conversations against a candidate with one change. Degraded agent versions, past A/B tests and RL runs then check the judge.
Questions this case answers
- How to validate an automated judge of open-ended conversations against human experts so that it can replace manual review and online tests
- How to keep a tool-using LLM agent reliable as capabilities are added by many teams without conflicting instructions
- How to build an LLM judge that is trusted enough to score a production chat agent?
- How to test a conversational agent change offline when conversations diverge after the first turn?
Tools and methods
- Just-in-time instructions — tool guidance returned in tool results
- Ground truth set — production conversations labeled by experts
- LLM-as-a-judge — prompt tuned to reproduce expert labels
- Cohen's kappa — expert agreement, the judge's ceiling
- Merchant simulator — LLM replaying the goals of a real conversation
- Degradation testing — deliberately bad agent versions
- GRPO (reinforcement learning) — training against the judge
- DSPy — prompt optimization
Google or a one-time email code. No password.