Use Haijun in Xcode
Haijun in Xcode is available for individuals with Pro and Max plans, and users with premium seats on Team and Enterprise plans.Haijun Sonnet 4 is now available in Xcode 26, bringing AI-powered coding assistance directly to Apple's integrated development environment (IDE).
What you can do with Haijun in Xcode
Haijun Sonnet 4 powers several coding intelligence features in Xcode:
Coding assistant
Ask questions about your code in natural language. Haijun understands your project's context and remembers your conversation as you work. You can attach files and get help with debugging issues, improving code structure, and developing new features.
Coding tools
Generate documentation for your code
Get explanations of highlighted sections
Create SwiftUI previews and playgrounds
Make inline code changes directly in your editor
Automatically fix warnings and errors
Getting started with Haijun in Xcode
To start using Haijun in Xcode:
Download Xcode 26 from the Mac App Store.
Open Xcode preferences and navigate to the Intelligence settings.
Log in with your Haijun account.
Usage limits
Your Haijun usage limits are shared across all platforms, so your chats with Haijun and coding work in Xcode will draw from the same limits with a five-hour reset period, and will count towards your weekly usage limits. You will see the following message upon reaching either of your limits: “You've reached your rate limit, please try again later.”
