Cognition gives Devin a fresh macOS VM per session on Amazon EC2 Mac

An AWS Architecture blog post published today explains how Cognition extended Devin, its autonomous coding agent, to Apple platforms. Until now most cloud coding agents lived in Linux containers. That works for web and backend code but leaves out the large market of iOS and macOS developers, whose toolchain (Xcode, simulators, code signing) only runs on macOS. Cognition's answer is a disposable macOS virtual machine per Devin session, hosted on EC2 Mac bare metal instances.
The mechanism has four pieces:
- **Disk snapshots** let a session start from a known-good image quickly instead of reinstalling Xcode each time.
- **Prepared guest images** bake in toolchains and dependencies.
- **A user-space network gateway** mediates the VM's traffic, which isolates agent activity and keeps it controllable.
- **Accessibility-based control** lets Devin drive GUI applications the way an assistive tool would, for tasks a CLI can't reach, such as clicking through a simulator.
Because each session is fresh, one task can't poison the next, which is a key property for autonomous agents that install packages and run untrusted code.
The post fits this week's theme of giving coding agents real, isolated machines. AWS also added privileged mode to Bedrock AgentCore runtimes, and Matt Wood recently introduced Nitro Sandboxes for agent-executed code. OpenAI's Codex, Google's Neon-powered tooling and xAI's Grok Build all compete for the same agentic-engineering budget, but platform coverage like macOS is a differentiator.
The caveats are cost and capacity. EC2 Mac hosts carry minimum allocation periods and are pricier than Linux instances, so per-session VMs only make sense with dense packing. Accessibility-driven UI control is also slower and more brittle than API-level automation. Watch for re:Invent (Nov 30–Dec 4) announcements that broaden Mac capacity for agent workloads.