How Shopify rebuilt its app as native code with about 30 engineers in 12 weeks. The work that mattered was the structure around agent-written code: one architecture, CI guardrails, the old app as the spec, small checkpoints. Figures are as Shopify reported.
On November 10, Shopify Engineering described how it rebuilt its mobile app. The React Native app became native Swift on iOS and Kotlin on Android, built by about 30 engineers in 12 weeks. The app has more than 300 screens, plus home and lock screen widgets, an Apple Watch app and Siri shortcuts. Agents wrote most of the code, yet the author says the bigger change was around it: the architecture, the tests, the review process and how people work together. This post follows that structure step by step.
Image: the lead illustration from the Shopify Engineering post
Shopify's starting point is that once agents produce a lot of code quickly, checking and controlling it matters more than producing it. Handing an agent a big task in one go gave code that compiled and passed narrow tests but was hard to maintain. So the team spent much of the 12 weeks on a structure that makes agent-written code trustworthy, not on getting better at prompting agents.
Before porting screens, a few engineers built the architecture, tooling and feedback loops. That meant business logic that runs without a device, a Reflex architecture and CLI that load a screen in the terminal in milliseconds, one architecture shared by iOS and Android, and example code and docs for each screen. When code drifts from the pattern, repository guardrails fail it.
- Logic without a device → Screen in the terminal
- Screen in the terminal → Shared architecture
- Shared architecture → CI guardrails (fail on drift)
Shopify put its rules into the workflow and CI, not only into documents. Docs explain why a rule exists, and CI decides whether it was followed. It also matched the shape of state and behaviour across both platforms instead of following each platform's idioms. That lets one PR carry changes for both, and lets an engineer who knows one platform review the other. The author admits some code may look less idiomatic to platform purists.
Writing specification documents first went stale quickly and failed, the post says. The team used the existing React Native screens as the reference instead. A tool called Helix reads an old screen and splits the work into small checkpoints, then checks each one against the original app. Small units converge quickly without needing a perfect first attempt, which is the team's bet over large PRs.
Every PR gets an adversarial first review by an agent against the architecture guidelines before a human looks. People make the final call on intent, fit with the architecture and product behaviour. The checks come down to three questions.
- Does it follow the architecture?
- Does it behave like the existing app?
- Can a reviewer judge the intent without reading a huge diff line by line?
A learning loop closes it. Each day an agent summarised the review comments and fed them into skills and Architecture.md, and change requests per PR gradually fell, Shopify says.
Once writing code got faster, the bottleneck moved. Emulators, compilers and build caches used up laptop resources, and human approval could not keep pace with generation. Work also ran ahead of tickets, so several people sometimes fixed the same bug.
Bottlenecks and Shopify's response
| Machines | Emulators and builds exhausted laptops | Remote dev environments for agents |
| Code review | Approval could not keep up with generation | Review order and PR size redesigned |
| Merge | Rebases, conflicts and flaky tests piled up | Agents help work the merge queue |
| Coordination | Several people fixed the same bug | Pods that own an area, and a loop that hunts crashes every 15 minutes |
A pair of two engineers, called a pod, owned one product area end to end across both platforms and coordinated several agents at once. Agents worked nights and weekends, so a queue of PRs waited for review each morning. The engineer's job moved from implementation toward designing the architecture, writing the patterns agents follow, designing feedback loops and reviewing intent.
Every figure below is as Shopify reported it in the post.
- Android launch time (P50)0.87s
Was 1.71 s
- Android install size47.6MB
Was 80.4 MB
- Android memory (P50)200MB
Was 470 MB
- iOS peak memory (P50)190MB
Was 730 MB
iOS launch time (P50) fell from 0.70 s to 0.60 s, a 14% drop, and Android crash-free sessions rose from 99.66% to 99.98%. Users kept their login and settings through the update.
This part is the author's own summary, not the post's. A 30-person method cannot be copied as it is, but a smaller version fits a one-person studio.
- Do not leave rules only in documents. Make them run through examples, tests and CI. Alone, you can start with linting, type checks and short example code in the repository.
- Do not let an agent produce one big PR. Split it into small checkpoints, and treat a diff size a person can understand as your review capacity.
- Build an environment where an agent can test quickly before anything else, such as logic that runs without a device and screens you can check in the terminal.
The most useful point in this case is that as agents write more code, the hard work moves outside the code. Speed is already solved, and what remains is deciding what to trust and what a person should look at. But this is the company's own account, so costs, failed attempts and reversed decisions barely appear. It also does not show what agent-first review misses. This post is a reading of the source, not a result of applying it.
