ShopifyRemi VanheeProblem & solution
How we rebuilt the Shopify app in 12 weeks (2026) - Shopify
Summary
Shopify rebuilt its mobile app from React Native to native Swift and Kotlin in 12 weeks with 30 engineers organized in pods of two, each owning a product area across both platforms. Agents wrote most of the code, but humans owned architecture, product behavior, and final judgment. The team spent weeks upfront preparing the system around agents: the Reflex architecture, a CLI that can load any screen in milliseconds without a device, and guardrails enforced by CI, lint rules, and architecture.md files. Consistency between iOS and Android was prioritized over platform-specific idioms so that agent output remains reviewable and CI can detect drift. Launch time dropped by about 50% on Android and 14% on iOS, Android memory usage halved, and iOS peak memory dropped by more than 70%.
Context
Shopify’s mobile app had more than 300 screens, home and lockscreen widgets, an Apple Watch app, complications, and Siri Shortcuts. The rewrite was done by about 30 engineers organized in pods of two, each owning a product area across both iOS and Android. Agents wrote most of the code, but humans owned architecture, product behavior, and final judgment.
Approach / What changed
Shopify rebuilt its mobile app from React Native to native Swift and Kotlin in 12 weeks using a pod structure of two engineers per area, the Reflex architecture, a CLI for fast feedback without a device, Helix for checkpoint-based migration, and guardrails enforced by CI, lint rules, and architecture.md files.
Takeaways
Spend time upfront giving agents a fast way to test your app: business logic that runs without a device and a CLI to drive it were foundational for Shopify’s migration speed.
Make architecture executable by encoding rules in examples, architecture.md files, lint rules, tests, and CI failures so agents can discover when they are wrong.
Prefer small checkpoints over big agent-generated PRs because reliable convergence beats a perfect first attempt, and treat review capacity as a real system constraint.
FAQ
Why did Shopify prioritize consistency over platform-specific idioms?
The team prioritized consistency of architecture between iOS and Android so that the same screen exposes the same state, actions, and behavior on both platforms. This makes agent output reviewable, lets one PR contain changes for both platforms, and allows CI to detect drift before a human reviewer finds it.
How did Shopify use the existing app as a spec for agents?
The existing React Native app served as the spec because written specs went out of date almost immediately. Helix reads the reference app, splits the migration into small checkpoints, and verifies each checkpoint against the original app instead of against a long-lived written document.
What guardrails kept agents from producing unmaintainable code?
Guardrails include architecture guidelines, examples, lint rules, divergence checks between platforms, small checkpoints, cross-platform PRs, and agent-first review. CI fails when iOS and Android diverge in ways the architecture doesn't allow, and the system answers whether code follows the architecture, behaves like the existing app, and can be reviewed without reading a giant diff.
Source and freshness
- Source
- shopify.engineering
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.