PatrickSCLin

Xcfs — AI skill for Claude Code

AI community

Run several AI coding agents (Claude Code, Codex, Cursor) on one Xcode project in parallel: each gets a git worktree that is already built, an incremental build session, its own simulator, and cleanup.

How to install Xcfs

This entry records only its repository, not the path inside it, so there is no exact command to give. Open PatrickSCLin/xcfs and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Xcfs does

Run several AI coding agents (Claude Code, Codex, Cursor) on one Xcode project in parallel: each gets a git worktree that is already built, an incremental build session, its own simulator, and cleanup that leaves no DerivedData behind. Claude Code plugin and hooks. iOS, macOS.

Alternatives in AI

  • Dux — Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, w 66 ★
  • AI Agent Board — Drag-and-drop Kanban board that delegates coding tasks to AI agents — GitHub Copilot, Claude Code, OpenAI Code 57 ★
  • Grove — A Kanban-style TUI for parallel AI coding 46 ★

README

xcfs

[![tests](https://github.com/PatrickSCLin/xcfs/actions/workflows/tests.yml/badge.svg)](https://github.com/PatrickSCLin/xcfs/actions/workflows/tests.yml)

**A file-system layer for agentic iOS development: several AI agents, each in its own git worktree of one Xcode project, building features in parallel — without a cold build per worktree, without filling the disk, and without stepping on each other.**

Each agent gets a checkout that is already built (a slot of a pool kept at the baseline), an incremental build session, a one-file compile check, its own simulator, and a cleanup that removes everything the checkout made and nothing else. It plugs into Claude Code's worktree and session hooks (one command, or the Claude Code plugin), so `claude --worktree` and subagents with worktree isolation get xcfs checkouts with no change in how anyone works; other agent tools (Codex, Cursor, Gemini CLI, Aider, …) drive the same commands through `--json`.

`xcfs` is the tool's name, not a kernel file system: git worktrees, APFS clones and Xcode's own build service; no root, no kernel extension, Xcode unmodified. **v0.3.1**, Python 3 standard library only (3.9 or later), MIT; [docs/design.md](docs/design.md) says what is measured, what is planned and what is not verified.

The problems it solves

Measured on public apps, three agents at once unless noted, on one machine: **MacBook Pro, Apple M1 Max (10 cores), 64 GB, macOS 27.2, Xcode 27.2** ([docs/benchmark.md](docs/benchmark.md), raw results in [bench/results](bench/results/README.md)). Other machines will differ; slower disks and less memory change the numbers.

when several agents each get a worktree plain git worktree + xcodebuild xcfs
agent tools give every task a new worktree, which builds from nothing every batch of three waits 284–312 s (Ice Cubes), 347–387 s (Wikipedia) slots stay built: the next batch waits 46–97 s and 130–185 s
main moves on every day even kept