Big-tech engineering

Shopify Engineering

Engineering posts from Shopify on commerce at scale.

Shopify Engineering · 9 stories

Recent stories

Grouped by topic area, with each story's summary and the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

AI & Machine Learning7 stories

Building secure mobile apps in the agentic era

shopify.engineering · 18 Nov

Artificial Intelligence · Cybersecurity · Mobile · AI Agents

Shopify built an agent-driven mobile security system to keep pace with shipping 11x more code than last year (about 434,000 versus 39,000 changed lines weekly).

It maps each app’s attack surfaces, inventories sensitive items, and assigns verdicts. Reusable skills encode OWASP guidance and lessons from incidents. Agents review changed or new items every weekday, check external security news, and publish updates, while Dispatch scans for and proves vulnerabilities. Together, these controls support secure releases.

Cyber Chaos Monkey: Staying ahead of security threats with AI agents

shopify.engineering · 12 Nov

Artificial Intelligence · Cybersecurity · Software Architecture · AI Agents

Shopify built Cyber Chaos Monkey (CCM), an AI-agent system that attacks its live production infrastructure with ephemeral test credentials to find vulnerabilities before adversaries.

Using source code, threat intelligence, reports, and deployment data, its Discovery component identifies leads and Sandbox agents test them through live requests and iterative exploitation. Tens of thousands of engagements have produced dozens of impactful findings without outages or incidents. Container isolation, credential and egress proxies, strict Rules of Engagement, and a separately aligned judge agent terminate unsafe runs.

Shopify’s generative discovery model

shopify.engineering · 11 Nov

Artificial Intelligence · Deep Learning · Large Language Models · Machine Learning

Shopify deployed a shared generative discovery model jointly trained on search and recommendation data.

It generates product candidates using three-token semantic IDs created with RQ-KMeans, enabling shared representations across billions of products. On the Shop home feed, it lifted orders 7.95%, converters 8.60%, and CVR 9.85%; it improved search OneDCG@10 by 2.1 points overall and 2.7 points for personalized results. Production serving uses LFM2-2.6B, constrained decoding, and multi-token prediction to balance quality and latency.

How we rebuilt the Shopify app in 12 weeks

shopify.engineering · 10 Nov

Artificial Intelligence · Mobile · Software Architecture · AI Agents

Shopify rebuilt its 300-plus-screen mobile app from React Native to native Swift and Kotlin in 12 weeks with 30 engineers, while agents produced most of the code.

The migration depended on shared cross-platform architecture, Helix, Reflex, remote development environments, small checkpoints, automated guardrails, agent-first review, and human approval. Results included faster launches, smaller Android binaries, substantially lower memory use, improved Android crash-free sessions, and an agent-ready codebase, while shifting bottlenecks to machines, CI, review, merging, and coordination.

We gave AI agents a mobile dev environment

shopify.engineering · 22 Oct

Artificial Intelligence · Mobile · AI Agents

Shopify built Remote Dev to give its River AI agent mobile development environments after local laptops were overwhelmed by parallel builds, simulators, and emulators.

Each session gets a warm remote Mac with iOS tooling and an attached Android emulator, enabling autonomous coding, testing, screenshots, recordings, and PR creation. Live Preview streams real-time devices through the browser, removing local setup requirements. Remote Dev cut startup to minutes and helped River’s share of merged mobile PRs rise from 6% to 61%.

How Shopify turns open models into task experts

shopify.engineering · 21 Oct

Artificial Intelligence · Large Language Models · Machine Learning · Performance · AI Agents

Shopify turns open models into task experts for Sidekick by defining quality, optimizing the frontier-agent baseline, selecting an open model, benchmarking inference, and continually post-training on repaired production failures.

For GraphQL, six loops raised NVIDIA Nemotron 3.5 Lightning’s judge score from 37.7 to 74.5, exceeding the frontier model’s 73 after 61,000 healed examples. It responds in 0.87 seconds versus 6.50, is 8× faster at p99, and costs about 90% less to serve, using Shopify-owned weights on its GPUs.

Cross-store product clustering across millions of stores

shopify.engineering · 20 Oct

Artificial Intelligence · Algorithms · Machine Learning · Software Architecture

Shopify built a cross-store clustering system that groups listings for the same real-world product under a global Universal Product Identifier (UPI).

It retrieves candidate pairs with embeddings, scores them through increasingly capable L1, L2, and L3 models, then uses bounded graph components and hierarchical agglomerative clustering with a learned merge rule. Cached scores, prioritized GPU queues, intra-store evidence, and recurring retraining keep clusters precise and current across billions of listings.

General Tech1 story

Reflex: an architecture for building mobile apps with agents

shopify.engineering · 5 Nov

Design Patterns · Mobile · Software Architecture · Testing · AI Agents

Shopify built Reflex, an MVVM architecture for agent-first native mobile development.

It separates UI-free Core modules from platform-specific Swift and Kotlin apps, exposes each ViewModel’s JSON state and actions through Introspection Kit, and lets a CLI drive the same contract headlessly or against real builds. One behavior-test suite runs unchanged on iOS and Android, enforcing parity; more than 1,700 tests complete in about four CI minutes without simulators.

Security1 story

Building Overexposed: understanding application exposure

shopify.engineering · 19 Oct

Authorization · Backend · Cybersecurity · DevOps · GCP

Shopify built Overexposed, a scheduled scanner that identifies internet-facing GKE Kubernetes Ingresses and Cloud Run services, probes them anonymously, and classifies access using deployment data, HTTP evidence, and a reviewed allowlist.

It queries Cloud Asset Inventory rather than configuration repositories, handles authentication at services and load balancers, protects probes against SSRF, and records reasons for six verdicts: exposed, expected, protected, not found, unreachable, or inconclusive. Testing and replay reduced inconclusive Ingress results by about 80%.

Add Shopify Engineering to your Snapbyte.dev digest and receive its posts summarized.Build your digest