Skip to content
SwiftSkills

visionOS with AI agents: ImmersiveSpace, RealityKit and spatial focus

Do not invent a phone ARKit clone for Vision Pro. Pick Window, Volume or ImmersiveSpace from the task, present RealityKit through RealityView, and treat gaze and focus as first-class input. Install a visionOS build MCP or a spatial skill pack, then confirm every API on developer.apple.com.

Last updated:

This page is about getting a coding agent to ship native visionOS apps: choose the right SwiftUI scene, present RealityKit content, respect gaze/focus, and build with a visionOS-aware toolchain. For general HIG audits and design tokens, see Apple HIG with AI agents. For Liquid Glass materials on windows, see SwiftUI Liquid Glass with AI agents.

What the agent has to get right

Apple's visionOS documentation and Creating your first visionOS app treat spatial apps as SwiftUI scene compositions, not as iPhone ARKit ports. Agents still paste handheld AR patterns into Vision Pro targets and skip immersion or focus rules.

Four layers show up in almost every visionOS PR:

  1. Scene choice — WindowGroup windows (and volumetric windows) in the Shared Space versus ImmersiveSpace for Full Space content with mixed, progressive or full immersion (Designing for visionOS).

  2. 3D content — RealityKit entities presented through RealityView, usually with assets from Reality Composer Pro rather than inventing a custom renderer.

  3. Input and focus — gaze, hover effects, and RealityKit entity focus; Digital Crown immersion changes are system-owned, not a custom gesture soup.

  4. Build loop — a visionOS scheme, simulator or device destination, and a build MCP/skill that understands spatial targets instead of generic iOS xcodebuild guesses.

Rules worth adding to AGENTS.md or CLAUDE.md:

visionOS: never treat Vision Pro as an iPhone ARKit clone. Choose Window, Volume or ImmersiveSpace from the task. Present RealityKit through RealityView. Respect gaze/focus and comfort guidance from Designing for visionOS. Confirm ImmersiveSpace, RealityKit and visionOS APIs on developer.apple.com before inventing scene APIs.

Step 1: install a visionOS-aware tool

