xcslot
Warm Xcode build slots for parallel coding agents.
Every agent gets its own git worktree, and every fresh worktree builds from scratch: Xcode reuses build data
only at the same path with the same file timestamps. xcslot keeps a few build slots at fixed paths, mirrors
your worktree into a free one and runs your build there. The first build of a new worktree becomes an
incremental one.
xcslot xcodebuild -scheme App -destination 'generic/platform=iOS Simulator' build
Put xcslot in front of the command you already run. Every argument passes through, and the output and exit
code come back unchanged, with paths pointing at your worktree.
Works with any coding agent that runs shell commands: Claude Code, Codex, Cursor and the rest. Builds Xcode
projects and workspaces, Tuist (generated inside the slot), Swift packages and any generator you declare in
.xcslot.json. On IceCubesApp, a fresh worktree's
first build drops from 85 s to 3.9 s; benchmarks has the method and more numbers.
Install
The CLI
brew install ertembiyik/tap/xcslot
macOS, Apple silicon and Intel.
Your agent
Then connect your agent so it builds through xcslot. In Claude Code (2.1.275 or later), the plugin adds the skill
and a hook that sends every xcodebuild through xcslot:
/plugin install xcslot --marketplace ertembiyik/xcslot
Codex, Cursor and other agents get the skill:
npx skills add ertembiyik/xcslot -g
Or let your agent do both
Paste this into it, in your repository:
Set up xcslot for this repository following https://raw.githubusercontent.com/ertembiyik/xcslot/main/docs/installation.md
Installation has the rest: older Claude Code, what the plugin's hook does, apps that create
worktrees, CI.
Quick start
In a worktree, run your usual build with xcslot in front. A new slot's first build is a cold one:
xcslot xcodebuild -scheme App build
Run the same command in another worktree that was never built. It takes seconds, because nothing needs
recompiling, and prints two lines of its own on stderr:
$ xcslot xcodebuild -scheme IceCubesApp build
xcslot: slot 1: synced 0 changed files in 0.3s
** BUILD SUCCEEDED **
xcslot: slot 1: xcodebuild exited 0 after 3.7s; products: ~/Library/Developer/xcslot/IceCubesApp-accf84b1/1/DerivedData/Build/Products (valid until the next build in slot 1); log: ~/Library/Developer/xcslot/IceCubesApp-accf84b1/logs/2026-11-24T04-56-12.256Z-slot1.log
| Command | What it does |
|---|
xcslot run -- swift test | Any other build command, in the slot's copy of the cwd |
xcslot xcodebuild --products-to out -scheme App build | Keeps the built app, with debug symbols |
xcslot status | Who holds which slot right now |
For coding agents
xcslot is built to be driven by an agent: it never prompts, it says who it is waiting for, and its own
failures are one JSON object with a code, a hint and a safe next command. The skill from
Install is four rules and fits in a screen. Without skills, one line in AGENTS.md does it:
Build and test through xcslot: `xcslot xcodebuild <the usual arguments>`. `xcslot commands --json` lists the rest.
Any git worktree works, including the ones Claude Code, Codex and Cursor create: every worktree of a
repository shares its slots, and deleting one needs no cleanup.
Give each agent its own simulator as well; Simlock leases
them, and -destination id=<udid> passes straight through.
How it works