OHREN_Lab

Open source오픈소스xcslotxcslot

xcslot runs Xcode builds of fresh git worktrees in warm slots so that parallel coding agents get incremental first buildsxcslot, 새 git worktree에서 처음 도는 Xcode 빌드를 데워 둔 슬롯의 증분 빌드로 바꾸는 macOS 도구

xcslot is an MIT-licensed macOS tool that keeps build slots at fixed paths and mirrors git worktrees into them, so the first Xcode build of fresh worktrees becomes incremental. In the repository’s own IceCubesApp benchmark that first build went from 85 s to 3.9 s with xcslot 0.1.6, while a build after a one-file edit took 35 s and 33 s. A new slot’s first build is still cold, and each slot costs about one DerivedData of disk.xcslot은 고정 경로에 빌드 슬롯을 두고 git worktree를 그대로 옮겨 빌드해, 새 worktree의 첫 Xcode 빌드를 증분 빌드로 만드는 MIT 라이선스 macOS 도구입니다. 저장소의 IceCubesApp 벤치마크에서 첫 빌드는 85초에서 xcslot 0.1.6의 3.9초로 줄었고, 파일 하나를 고친 뒤의 빌드는 35초와 33초로 비슷합니다. 새 슬롯의 첫 빌드는 콜드 빌드이고 슬롯마다 DerivedData 하나만큼 디스크를 씁니다.

Checked확인일

xcslot is a macOS command-line tool for parallel coding agents that turns the first Xcode build of fresh git worktrees into an incremental one. Xcode reuses build data only at the same path with the same file timestamps, so fresh worktrees build from scratch. xcslot keeps a few build slots at fixed paths, mirrors the source tree into a free one and runs the build there. It works on macOS with Apple silicon and Intel, is installed with Homebrew and is under the MIT license.xcslot은 병렬로 도는 코딩 에이전트를 위한 macOS 명령줄 도구로, 새 git worktree의 첫 Xcode 빌드를 증분 빌드로 바꿉니다. Xcode는 같은 경로에 같은 파일 시각일 때만 빌드 데이터를 다시 쓰기 때문에 새 worktree는 처음부터 컴파일합니다. xcslot은 고정 경로에 빌드 슬롯 몇 개를 두고, 빈 슬롯에 worktree를 그대로 옮겨 거기서 빌드합니다. Apple silicon과 Intel의 macOS에서 돌고 Homebrew로 깔며 라이선스는 MIT입니다.

A new slot’s first build is a cold build, so three slots mean up to three cold builds per repository. Slots live in ~/Library/Developer/xcslot and each costs about one DerivedData of disk, build inputs outside the repository are not mirrored, and Xcode’s own window does not use slots. Besides tracked files and untracked files that git does not ignore, git-ignored *.xcconfig files are mirrored by default, and the docs give a local one with secrets as an example. Files the command wrote into the source tree are copied back. Simulators are not part of a slot, so each agent needs its own.새 슬롯의 첫 빌드는 콜드 빌드라, 슬롯이 셋이면 저장소마다 콜드 빌드가 세 번까지 생깁니다. 슬롯은 ~/Library/Developer/xcslot에 있고 저마다 DerivedData 하나만큼 디스크를 쓰며, 저장소 밖의 빌드 입력은 옮겨지지 않고, Xcode 자체 창은 슬롯을 쓰지 않습니다. 추적하는 파일과 git이 무시하지 않는 파일에 더해, git이 무시하는 *.xcconfig도 처음 설정대로면 슬롯으로 옮겨지는데 문서는 그 예로 비밀값이 든 로컬 파일을 들었습니다. 명령이 소스 트리에 쓴 파일은 worktree로 되돌아옵니다. 시뮬레이터는 슬롯이 나눠 주지 않아 에이전트마다 따로 둡니다.

With xcslot in front of the usual command, every argument passes through, and the output and exit code come back with paths rewritten to the original tree. It takes its own last slot first, then the one whose last tree is closest, then the least recently used, and if all are busy it says who holds them and waits. Only files whose content differs are rewritten, so the rest keep their timestamps, and the original tree is never locked, so editing can go on during a build. With --products-to, the built app is handed out with a dSYM.쓰던 명령 앞에 xcslot을 붙이면 인자가 그대로 지나가고, 출력과 종료 코드는 경로만 worktree의 것으로 바뀌어 돌아옵니다. 빈 슬롯은 자기가 마지막에 쓴 것, 마지막 트리가 가장 가까운 것, 가장 오래 쓰지 않은 것 차례로 고르고, 모두 바쁘면 누가 잡고 있는지 알리며 기다립니다. 내용이 달라진 파일만 다시 써서 나머지는 시각이 그대로이고, worktree는 잠기지 않아 빌드 중에도 고칠 수 있습니다. --products-to를 주면 앱을 dSYM과 함께 꺼내 줍니다.