Ask the agent to:

  1. Install Seiro MCP (cargo install seiro-mcp --locked, then seiro-mcp config mcp) when it must build and inspect a visionOS project safely.

  2. Install Swift FocusEngine Pro (npx skills add https://github.com/mhaviv/Swift-FocusEngine-Agent-Skill) for visionOS gaze/hover and RealityKit focus reviews.

  3. add Apple HIG Skills (apple-design-spatial) for immersion and comfort checklists, or Claude Apple Dev Skills (visionos-dev) for a native visionOS scaffold.

Honest limit: one build MCP plus one focus or spatial-design skill beats installing every Apple platform pack at once.

Step 2: lock the scene contract

Point the agent at Creating your first visionOS app and Designing for visionOS. Require:

  1. Explicit scene type — window, volumetric window, or ImmersiveSpace, with a written reason.

  2. Shared vs Full Space — do not open an ImmersiveSpace for UI that belongs in a window.

  3. Immersion style — mixed, progressive or full only when the product needs that level of immersion.

  4. Exit and recenter — users must be able to leave immersive content; do not invent a trap immersion.

Step 3: RealityKit through RealityView

For 3D content:

  1. Prefer RealityKit entities and RealityView over a custom Metal stack unless the product truly requires one.

  2. Load Composer Pro packages by name; keep asset paths real in the repo the agent edits.

  3. Keep attachments and ornaments for chrome that should stay readable; do not bury primary actions outside comfortable gaze range.

Step 4: review focus and build before merge

Run FocusEngine Pro (or the spatial design skill after merge) on focus/gaze changes. Use Seiro MCP (or the project's visionOS scheme) for the build. Treat invented ARKit-phone patterns, missing ImmersiveSpace exit paths and focus anti-patterns as merge blockers. A green build does not replace a comfort check on device or the visionOS simulator.

Tools compared (4)

ToolBest forAgents (README)Install (README)LicenseStarsLast push
Seiro MCP (karad)Lightweight visionOS build MCP: validate, build, diagnose and fetch artifacts for Codex and other MCP clientsCodex, any MCP clientcargo install seiro-mcp --locked then seiro-mcp config mcpMIT167 Jul 2026
Swift FocusEngine Pro (mhaviv)Focus reviews across Apple platforms including visionOS gaze/hover and RealityKit entity focusClaude Code, Cursor, Codexnpx skills add https://github.com/mhaviv/Swift-FocusEngine-Agent-SkillMIT2231 Aug 2026
Apple HIG Skills (CarlosZiegler)apple-design-spatial skill for visionOS/AR comfort, immersion, eyes, ornaments and spatial layout (HIG-grounded)Codex (skills CLI; interactive installer selects agent)npx skills@latest add CarlosZiegler/apple-hig-skillsMIT1227 Oct 2026
Claude Apple Dev Skills (laramarcodes)visionos-dev pack: native visionOS scaffolds with SwiftUI, RealityKit, ImmersiveSpace and Reality Composer Pro templatesClaude Code, Cursor, Codexnpx skills add laramarcodes/claude-apple-dev-skillsMIT429 Jul 2026

⚠ = no push for more than 4 weeks. Apple HIG Skills (27 Oct) is fresh. Seiro MCP (7 Jul), FocusEngine Pro (31 Aug) and Claude Apple Dev Skills (29 Jul) are older—verify guidance against current visionOS, ImmersiveSpace and RealityKit docs before treating every recommendation as final.

Which one to pick:

  • Default visionOS build loop: Seiro MCP.

  • Focus / gaze / RealityKit interaction review: Swift FocusEngine Pro.

  • HIG spatial design checklists: Apple HIG Skills (apple-design-spatial).

  • native visionOS scaffold pack: Claude Apple Dev Skills (visionos-dev).

A prompt that keeps the agent honest

Setting up the agent itself: Claude Code for iOS development, Codex for iOS development or Cursor rules for SwiftUI.

Build a native visionOS feature. Choose Window, Volume or ImmersiveSpace with a one-line reason. Present 3D content with RealityKit through RealityView. Do not paste iPhone ARKit patterns. Review gaze/focus with FocusEngine Pro (or apple-design-spatial after merge). Build with Seiro MCP or the visionOS scheme. Confirm ImmersiveSpace, RealityKit and Designing for visionOS on developer.apple.com.

FAQ

What is visionOS work for AI coding agents?
visionOS work for agents means teaching Claude Code, Cursor or Codex to choose Window, Volume or ImmersiveSpace, present RealityKit content through RealityView, handle gaze and focus, and build with a visionOS-aware MCP or skill instead of copying iPhone ARKit patterns into Apple Vision Pro apps.
How should the agent choose among Window, Volume and ImmersiveSpace?
Apple's visionOS documentation and Designing for visionOS describe windows and volumetric windows in the Shared Space, and ImmersiveSpace for Full Space content with mixed, progressive or full immersion. Agents should pick the scene type from the task, not default every feature to a full immersive space.
Is the Vision framework the same as visionOS?
No. Apple's Vision framework is computer-vision APIs on Apple platforms. visionOS is the spatial operating system for Apple Vision Pro. Axiom's vision skills target the Vision framework; Seiro MCP, FocusEngine Pro's visionOS focus references and Claude Apple Dev's visionos-dev skill target spatial apps.
Which visionOS tool should I install first?
Start with Seiro MCP when the agent must build and diagnose a visionOS Xcode project. Add FocusEngine Pro for gaze, hover and RealityKit focus. apple-design-spatial from Apple HIG Skills covers comfort and immersion design, and Claude Apple Dev Skills' visionos-dev pack scaffolds native visionOS apps.
Does a green visionOS build mean the spatial UI is finished?
No. Build MCPs catch compile and scheme mistakes. Comfort, immersion style, ornament placement and focus behavior still need device or simulator checks against Designing for visionOS and the live ImmersiveSpace and RealityKit docs on developer.apple.com.