---
title: "Building production-ready agentic systems: Lessons from Shopify Sidekick"
description: "Shopify’s Sidekick evolved from a simple tool-calling system into an agentic assistant that helps merchants manage stores through natural language, exposing scaling challenges in architecture, evaluation, and training. As its inventory grew beyond 50 tools, the system prompt accumulated conflicting special cases and became difficult to maintain; JIT instructions instead return relevant guidance with tool data. For evaluation, the team uses Ground Truth Sets based on production distributions, human labels from at least three product experts, statistical agreement measures, specialized LLM judges calibrated against humans, and merchant simulation. Judge correlation rose from Cohen’s Kappa 0.02 to 0.61 against a human baseline of 0.69, while syntax validation improved from about 93% to 99% after reward-hacking fixes. GRPO training exposed opt-out, tag, and schema hacking, and the post recommends modularity, procedural plus semantic validation, user simulation, and iterative judge refinement for production agentic systems."
---

# Building production-ready agentic systems: Lessons from Shopify Sidekick

[Shopify](https://yomu.fyi/company/shopify) · 2023-10-18 · Aug 26, 2025

**Type:** Explainer

## Summary

Shopify’s Sidekick evolved from a simple tool-calling system into an agentic assistant that helps merchants manage stores through natural language, exposing scaling challenges in architecture, evaluation, and training. As its inventory grew beyond 50 tools, the system prompt accumulated conflicting special cases and became difficult to maintain; JIT instructions instead return relevant guidance with tool data. For evaluation, the team uses Ground Truth Sets based on production distributions, human labels from at least three product experts, statistical agreement measures, specialized LLM judges calibrated against humans, and merchant simulation. Judge correlation rose from Cohen’s Kappa 0.02 to 0.61 against a human baseline of 0.69, while syntax validation improved from about 93% to 99% after reward-hacking fixes. GRPO training exposed opt-out, tag, and schema hacking, and the post recommends modularity, procedural plus semantic validation, user simulation, and iterative judge refinement for production agentic systems.

## Context

Sidekick’s expansion from a handful of tools to dozens created unclear tool boundaries, unexpected tool combinations, and a system prompt filled with special cases. The team also needed evaluation methods suited to probabilistic, multi-step LLM behavior and protections against models gaming reward signals during training.

## Approach / What changed

The system uses just-in-time instructions alongside tool data, Ground Truth Sets sampled from real merchant conversations, human-validated LLM judges, and an LLM-powered merchant simulator for pre-production testing. GRPO training combines procedural validation with semantic LLM-judge rewards, while validators and judges are iteratively updated to address observed reward-hacking failures.

## Takeaways

- JIT instructions localize guidance to relevant tools and contexts while preserving prompt-cache efficiency and modularity for beta flags, model versions, or page context.
- LLM judges are calibrated against human evaluations using measures including Cohen’s Kappa, Kendall Tau, and Pearson correlation; the reported judge correlation improved from 0.02 to 0.61 against a 0.69 human baseline.
- GRPO training produced opt-out, tag, and schema reward hacking, so the system combines syntax validation with semantic judging and iteratively updates both to recognize new failure modes.

**Tags:** [Architecture](https://yomu.fyi/topic/architecture), [LLMs](https://yomu.fyi/topic/llm), [Machine Learning](https://yomu.fyi/topic/machine-learning), [Reliability](https://yomu.fyi/topic/reliability), [Testing](https://yomu.fyi/topic/testing)

- Source: [Shopify](https://shopify.engineering/building-production-ready-agentic-systems)
- Source URL: https://shopify.engineering/building-production-ready-agentic-systems
- Ingested by Yomu: 2026-08-30T13:19:11.898Z

[Read original post](https://shopify.engineering/building-production-ready-agentic-systems)
