# Where the bottleneck moved after agents wrote Shopify's app

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.

- Language: en
- Published: 2026-11-17
- Tags: dev, shopify, agents, mobile, workflow
- URL: https://devs7ud.io/en/deep-dives/shopify-app-rebuild-agents-en
- Translation (ko): https://devs7ud.io/deep-dives/shopify-app-rebuild-agents.md

## Code got fast, checking got heavy

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.

![An illustration of workers and drones repairing a flying Shopify airplane](/blog-img/shopify-app-rebuild-agents/1.jpg "zoom")

_Image: the lead illustration from the [Shopify Engineering](https://shopify.engineering/shopify-app-rebuild) post_

## What is left when you hand over everything at once

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.

## Feedback loops first

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.

**The path agent-written code takes**

- 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.

## The old app as the spec

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.

## Machines, review, merge

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**

| Bottleneck | What happened | 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 |

_Source: Shopify Engineering, summarised from its app rebuild post._

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.

## The app in numbers

Every figure below is as Shopify reported it in the post.

| 항목 | 값 | 설명 |
| --- | --- | --- |
| Android launch time \(P50\) | 0.87s | Was 1.71 s |
| Android install size | 47.6MB | Was 80.4 MB |
| Android memory \(P50\) | 200MB | Was 470 MB |
| iOS peak memory \(P50\) | 190MB | Was 730 MB |

_Source: Shopify Engineering. All figures are company-reported._

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.

![A chart of Android app download size dropping sharply at one point](/blog-img/shopify-app-rebuild-agents/2.jpg "Android app download size")
_Image: [Shopify Engineering](https://shopify.engineering/shopify-app-rebuild)_

![A chart of Android memory use falling over time, P50 and P75](/blog-img/shopify-app-rebuild-agents/3.jpg "Android memory use")
_Image: Shopify Engineering, a chart from the same post_

![A bar chart of iOS peak memory falling from about 730 MB to around 190 MB](/blog-img/shopify-app-rebuild-agents/4.jpg "iOS peak memory")
_Image: Shopify Engineering, a chart from the same post_

## Three things for a solo studio

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.

1. 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.
2. 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.
3. 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.

## View

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.

## Sources

- [How we rebuilt the Shopify app in 12 weeks \(2026\)](https://shopify.engineering/shopify-app-rebuild) — How Shopify redesigned architecture, tooling and workflow around validation once agents wrote its mobile code
