Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Shopify Engineering 13 min read Case study mediumAdept

Tophat: Crafting a Delightful Mobile Developer Experience

Shopify built Tophat, a macOS menu bar app that installs CI-built iOS and Android artifacts from GitHub PRs onto simulators, emulators or real devices with one click, eliminating local branch switching and compilation during manual PR testing ("tophatting"). A lightweight local HTTP server receives links posted by a CI bot pointing at GCS-stored artifacts, and installation steps run in parallel. For real iOS devices it bundles ios-deploy to reach the private MobileDevice.framework, and it signs builds in CI with an Apple Development certificate managed by Fastlane match rather than relying on fragile, undocumented Apple Developer Portal APIs. Zero-setup rollout via the internal Dev tool, a tophatctl CLI and Shipit Mobile integration makes it available to every mobile project by default.

Assumes: iOS code signing basicsAndroid adbCI artifact pipelines

Related posts

  • How we rebuilt the Shopify app in 12 weeks

    Shopify Engineering mediumAdept

    Thirty engineers rebuilt the 300+ screen Shopify mobile app from React Native to native Swift and Kotlin in 12 weeks, with agents writing most of the code. The key work was building a system around the agents: a shared Reflex architecture for iOS and Android that lets ViewModels run headless from a CLI in milliseconds, CI checks that fail on cross-platform drift, and Helix verifying small checkpoints against the legacy app, which served as the spec instead of written documents. As code generation got faster, the bottlenecks moved to laptops, code review, merging and coordination. Shopify answered with remote dev environments, agent-first adversarial review on small dual-platform PRs, a daily loop that turns review comments into rules, agent-driven merge queues, and pod ownership by product area. Launch time dropped about 50% on Android and 14% on iOS, and the Android binary shrank by 40%.

  • We gave AI agents a mobile dev environment

    Shopify Engineering mediumAdept

    Shopify built Remote Dev so its Slack-based coding agent River can build and test iOS and Android apps in parallel on a fleet of remote Macs instead of developers' laptops. Each agent claims a warm Mac (monorepo checked out, apps prebuilt, caches warm) over SSH, plus an Android emulator running on a separate Linux VM because macOS lacks nested virtualization; this cut setup from 30+ minutes to a few minutes. A skill, a CLI wrapping SSH, and observable tmux panes taught River to use the remote machine. Live Preview streams simulators to the browser over WebSockets, and internal evangelism plus a classifier-driven feedback loop raised River's share of merged mobile PRs from 6% to 61%.

  • How GitHub reduced testing time for iOS apps with new runner features

    GitHub Engineering mediumAdept

    GitHub's iOS team cut CI testing time by 60%, from 38 to 15 minutes, by moving to Apple silicon M1 macOS runners (macos-14-xlarge) and splitting a single monolithic build-and-test job into per-module jobs across roughly 60 first-party modules. Small modules finish in 2-3 minutes, and failures are easier to isolate. The team also split each module's CI into separate build and test steps with xcodebuild's build-without-testing and test-without-building to find slow tests. Matching CI and laptop architecture lets engineers reproduce architecture-specific failures locally, and the team fans out 50 concurrent jobs per pull request.

  • How we ship GitHub Mobile every week

    GitHub Engineering mediumAdept

    GitHub Mobile ships weekly iOS and Android releases using a single GitHub Actions workflow that runs every Saturday. It runs four jobs: create a release branch, then build, test, archive and upload to TestFlight via fastlane. It also opens a tracking issue that serves as a release playbook, assigned to the on-call release captain fetched from PagerDuty. The remaining jobs open PRs for raw changelogs (turned into human-written release notes) and for bumping the version number on main. On Monday the captain follows the issue checklist to ship to beta. Hotfixes are cherry-picked into the release branch, which triggers automated rebuilds, and the App Store release goes out after a week of clean beta metrics.

  • Helix: The internal tool powering our Shopify app's native migration

    Shopify Engineering mediumAdept

    Helix is Shopify's internal LLM tooling for rebuilding its 300+ screen React Native app in native Swift and Kotlin. Instead of one-shot generation, it splits each screen into small ordered checkpoints, each gated by CLI-driven behavior tests, a Gemini-based visual comparison against screenshots of the reference app, two context-isolated adversarial code reviews against documented architecture guidelines, and engineer approval. Reviewer feedback is stored in memory so later checkpoints need less oversight, enabling autonomous and parallel runs that produce committed, evidence-backed checkpoints instead of one large diff. The core lesson is to optimize for reliable convergence rather than a perfect first attempt.

The quest for software engineering knowledge.

Look:
Layout: