A brittle blueprint of how to bring agentic AI to Xcode 26 (which does AI like it's 24).
demo.mp4
- Xcode 26 supports local language models for its new AI chat experience (only available on MacOS 26, for some reason).
- We run a local server whose facade is an OpenAI API (
/v1/models
,/v1/chat/completions
), and point Xcode to it. From there we can do anything outside of Xcode's small sandbox. - We could surely do API reformatting to bring providers that are not fully OpenAI API compliant to the fold. But what fun in that? Instead we launch Claude Code in interactive mode, send user's message to its stdin, parse stdout including fun ANSI control sequences, and stream Claude Code's messages back to Xcode.
- For file changes to show in Xcode's new fancy UI, Claude Code runs in a shadow dir that we watch, and we reshare changed files to Xcode.
yarn install
yarn main --dir=<path_to_xcode_repo>