Skip to content

gsabran/claude-code-in-xcode

Repository files navigation

Claude Code in Xcode

A brittle blueprint of how to bring agentic AI to Xcode 26 (which does AI like it's 24).

demo.mp4

High level overview:

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

Usage

yarn install
yarn main --dir=<path_to_xcode_repo>

⚠️ This code is barely a proof of concept. It doesn't work past the first message, and the server needs relaunching between each conversation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published