Skip to content

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

Shopify Engineering 9 min read Case study mediumAdept

We gave AI agents a mobile dev environment

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

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

  • AI coding agents on Amazon EC2 Mac: How Cognition scales Devin for macOS

    AWS Architecture Blog mediumAdept

    Cognition runs Devin's macOS workspaces as Apple Virtualization framework guest VMs on bare-metal EC2 Mac Dedicated Hosts across six AWS Regions, starting a fresh VM per session in under a minute with two guests per host as the macOS license allows. Session state persists through a host-side snapshot process exposed to the guest over NBD, since the framework lacks vhost-user. About 90% of idle sessions release their VM and resume from S3 snapshots in seconds. A user-space Ethernet gateway on file-handle attachments avoids pf conflicts with Apple's NAT and enforces per-session network policy. Images are pre-provisioned with permissions to skip TCC dialogs, the live view bounds frame queues and restarts from keyframes to avoid stale video, and Devin drives apps through the accessibility tree rather than screenshot-only computer use.

  • Tophat: Crafting a Delightful Mobile Developer Experience

    Shopify Engineering mediumAdept

    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.

  • Under the River

    Shopify Engineering mediumAdept

    Shopify's Slack-native agent River co-authors one in eight merged PRs, and it rests on two 2024 bets: a single monorepo (World) and Nix-built reproducible environments across dev, CI and production. Underneath sits Aquifer, an internal agent platform built so the session outlives any process. A Postgres-backed append-only event log holds the conversation, the agent harness runs outside a disposable sandbox, and ephemeral session cells are recreated on demand. Agents are shipped as Nix-built profile bundles across interactive, automation and job modes. Lessons for agent infrastructure: decouple the brain from the hands, make agents public and multiplayer so transcripts compound into shared skills, and treat each new agent as a profile rather than a new platform.

  • Remote Development at Slack

    Slack Engineering mediumAdept

    Slack moved webapp development off laptops (where Hack/HHVM, a 30-minute clone and Docker-based setups were slow and brittle) onto short-lived AWS EC2 remote environments accessed through VSCode Remote SSH. A warm pool kept in an Auto Scaling Group syncs with master periodically. A `slack remote-dev -b <branch>` CLI command reserves an instance, detaches it from the ASG, checks out the branch and syncs personal dotfiles from `~/.remote-dev-home`, producing a ready environment in under 90 seconds instead of roughly 12 minutes of bootstrap. Instances terminate on detach or when the branch merges. Upgrading from C5.2xlarge to C5.4xlarge took a single config change, and over 90% of webapp engineers adopted the workflow within months of its October 2021 GA.

The quest for software engineering knowledge.

Look:
Layout: