Apple WWDC 2026: Xcode 27 Agent Mode and Foundation Models Get a Major Developer Upgrade
TL;DR
At WWDC on June 8, Apple announced Xcode 27 with an autonomous Agent Mode that lets coding agents interact with the iOS simulator, write and run tests, and self-validate fixes. The Foundation Models framework adds image input, a Python SDK, a new Core AI framework for running full local LLMs on Apple Silicon, and an fm CLI for on-device and Private Cloud Compute access from the terminal. Developers with fewer than 2 million App Store downloads can access Apple Foundation Models running on Private Cloud Compute at no cloud API cost, per Apple's press release.
Agent Mode
Xcode 27's new autonomous coding loop — agents write/run tests, interact with the iOS simulator via Device Hub, and self-validate fixes
32K
Context window for Private Cloud Compute sessions in Foundation Models, with configurable reasoning levels (light or deep)
<2M downloads
App Store Small Business Program threshold for free Private Cloud Compute access — no cloud API cost, per Apple's June 8 press release; quota limits not yet published
fm CLI
New macOS 27 command-line tool for on-device and Private Cloud Compute model access from the terminal — no API key required
Agent Mode turns Xcode into an autonomous coding loop. Xcode 27 introduces Agent Mode, which integrates coding agents — from Anthropic, Google, and OpenAI — directly into the development workflow. Agents get interactive planning, multiturn Q&A, and a canvas that renders Markdown alongside code changes and previews. Critically, agents can validate their own work: they write and run tests, use Playgrounds, check previews, and interact with the iOS simulator via a new Device Hub. The result is a closed feedback loop where the agent proposes a fix, exercises it against a running simulator, and iterates — without the developer manually switching contexts.
This is direct competition for AI coding tools like Cursor and GitHub Copilot Workspace that have been building agentic coding loops in the browser or VS Code. Apple's version is native to Xcode, has first-party simulator access, and ships the Anthropic, Google, and OpenAI agent integrations as built-in options — no third-party extensions required. Apple notes support for Model Context Protocol (MCP) and a new Agent Client Protocol, so custom integrations are also on the table.
Foundation Models gains image input and a model abstraction layer. The on-device Foundation Models framework now supports vision — developers can attach UIImage, NSImage, CGImage, Core Image, or CoreVideo pixel buffers directly in a session prompt. The framework also introduces a new `LanguageModel` protocol that lets local and server models back the same `LanguageModelSession`, meaning you can swap between on-device, Private Cloud Compute, and third-party frontier models (Anthropic and Google ship Swift packages for this) without rewriting your inference code. Private Cloud Compute sessions now expose a 32K context window with configurable reasoning levels (light or deep) and per-token usage tracking including cached and reasoning tokens.
Core AI framework: run full LLMs locally on Apple Silicon. New at WWDC is a Core AI framework — Apple's description is "the best way to run models on device," optimized for Apple Silicon's unified memory and Neural Engine to support full-scale, open-source LLMs. Two implementations ship with it: `CoreAILanguageModel` and `MLXLanguageModel` for local open-source models. The framework's core layer is open-sourced and runs wherever Swift runs, including Linux servers, giving teams the option to use the same model abstraction layer server-side.
The `fm` CLI brings on-device models to the terminal. macOS 27 ships an `fm` command-line tool that exposes both on-device and Private Cloud Compute models without any account setup, API keys, or auth. `fm chat` opens an interactive session; piping into `fm` enables summarization, extraction, or content generation in shell scripts. For developers building data pipelines or automation, this is a meaningful addition — on-device inference from the terminal, private by default.
A new Python SDK targets data scientists and researchers. The Foundation Models framework now ships a Python SDK (`apple_fm_sdk`) that exposes the same on-device model as the Swift API. It covers model availability checks, session creation, and structured response generation. This is aimed squarely at the Python ML workflow — data scientists and researchers who want to evaluate or prototype against Apple's on-device models without switching to Swift.
Small Business Program developers get free Private Cloud Compute access. Apple's press release states that developers with fewer than 2 million total first-time App Store downloads can access the next generation of Apple Foundation Models running on Private Cloud Compute at no cloud API cost. Apple has not published a per-token quota, rate limits, or what happens when usage exceeds any unpublished threshold — so treat this as a free tier with unspecified limits until Apple's developer documentation is more explicit.
New system tools round out the release. The framework ships vision-backed system tools — `BarcodeReaderTool` and `OCRTool` — and a Spotlight-powered search tool that enables fully local RAG (retrieval-augmented generation) without a third-party vector database. A new Swift Evaluations framework lets teams measure and quantify the accuracy of their intelligence features, which matters when agent-assisted features ship to production users.
Why It Matters
Apple is closing the gap between AI coding tools and native iOS/macOS development. Until now, agentic coding workflows (agent proposes change → runs tests → iterates) lived in third-party tools like Cursor or Copilot Workspace, and they had no first-party simulator access. Xcode 27's Agent Mode changes that: the loop is native, the simulator is in scope, and Anthropic, Google, and OpenAI agents are built in. Separately, the Foundation Models framework is now a genuine on-device inference stack — image input, full LLM support via Core AI, a Python SDK, and a terminal CLI. For indie developers and small teams in the App Store Small Business Program, free Private Cloud Compute access removes a real cost barrier for building AI-powered features. The open-source Core AI layer also signals that Apple is competing for the local-model developer mindshare that has so far gone to Ollama and similar tools.
Who's Affected
- — iOS and macOS app developers — Xcode 27's Agent Mode is available now in developer betas; if you're building on Apple platforms, this is the highest-leverage new tool in this release cycle to evaluate immediately
- — Indie developers and small teams in the App Store Small Business Program — free Private Cloud Compute access is a material change if you've been paying for external model APIs; watch Apple's developer docs for quota specifics before building a cost model around it
- — Data scientists and ML researchers working with Apple platforms — the new Python SDK and `fm` CLI mean you can now prototype against Apple's on-device model without writing Swift; worth testing against your current on-device inference workflow
- — Teams using Cursor, GitHub Copilot, or other agentic coding tools for iOS work — Xcode's native Agent Mode now has simulator access those tools lack; the comparison set changes with this release
What To Do Now
- 1. Install the Xcode 27 developer beta and run Agent Mode on a real bug or test gap — the simulator integration is the new capability that third-party tools can't match; form a view on where it saves time before the fall release ships to production workflows
- 2. If you're in the Small Business Program, prototype one feature against Private Cloud Compute before committing to an external model API for it; the free tier is real, but get the quota and rate-limit details from Apple's documentation before baking it into a production cost model
- 3. Evaluate the `fm` CLI for any shell-script or data-pipeline tasks where you currently call an external API for summarization or extraction — on-device inference with no API key and Apple's privacy guarantees is a meaningful option for certain workloads
- 4. If you use MCP-based tooling, note that Xcode 27 Agent Mode supports MCP and a new Agent Client Protocol — your existing MCP server integrations may be usable in-editor without additional work; check Apple's developer documentation for the protocol spec
More on this topic — Best AI Coding Tools
Independent Review
Cursor
Pricing, pros and cons, real-world verdict — no affiliate spin.
Read the Cursor reviewMore from ToolNav News