An Agent Client Protocol (ACP) adapter for Apple's Foundation Models (both Private Cloud Compute and on-device). This project includes additional fixtures and features for supporting Zed, but any code editors/IDEs with support for ACP can use Apple's models as its coding agent.
Requires macOS 27 or later on Apple silicon, with Apple Intelligence enabled.
- Install ACP for Foundation Models fromTestFlight .
- Open Foundation Models ACP once. Under Folder Access, add the folder that holds your projects (for example
~/Developer), so the agent can list and search them. - In Zed, add the agent by hand with the settings the app's window shows under Zed › Set Up by Hand.
- Quit and reopen Zed, then start a new Foundation Models thread.
On PCC, conversations are sent to Apple's Private Cloud Compute; on System, they stay on your Mac. So that sessions survive an editor restart, each conversation (including any file contents the agent read) is also saved inside the app's sandbox container on your Mac, and deleted 30 days after it was last used. No data is collected by the app.
Images in prompts, session/list, .gitignore-aware search, and ACP v2.
AGENTS.md covers the layout, rules, and diagnostics. docs/adr records various design decisions.
swift testruns the protocol and tool tests;xcrun swift format lint --strict --recursive Sources Tests App Launcher Package.swiftchecks formatting (xcrun swift format format -i -r …fixes it). CI runs both on every pull request.- Pull request titles must leverage Conventional Commits (
feat: …,fix: …); which become entries in the changelog.
scripts/package.sh # builds Foundation Models ACP.app and writes dist/fm-acp-darwin-aarch64.zip
scripts/package-launcher.sh # builds fm-acp-launcher and writes dist/fm-acp-launcher-darwin-aarch64.zip
scripts/install.sh # installs both and prints the Zed settings
Then add the agent to Zed's settings.json, using the absolute path install.sh prints:
"agent_servers": {
"Foundation Models": {
"type": "custom",
"command": "/Users/you/.local/bin/fm-acp-launcher",
"args": [],
"env": {}
}
}
Zed keeps one agent process running across threads, so quit and reopen Zed after installing a new build.