---
title: "ShopGym: Realistic, reproducible sandboxes for shopping agents"
description: "ShopGym turns live storefronts into self-contained, resettable sandbox shops and generates grounded shopping tasks so agents can be evaluated reproducibly."
url: "https://swe.quest/articles/shopgym-realistic-reproducible-sandboxes-for-shopping-agents-9debdd2215041431"
canonical: "https://shopify.engineering/shopgym"
source: "Shopify Engineering"
published: "2026-10-01"
difficulty: "medium"
kind: "Research"
reading_minutes: 6
tags: ["ai-agents","evals","llms","ecommerce","testing"]
---

# ShopGym: Realistic, reproducible sandboxes for shopping agents

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2026-10-01, 6 min read, Research. Original: [https://shopify.engineering/shopgym](https://shopify.engineering/shopgym)

## Summary

ShopGym turns live storefronts into self-contained, resettable sandbox shops and generates grounded shopping tasks so agents can be evaluated reproducibly. ShopArena explores a seed store with planner and browser agents to write an anonymized shop specification, then generates a fictional catalog and storefront in fixed stages. Each stage runs an execution-verification loop of fresh coding agents, rule-based checks and visual browser verification. ShopGuru builds rule-based single-skill tasks and LLM-written multi-step journeys, validated against the shop's actual products and filters. Across 224 tasks in six shops, graph-based analysis showed similar state counts and page complexity to live stores, with fewer connections. Agent success rates on the twins tracked live stores and preserved model rankings on multi-step tasks, though some focused tasks showed larger gaps.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [E-commerce](https://swe.quest/tags/ecommerce.md) (Domains)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)

## Prerequisites

- LLM agents ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- browser automation
- agent benchmarks ([easy posts on Evaluation](https://swe.quest/tags/evals.md?difficulty=easy))

## Keywords

ShopGym, ShopArena, ShopGuru, BrowserGym, Shopify

## Related posts

- [Building production-ready agentic systems: Lessons from Shopify Sidekick](https://swe.quest/articles/building-production-ready-agentic-systems-lessons-from-shopify-sidekick-338be221de1210c1.md): Shopify Engineering · 2025-08-26 · Medium · 6 min read · AI agents, Evaluation, Model training, LLMs
  Shopify's Sidekick merchant assistant outgrew a monolithic system prompt once its tool count passed ~50, so the team moved to just-in-time instructions returned alongside tool results, which kept prompt caches intact and improved maintainability and metrics.
- [Agents are users, so your software needs evals](https://swe.quest/articles/agents-are-users-so-your-software-needs-evals-ae7971006fec5a38.md): Vercel · 2026-11-16 · Medium · 19 min read · Evaluation, AI agents, Testing, LLMs
  Agents act as users of APIs, CLIs, MCP servers and SDKs, so measuring whether they complete tasks correctly requires evals: tests run many times and scored.
- [Harness design for long-running apps](https://swe.quest/articles/harness-design-for-long-running-apps-8e65b1112006c61b.md): Anthropic Engineering · 2026-03-24 · Medium · 23 min read · AI agents, AI for coding, Evaluation, LLMs, Frontend
  A GAN-inspired multi-agent harness separates generation from evaluation so Claude can produce distinctive frontend designs and build full-stack apps autonomously over multi-hour sessions.
- [Ecom-RLVE: Adaptive Verifiable Environments for E-Commerce Conversational Agents](https://swe.quest/articles/ecom-rlve-adaptive-verifiable-environments-for-e-commerce-conversational-agents-62911c439e29af53.md): Hugging Face · 2026-04-16 · Hard · 12 min read · Model training, AI agents, LLMs, E-commerce, Evaluation
  EcomRLVE-GYM extends RLVE from single-turn reasoning puzzles to multi-turn, tool-using e-commerce conversations, offering 8 environments (product discovery, substitution, cart building, returns, order tracking, policy QA, bundle planning, multi-intent journeys) with procedural generation and fully programmatic rewards.
- [The Most Common Questions About Agent Evals, Answered](https://swe.quest/articles/the-most-common-questions-about-agent-evals-answered-40ebbb294f8cf253.md): LangChain · 2026-10-15 · Medium · 15 min read · Evaluation, AI agents, Observability, LLMs
  Agent evals score agent runs to handle nondeterminism, multiple valid answers and variable execution paths: start by reading traces, pick one behavior, build a 10-20 example dataset from real traces, run a baseline experiment, and fold new failures back in.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