The repository’s benchmark builds IceCubesApp on a 12-core Apple silicon Mac with Xcode 27.0 and other work running. For this project, in which 1,510 Swift files compile, a first build took 85 s with its own DerivedData (the first of four runs that ranged from 82 to 107 s) and 3.9 s through a warm slot with xcslot 0.1.6, the median of three worktrees at 4.9, 3.9 and 3.9 s, with 0 Swift files compiled. A build after a one-file edit took 35 s and 33 s. A separate run with version 0.1.3 from Homebrew, while other builds kept the load average near 20, measured 186 s cold, 199 s for a new slot and 14, 15 and 5.3 s for three more builds.저장소의 벤치마크는 12코어 Apple silicon Mac과 Xcode 27.0에서 다른 작업이 도는 가운데 IceCubesApp을 빌드한 값입니다. Swift 파일 1,510개를 컴파일하는 이 프로젝트의 첫 빌드는 자체 DerivedData로 85초(네 번 가운데 첫 값, 범위 82~107초)였고, xcslot 0.1.6의 데워진 슬롯에서는 세 worktree의 중앙값 3.9초(4.9초, 3.9초, 3.9초)에 컴파일한 Swift 파일이 0개였습니다. 파일 하나를 고친 뒤의 빌드는 35초와 33초로 비슷합니다. 이와 따로 Homebrew의 0.1.3으로, 다른 빌드 때문에 부하 평균이 20에 가까울 때 잰 값은 콜드 186초, 새 슬롯 199초, 이어진 세 빌드 14초, 15초, 5.3초입니다.

xcslot picture of two Mac terminals building the same new git checkout. Without xcslot, xcodebuild compiles 1,510 Swift files and takes 85 s from scratch; with xcslot, it syncs 0 changed files in slot 1, compiles 0 Swift files and takes 3.9 s incrementally.
Image: xcslot README.그림: xcslot README. MIT © ertembiyik · MIT License Open original원본 보기

A skill of four rules is added to agents with npx skills or xcslot skill install, and xcslot doctor checks that everything it needs is in place. Xcode projects and workspaces, Tuist and Swift packages are covered, and other generators are declared in .xcslot.json. The defaults are 3 slots per repository, 3 commands at once on the machine and a wait of up to 3600 seconds for a slot. It never prompts, and its own failures are one JSON object with a code, a hint and a next command.에이전트에는 npx skills나 xcslot skill install로 규칙 네 가지짜리 스킬을 더하며, xcslot doctor가 필요한 것이 갖춰졌는지 살핍니다. Xcode 프로젝트와 워크스페이스, Tuist, Swift 패키지를 다루고 다른 생성기는 .xcslot.json에 단계를 적습니다. 처음 설정은 저장소당 슬롯 셋, 기계에서 함께 도는 명령 셋이고 빈 슬롯을 3,600초까지 기다립니다. 물음 창을 띄우지 않으며, 자체 실패는 코드와 도움말, 다음 명령이 든 JSON 하나로 알립니다.

A slot is warm for the tree it built last, so worktrees far from that tree rebuild what differs. In the benchmark, a slot moved to a commit ten commits away rebuilt 1,284 files in 62 s, and a checkout of that commit in place rebuilt the same files in 66 s. It adds no build settings and does not turn on Xcode’s compilation cache.슬롯은 마지막에 빌드한 트리에 맞춰 데워져 있어, 거기서 먼 worktree는 다른 만큼 다시 빌드합니다. 벤치마크에서 커밋 열 개 떨어진 곳으로 옮긴 슬롯은 1,284개 파일을 62초에 다시 빌드했고, 제자리에서 체크아웃한 빌드는 같은 파일을 66초에 다시 빌드했습니다. 빌드 설정을 더하지 않고 Xcode의 컴파일 캐시도 켜지 않습니다.

All algoit posts알고IT 글 목록

Follow our AI news onAI 소식 팔로우하기X Instagram Threads