ShopGym: Realistic, reproducible sandboxes for shopping agents

Mingyu Zhao1 Oct 2026

Problem

Teams that build shopping agents need to test them again and again, but live stores change products, prices and layouts between runs. Bot detection and throttling can also cut runs short. Hand-built test stores are stable, yet they cover only a narrow range of layouts and catalogs. A change in an agent's success rate may then come from the store rather than the agent, and failures are hard to reproduce.

Example from the article: an agent asked to find a jacket within a budget, pick the size, check the return policy and add it to the cart.

Solution in brief

ShopGym turns a live storefront into an anonymized written specification, then generates a fictional, resettable sandbox shop from that specification alone. A second component generates shopping tasks grounded in the shop's catalog, navigation and policies. Success rates in the synthetic shops tracked those in the live stores they mirror.

Questions this case answers
  • How to evaluate a web-browsing agent reproducibly when the live environment is non-stationary and throttles automated clients
  • How to generate a synthetic test environment from a real one so that agent success rates stay comparable
  • How to benchmark a shopping agent repeatedly when live stores change prices, products and layouts?
  • How to build a test shop that keeps the difficulty of a real storefront without copying its brand or catalog?

Tools and methods

  • ShopArena — explores seed storefronts, writes an anonymized shop specification and generates the sandbox shop.
  • ShopGuru — generates benchmark tasks across seven skill categories for each sandbox shop.
  • BrowserGym — agent evaluation framework with accessibility-tree observations, used to evaluate agents.
  • Execution–verification loop — fresh coding agent per step, rule-based checks and a visual check in a browser.
Continue reading — it's free

Google or a one-time email code. No password.