Providers
A provider adds support for one kind of tooling to a repository’s worktrees. A repository turns providers on in its .taxilane.json under providers; repositories without a provider never see any of its sections, buttons or commands, and none of its tools run.
{ "providers": { "gradle": {}, "emulator": {}, "ios-simulator": {}, "xcode": {}, "maven": {}, "docker-compose": {}, "desktop-app": { "module": ":desktopApp" } } }| Provider | For | Platforms |
|---|---|---|
gradle |
Android, KMP and JVM repositories: Gradle daemons and their memory. | Any; the daemon list needs ps (macOS, Linux) |
emulator |
An Android emulator per worktree. | Any with the Android SDK |
ios-simulator |
An iOS simulator per worktree. | macOS |
xcode |
Xcode DerivedData, the shared compilation cache, Swift packages and CocoaPods pods. | macOS |
maven |
Maven builds: a memory bound and the Maven daemons. | Any; the daemon list needs ps (macOS, Linux) |
docker-compose |
A Docker Compose project and ports per worktree. | Any with the Docker CLI |
desktop-app |
A Compose Desktop app per worktree, run in the background without taking the desktop. | macOS |
flutter |
Flutter apps: flutter pub get in every new worktree, and agents running Flutter on their worktree’s devices. |
Any with Flutter |
node |
Node repositories: node_modules cloned from the base or installed in every new worktree. |
Any with Node; cloning on macOS |
python |
Python repositories: a virtual environment in .venv created with uv, Poetry or pip in every new worktree. |
Any with Python |
For a resource none of them covers, a repository can declare its own custom pools.
Detecting stacks
Section titled “Detecting stacks”You don’t have to know which providers exist. Taxilane looks at the files of the repository’s main folder and its direct subfolders (never hidden folders, build, node_modules or Pods) and recognises eight stacks:
| Stack | Revealed by | Suggests |
|---|---|---|
| Gradle | gradlew, settings.gradle or settings.gradle.kts in the main folder, or else settings.gradle(.kts) in a direct subfolder such as android/ |
gradle |
| Android | com.android. in a build.gradle(.kts) or settings.gradle(.kts) of those folders, or in gradle/libs.versions.toml |
emulator |
| Xcode | an .xcodeproj folder, or Package.swift in the main folder |
ios-simulator and xcode (macOS only) |
| Maven | pom.xml or mvnw in the main folder |
maven |
| Docker Compose | compose.yaml, compose.yml, docker-compose.yaml or docker-compose.yml in the main folder |
docker-compose |
| Flutter | a pubspec.yaml in the main folder that depends on the Flutter SDK (sdk: flutter) |
flutter |
| Node | a package.json in the main folder, with its lockfiles as further evidence |
node |
| Python | a pyproject.toml or requirements.txt in the main folder, with uv.lock and poetry.lock as further evidence |
python |
In the project settings, “Repository configuration” lists the providers the repository could use and doesn’t declare yet, with the files that revealed them, and “Turn on” switches the provider on as an unsaved change: nothing is written until you save and confirm the preview. taxilane stacks prints the same from a terminal and changes nothing. A suggestion is only a hint (a pom.xml in a fixture folder also counts), so the evidence is always shown.
Taxilane also looks, at any depth outside build and tool folders (build, .gradle, .dart_tool, node_modules, Pods, DerivedData), for the untracked files a fresh mobile worktree can’t build without: local.properties, keystore.properties, key.properties, *.jks, *.keystore, google-services.json, GoogleService-Info.plist and FlutterFire’s firebase_options.dart. Each one nothing provisions yet (local files, copy, link or .worktreeinclude) is suggested as an anchored link pattern, such as /app/google-services.json, so rotating it in the base repository updates every worktree. It also reads the storeFile keys of those properties files (any key ending in storeFile, such as RELEASE_STORE_FILE): a keystore they name inside the repository is suggested too, and a relative path that leaves the repository is reported, because it won’t resolve from a worktree that lives in another folder. A local.properties that sets flutter.sdk isn’t suggested, because Flutter rewrites it in every worktree and a link would write into the base repository’s file; its storeFile keys are still read. The project settings list them under “Worktree files” and taxilane stacks prints them; nothing is written until you accept and save.
Gradle
Section titled “Gradle”{ "copy": ["/local.properties"], "providers": { "gradle": {} } }Every build in a worktree starts a Gradle daemon (and usually a Kotlin compile daemon) when no idle one can be reused, and each daemon keeps its memory for hours after the build. For a Gradle repository, the worktree screen shows a “Gradle daemons” section with every daemon on the machine: its memory, whether it’s busy or idle, and the worktree of its last build. You can stop idle daemons there, and “Clean up” offers to stop the idle daemons of the worktrees it removes. A busy daemon is never stopped.
If the repository doesn’t turn on Gradle’s build cache (org.gradle.caching=true in gradle.properties), Taxilane tells you: with it on, a new worktree’s first build reuses what other worktrees already built.
When the main folder isn’t a Gradle build but a direct subfolder is, such as android/ in a Flutter or React Native app, Taxilane finds that build too: it reads its gradle.properties for the build cache and for the JVM arguments daemonMaxHeap keeps.
taxilane gradle # list the daemons, their memory, state and worktreetaxilane gradle stop # stop every idle daemon (or only the given process ids)taxilane clean --yes --stop-gradle-daemons # also stop the idle daemons of the removed worktreesDaemon inspection needs ps (macOS and Linux).
Daemon memory and lifetime per worktree
Section titled “Daemon memory and lifetime per worktree”Parallel builds can’t share a busy daemon, so three agents building at once start three daemons, each with the heap your gradle.properties asks for, and they stay alive for three hours. The provider can bound the daemons that worktree builds start:
{ "providers": { "gradle": { "daemonMaxHeap": "2g", "idleTimeoutMinutes": 30, "kotlinDaemonMaxHeap": "1g" } } }Every setting is optional. Memory sizes are a number followed by k, m or g; the timeout is in minutes. With at least one, every worktree’s environment (the main one included) gets the same GRADLE_OPTS, which overrides gradle.properties for builds started from that shell. daemonMaxHeap only replaces -Xmx: the other org.gradle.jvmargs of your user gradle.properties, or else the repository’s, are kept. The “Gradle daemons” section shows the settings in effect.
- It reaches agents like any per-worktree variable. A
GRADLE_OPTSyou set yourself in that shell is replaced; declare it inenvinstead and it takes precedence over the provider’s. - Builds started from Android Studio or IntelliJ don’t inherit the agent’s shell: they keep using
gradle.propertiesand don’t share daemons with agent builds. Put the limits ingradle.propertiestoo if you want them everywhere. - New settings apply to new daemons; idle daemons started with other arguments aren’t reused and time out on their own, or stop them from the section.
- The quoting is designed for Windows’
gradlew.battoo, but has only been verified on macOS.
{ "providers": { "maven": { "mavenMaxHeap": "1g" } } }Parallel builds in several worktrees each start a JVM with Maven’s default heap, and Maven daemons (mvnd) stay alive after the build. mavenMaxHeap is optional, a size such as 512m or 1g: with it, every worktree’s environment (the main one included) gets MAVEN_OPTS=-Xmx<size>. A MAVEN_OPTS you declare in env takes precedence, one you set yourself in that shell is replaced, and builds started from an IDE don’t inherit it.
For a Maven repository the app shows a “Maven daemons” section with every mvnd daemon on the machine: its memory, whether it’s busy or idle, and the worktree of its last build (mvnd moves the daemon’s working directory to each build’s folder: the deepest worktree that contains it, “removed worktree” when the folder is gone inside the worktrees folder, “other project” otherwise, nothing when it can’t be read). Plain mvn builds and IDEs are not listed.
The state comes from the daemon’s own log, whose location mvnd puts on the daemon’s command line; it works with mvnd 1.x and 2.x and any mvnd.daemonStorage. A daemon is busy while a build runs and idle afterwards; one whose log can’t be read has an unknown state. You can stop idle daemons there, and “Clean up” offers to stop the idle Maven daemons of the worktrees it removes. A busy daemon, or one whose state is unknown, is never stopped; the state is read again just before stopping.
taxilane maven # list the Maven daemons, their memory, state and worktreetaxilane maven stop # stop every idle Maven daemon (or: taxilane maven stop <pid>...)taxilane clean --yes --stop-maven-daemons # also stop the idle Maven daemons of the removed worktreesDaemon inspection needs ps and lsof (macOS and Linux).
Docker Compose
Section titled “Docker Compose”{ "providers": { "docker-compose": { "portVariables": ["DB_PORT", "API_PORT"] } } }Two worktrees running docker compose up share container, network and volume names, and publish the same host ports. The provider gives each worktree its own:
COMPOSE_PROJECT_NAMEis<repository folder>-<worktree folder>, lowercased, with every character other than letters, digits,-and_replaced by-(main-repoandTASK-123givemain-repo-task-123). A folder name that normalising would make ambiguous (fix login (2), or mixed case) gets a short stable hash, and a name over 50 characters is shortened keeping it, so different worktrees get different names. ACOMPOSE_PROJECT_NAMEdeclared inenvtakes precedence.portVariablesis optional: each name becomes a variable with a free port in 20000-29999 reserved for that worktree (the same rules as${port}), so the Compose file can publish${DB_PORT}:5432without colliding. Names follow the variable name rule and can’t be reserved names; a name also declared inenvgets the declared value and no port.
Starting and building the services
Section titled “Starting and building the services”taxilane compose up starts the services of the worktree you’re in, detached, with its COMPOSE_PROJECT_NAME and port variables, so you never pass -p or ports by hand; --build builds first, and everything after -- goes to docker compose as is (service names, --wait). taxilane compose build only builds. Docker Compose’s output is shown as it runs. The worktree’s detail in the app has a Compose section with the project’s name and state (Not started when Docker knows no such project) and Start, Build and Take down actions. The SessionStart context tells Claude to use taxilane compose up.
What removed worktrees leave behind
Section titled “What removed worktrees leave behind”Removing a worktree takes its Compose project down: taxilane remove, Claude Code’s WorktreeRemove hook and the desktop app’s Remove run docker compose -p <name> down once the folder is gone and remove the networks and built images it leaves, keeping its volumes. taxilane remove --keep-compose-project leaves the project running, and --compose-volumes removes its volumes too.
Taking a project down keeps its volumes, and Compose never removes the images it built, so removed worktrees leave volumes, networks and images behind. Taxilane records in ~/.taxilane/compose-projects.json the project name it gives each worktree (when its environment is resolved and on every up or build); a volume, network or image whose com.docker.compose.project label is a recorded name whose worktree no longer exists is a leftover of that worktree. A name that no other worktree uses now and that no other repository has recorded is the only thing that counts, so projects of other repositories, even with a similar prefix, are never touched. Images pulled from a registry (such as postgres) carry no Compose label and are never removed.
The “Compose projects” view, opened from its item in the status bar, lists the projects docker compose ls reports for the repository’s worktrees (status and worktree), the projects of removed worktrees (recorded ones, and those whose compose files lived in the repository or its worktrees folder), and, after them, the leftovers of removed worktrees. “Take down the projects of removed worktrees” runs docker compose -p <name> down, which removes containers and networks and keeps volumes. “Remove networks and images” removes the leftovers except volumes; “Remove volumes too” asks first, because their data is lost. Nothing is ever forced: an image or network still used by a container is kept and reported.
“Clean up” has a checked option to take down the projects of the worktrees it removes and remove their networks and built images, and an unchecked one to remove their volumes too; if Docker isn’t available the worktrees are still removed and the report says the projects were kept.
Worktrees removed before this registry existed weren’t recorded: their projects with containers are still found by their compose files, and the rest can be removed with docker volume rm and docker image rm.
taxilane compose up # start this worktree's services (detached) with its project name and portstaxilane compose up --build -- api # build first, and only the api servicetaxilane compose build # build this worktree's servicestaxilane compose # the Compose projects of the worktrees and what removed worktrees lefttaxilane remove TASK-123 # remove the worktree and take its project down (volumes kept)taxilane compose down # take down the projects of removed worktrees (volumes kept)taxilane compose down TASK-123 # take down one worktree's projecttaxilane compose prune # list the networks and images left by removed worktreestaxilane compose prune --yes # remove them (add --volumes to remove their volumes too)taxilane clean --yes --down-compose-projects # also take down the removed worktrees' projects and remove their imagesDocker is only run for repositories that declare the provider, and only the Docker CLI is used.
Android emulator
Section titled “Android emulator”Android builds install on every connected device unless ANDROID_SERIAL names one, so agents in parallel worktrees step on each other’s emulators. Turn on the emulator provider to give each worktree its own:
{ "providers": { "emulator": { "avd": "Pixel_8_API_35" } } }avd is optional: the AVD this repository prefers when the machine has it. A worktree reserves an emulator port, and gets ANDROID_SERIAL=emulator-<port> in its environment (taxilane env, the SessionStart hook, envFile), the first time you start its emulator, not when it is created; taxilane emulator start prints the export ANDROID_SERIAL=… line to run in a shell that started before. Emulators only start when you ask:
taxilane emulator start # start this worktree's emulator and wait for ittaxilane emulator status # emulator-5556 runningtaxilane emulator stop- On each machine, the project configuration chooses the AVD (or leaves it automatic) and whether it runs without a window;
--avdand--no-windowoverride them for one start. - Each worktree runs its own copy of the chosen AVD, made the first time its emulator starts: the AVD’s folder and
.inifile are copied into the AVD folder (ANDROID_AVD_HOME, else~/.android/avd) as<AVD>__taxilane_<worktree>_<hash>. On APFS the copy is a clone that takes no extra space; elsewhere it takes as much as the AVD’s data. The copy keeps what the worktree sets up (sign-in, permissions, data) across restarts and never shares it with another worktree, and later changes to the original AVD don’t reach it. These copies aren’t offered as AVDs to choose. - Removing a worktree (
taxilane remove,taxilane cleanor the desktop app) stops its emulator if it’s running and deletes its AVD copies (deleted AVD …). - Emulators start without audio (
-no-audio), which avoids the emulator’s audio crashes on Apple Silicon. A repository whose app needs sound declares"emulator": { "audio": true };taxilane emulator start --audiokeeps it for one start. - The worktree list shows each emulator with Start and Stop, and “Clean up” (or
taxilane clean --stop-emulators) stops the emulators of the worktrees it removes. - When the worktree is open in Orca, starting its emulator also shows it in Orca’s emulator view; see Orca.
- The SDK is found through
ANDROID_HOME,ANDROID_SDK_ROOT,sdk.dirinlocal.properties(the main folder’s, or else that of a Gradle build in a subfolder such asandroid/) or Android Studio’s default location. - The adb server is shared by every worktree: agents must never restart it (
adb kill-server) or force a device with-s,-eor-d. TheSessionStarthook tells Claude so.
Google’s Android CLI
Section titled “Google’s Android CLI”When Google’s android CLI is on the PATH, agents use it on the worktree’s own emulator, not against the pool:
- The
SessionStarthook andtaxilane guide resourcestell Claude to start the worktree’s emulator withtaxilane emulator startand pass--device "$ANDROID_SERIAL"toandroid run,install,layout,screenandinput, becauseandroiddoesn’t readANDROID_SERIALand other worktrees’ emulators are online too. - They also tell it never to start or stop emulators with
android emulator startorstop. Those take no port, so they would run an emulator outside Taxilane’s pool. The pool keeps launching emulators with the SDK’semulator, whether or notandroidis installed. androidsends usage metrics to Google unless it gets--no-metrics. Taxilane passes it on every call it makes, and tells agents to do the same. If you want to send them, turn them on withtaxilane android metrics onor in the desktop app’s Preferences › Tools; the rule then stops asking for the flag.android initcopies Google’sandroid-cliskill into the skills folder of every agent it finds on the machine (~/.claude/skills,~/.agents/skills,~/.codex/skillsand others). That skill manages emulators withandroid emulatorand lists serials withadb devices. Taxilane never runsandroid initor suggests it, tells agents that its rules take precedence over the skill for emulators and devices, andtaxilane doctorwarns when the skill is installed.taxilane androidshows whereandroidis, its version, the metrics setting and the folders that have the skill (android).
Compose Desktop app
Section titled “Compose Desktop app”An agent checking a Compose Desktop app with computer use takes the screen, mouse and keyboard away from you, and only one agent can do it at a time. Turn on the desktop app provider to let each worktree’s agent run its app in the background instead:
{ "providers": { "desktop-app": { "module": ":desktopApp" } } }module is the Gradle path of the app’s module, which must use Compose Hot Reload (Compose Multiplatform 1.12 or later). isolatedHome (default true) gives the app its own user home per worktree, so it never touches your own data; set it to false for an app that must read the real home.
taxilane headless start # launch the app hidden, without taking focustaxilane headless capture # PNG of its window, even while hiddentaxilane headless statustaxilane headless stopThe agent drives the app through Compose Hot Reload’s MCP server. See Checking a desktop app in the background for the whole workflow, the macOS permissions it needs and what still needs the desktop.
iOS simulator
Section titled “iOS simulator”Parallel agents on a KMP or iOS project would otherwise share the same simulators. Turn on the iOS simulator provider (macOS only) to give each worktree its own:
{ "providers": { "ios-simulator": { "device": "iPhone 16", "runtime": "iOS 18.5" } } }Both options are optional preferences used when the machine has them. A worktree gets a new simulator (created, never cloned: about 17 MB, 360 MB once booted) named Taxilane · <repository> · <worktree>, and IOS_SIMULATOR_UDID in its environment, the first time you start it. Build for it with xcodebuild -destination "id=$IOS_SIMULATOR_UDID".
taxilane simulator start # create if needed, boot this worktree's simulator and open it (Simulator, or Device Hub in Xcode 27)taxilane simulator status # its state, and in a KMP repository whether its tests use ittaxilane simulator stopKMP tests
Section titled “KMP tests”KMP’s iOS simulator tests pick their device in the build script, so add this to the module’s build.gradle.kts:
tasks.withType<org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeSimulatorTest>().configureEach { providers.environmentVariable("IOS_SIMULATOR_UDID").orNull?.let { device.set(it) }}If you’d rather not touch the repository, taxilane simulator gradle-init install (or the button in the project configuration) installs a Gradle init script that does the same for every project on this machine, after asking. Once installed, the project configuration offers to uninstall it, like taxilane simulator gradle-init uninstall.
- The project configuration also chooses the device type and runtime per machine.
- When the worktree is open in Orca, starting its simulator also shows it in Orca’s emulator view, unless the worktree’s emulator is running too; see Orca.
- “Clean up” (or
taxilane clean --delete-simulators) deletes the simulators of removed worktrees and Taxilane simulators whose worktree is gone.
Simulator storage
Section titled “Simulator storage”Xcode downloads a simulator runtime, about 8 GB, for each new iOS version and never removes the old ones, and the devices of a deleted runtime stay behind. On macOS, the iOS simulators view (offered as soon as a saved project declares the iOS simulator or the Xcode provider) has a “Simulator storage” section, and taxilane simulator storage prints the same from any folder:
- Each runtime with its size, last use and who uses it: the worktrees whose Taxilane simulator runs on it, the projects whose settings or preferences name it, and the newest iOS runtime, which Taxilane creates new simulators with. “Delete” removes one runtime after asking; it’s disabled, with the reason, for a runtime in use, bundled with Xcode or with a booted simulator, and Taxilane checks again just before deleting. Xcode can download a deleted runtime again from its Components settings.
- The simulator devices left without a runtime, with their size, and “Delete unavailable devices”.
- The CoreSimulator dyld caches per macOS build. macOS regenerates them, so Taxilane only measures them and marks the folders of a build other than the running one; they belong to the system, so “Copy command” gives you the
sudo rm -rfcommand to remove one yourself. Taxilane never runs anything as administrator.
Nothing here is ever deleted by “Clean up” or taxilane clean: runtimes and devices belong to the whole machine, not to a worktree.
Physical devices
Section titled “Physical devices”Some bugs only show on real hardware: a manufacturer’s skin, the camera, Bluetooth, NFC, push notifications, real performance or an iPhone’s signed build. Besides the emulator and simulator each worktree gets, agents in repositories with the emulator or ios-simulator provider can borrow the phones and tablets connected to the machine with taxilane device. Nothing needs declaring: a device is available once it’s connected and recorded.
- Inventory. Every Android device
adbsees, by USB or wireless debugging, and every iPhone or iPadxcrun devicectlreports as paired (macOS only) is recorded in~/.taxilane/devices.json, never in the repository, with its manufacturer, model, marketing name, OS version and when it was last seen. An Android device is identified by itsro.serialno, an iOS one by its UDID, so moving from USB to Wi-Fi keeps its entry, alias and holder. Pairing (adb pair, Xcode) is up to you. - Lent by default. A recorded device can be acquired by any agent until you withdraw it:
taxilane device withdraw <device>, or Withdraw in the desktop app’s Devices view. Withdraw a personal phone you plug in to charge; it stays recorded and no agent can take it until you lend it again. Give devices short aliases (taxilane device rename R5CT10ABCDE a55) so agents can ask for them by name. - One worktree at a time. A worktree holds at most one Android and one iOS device, with the same lease as emulators and simulators: renewed while its agent works, and taken over by another worktree only after it expires. Agents wait for a busy or unplugged device with
--wait, in line per platform across every repository. A held device that gets unplugged stays with its holder; plugging it back in, by USB or Wi-Fi, resumes its work. - Explicit. The agent gets the device in
TAXILANE_ANDROID_DEVICE_SERIALorTAXILANE_IOS_DEVICE_UDIDand passes it explicitly (adb -s "$TAXILANE_ANDROID_DEVICE_SERIAL",xcodebuild -destination "id=$TAXILANE_IOS_DEVICE_UDID").ANDROID_SERIALandIOS_SIMULATOR_UDIDkeep pointing to the worktree’s emulator and simulator, so nothing reaches a phone by accident. A Wi-Fi serial changes when the device reconnects:taxilane device statusprints the current one. - Releasing changes nothing on the device: the app stays installed and its data stays. Removing a worktree releases its devices.
- Orca. Acquiring an Android device in a worktree open in Orca shows it in the worktree’s emulator view, and opening a worktree that holds one shows it instead of its emulator, unless the worktree’s simulator is booted. Orca can’t show a physical iPhone yet.
- Cost.
adb devicesruns only when something needs the devices, once every 2 seconds at most, shared with the emulator states, andgetproponce per connection. The desktop app doesn’t look for devices on machines with no recorded device and no project declaring the emulator or iOS simulator provider.
Custom pools
Section titled “Custom pools”A repository whose worktrees share something Taxilane has no provider for, such as a database per worktree, a test device, a licence or a GPU, declares it under pools in its .taxilane.json, without waiting for a provider:
{ "pools": { "db": { "max": 3, "acquire": ["./scripts/db-up.sh", "${slot}"], "release": ["./scripts/db-down.sh", "${slot}"], "env": { "DATABASE_URL": "postgres://localhost/app_${slot}" } } }}| Key | Meaning |
|---|---|
| name | The key under pools: 1 to 32 lowercase letters, digits and hyphens, starting with a letter or digit. |
max |
The most instances at once on the machine, a whole number from 1 to 64 (not a string). Each holder gets a slot from 1 to max. |
acquire |
Required. One command, as a non-empty list of strings given as argv, never through a shell, run in the worktree when it takes or renews a slot. |
release |
Optional. One command, as for acquire, run when the worktree gives its slot back, when another worktree takes it over and when the worktree is removed. |
env |
Variables the worktree gets while it holds a slot, with the same name rules as the repository’s env; a name can’t repeat one of env or of another pool. |
Commands and variables accept ${slot} (the holder’s slot number), ${worktree} (its folder name) and $$ (a literal $); any other placeholder makes the file invalid. Use the slot to keep instances apart: a database name, a port offset in the script, a device index.
- Approval. The pools’ commands and variables run on your machine, so they are part of the repository’s single approval: nothing of a pool runs until you approve it, and a pull that changes a pool asks again. An unapproved repository’s
taxilane pool acquirefails namingtaxilane trust. - On demand. A worktree takes a slot with
taxilane pool acquire <name>when it needs it, which runsacquirewith its slot; running it again renews the lease and runsacquireagain, so make the command safe to repeat.taxilane pool release <name>runsreleaseand frees the slot. Nothing is acquired when a worktree is created. - Leases and taking over. Slots have the same lease as devices (the machine’s lease duration, 20 minutes by default), protected while the worktree’s agent works or while a command of the slot runs. When the pool is full, acquiring takes over a slot whose lease expired, in the same order as devices, running
releasefor its holder first; if thatreleasefails, the holder keeps it. With--wait, the worktree waits in line for a slot, first in, first out. - Per repository. A pool’s slots are shared by the worktrees of the repository that declares it; another repository with a pool of the same name counts its own. For a resource of the whole machine, such as a GPU, give it the same
maxin each repository knowing they don’t see each other. - Variables. While a worktree holds a slot, the pool’s variables reach its environment:
taxilane env, agent sessions started afterwards, terminals and the environment file written afterwards. A shell that was already open reads them witheval "$(taxilane env)". - Removal. Removing or cleaning up a worktree runs
releasefor each slot it holds and frees them even ifreleasefails, which is reported. - Status.
taxilane pool statuslists the repository’s pools with their holders and waiters, andtaxilane statusshows each worktree’s slots (pool=db#2). The desktop app doesn’t show custom pools yet. - Limit.
maxis the only limit a repository sets: the capacity profile and Preferences don’t change it.
Capacity
Section titled “Capacity”Emulators, iOS simulators and Gradle daemons are limited per machine, shared by every repository and worktree. The limits come from the capacity profile in Preferences > Resources and are never read from the repository: Automatic (the default, from the machine’s memory and cores), Light (1 emulator, 1 simulator, 2 Gradle daemons, 1 build at once), Balanced (2, 2, 4 and 2), One per worktree (no limit beyond the 16 emulator ports) or Custom (a number or no limit per kind and for builds at once). Both the app and taxilane apply them.
- Every worktree that holds a device has a lease on it. Starting the device and every moment its agent is working renew the lease, and it expires after the lease duration without activity (20 minutes by default, set in Preferences > Resources, never in the repository). Only devices whose lease has expired can be released.
- When you start a device and its pool is full, Taxilane releases one device with an expired lease, in this order (the least recently used first within each step): a stopped device whose worktree has no agent session, a stopped device whose agent is done or idle, a running device (stopped first) and, last, a device whose agent is blocked. A device whose agent is working, or whose lease is still valid, is never released; if none can be released the start fails and names the worktrees that hold them, with when each lease expires.
taxilane emulator start --waitandtaxilane simulator start --waitwait in line for a full pool instead of failing, for 30 minutes at most (--wait-timeout <minutes>changes it). Waiters are served first in, first out across the machine, and while anyone waits, other starts can’t take the device they wait for. Agents should run a waiting start in the background; the session hint says so.- A released emulator loses its port and a released simulator is deleted. The released worktree remembers why (
taxilane emulator statussays “released for …”), its port isn’t handed to another worktree while another one is free, and it gets the same port back when it starts again. Agents should runtaxilane emulator startbefore every use of the device: it is idempotent, re-acquires one if it was released and prints the serial to use. The session hint says so. - Gradle daemons are started by your builds, so they can’t be refused: the app (on every sidebar summary refresh, see below) and
taxilane pool trimstop the idle ones, longest idle first, until they are within the limit. taxilane pool statusshows each pool with its limit, holders and waiters, and the machine views of the app show the same with a notice for what was released.
Refresh cadence
Section titled “Refresh cadence”The capacity profile also sets how often the desktop app refreshes what it shows, so a lighter profile costs less while the app sits open:
| Profile | Worktrees, window focused | Worktrees, window in the background | Devices | Shown machine view | Sidebar summaries |
|---|---|---|---|---|---|
| Light | 10 s | 60 s | 30 s | 15 s | 120 s |
| Balanced | 3 s | 15 s | 10 s | 5 s | 30 s |
| One per worktree | 3 s | 5 s | 10 s | 5 s | 30 s |
| Custom | as Balanced | ||||
| Automatic | Balanced with 16 GB of memory or more, Light below |
- “In the background” means the window is visible but another app or window has the focus; a shown machine view then refreshes no more often than the worktrees. Focusing the window refreshes the statuses and agents at once.
- While the window is minimized, in the tray or the app is hidden, nothing is refreshed on a timer, except trimming Gradle daemons to their limit at the summaries’ pace.
- With Automatic, a Mac running on battery uses the Light cadence and goes back when it’s plugged in; the power source is checked at most once a minute, only while the window is shown. Windows and Linux don’t check it and count as plugged in.
- Tying the refresh cadence to the capacity profiles is provisional: it reuses a choice that exists today instead of adding a setting, and will be revisited when Settings is rethought (see the roadmap).
Xcode keeps one DerivedData folder per project path, so every worktree gets its own (several gigabytes for a real app) and Xcode never removes the folder of a deleted worktree. Turn on the Xcode provider (macOS only):
{ "providers": { "xcode": { "compilationCache": true } } }The worktree screen then shows an “Xcode DerivedData” section with each worktree’s folder, its size and last access, and the orphaned folders on the machine: those whose project no longer exists, whichever tool created them. The folders appear at once; their sizes and the totals read “Calculating…” until each folder has been measured in the background, several at a time, without freezing the app. Taxilane remembers each folder’s size between runs, in the app and the taxilane command alike, and only measures again the folders Xcode has used since, so after the first run most sizes appear at once. The calculation goes on if you leave the view (the sidebar entry shows the total once it’s ready), and reloading the view measures every folder again, showing the previous sizes until the new ones arrive. “Delete orphans” removes them, and “Clean up” (checked by default) also deletes the orphans after removing worktrees, including the folders of the worktrees it removes.
Outside the quota, only orphaned folders are ever deleted, and never the DerivedData of a project that still exists, never Xcode’s shared caches (CompilationCache.noindex, ModuleCache.noindex, …), and never a folder whose project is on a volume that isn’t mounted. Taxilane finds DerivedData in Xcode’s default location or the custom one set in Xcode’s preferences.
DerivedData quota
Section titled “DerivedData quota”DerivedData grows with every worktree an agent builds in, so Taxilane keeps the folders within a quota, chosen in Preferences > Resources:
- Automatic, the default: a quarter of the space DerivedData could use on its disk (the free space plus what DerivedData already takes), between 20 and 200 GB. With 100 GB free and 60 GB of DerivedData, the quota is 40 GB. It’s computed each time the quota is applied; if the free space can’t be read, nothing is released and the view says the quota is unknown.
- Fixed size: a number of gigabytes.
- No quota: nothing is released to honour a quota; only orphans are deleted, when you ask.
The quota is a machine setting, not part of the capacity profiles, and is never read from the repository. Settings saved before the automatic quota existed keep their fixed size if they had one, and otherwise become Automatic.
When the folders add up to more than the quota, Taxilane releases the orphaned folders first and then the least recently accessed folders of worktrees that are not in use, and stops as soon as the total fits. A worktree is in use while its agent is working or blocked, or its folder was accessed within the last hour. Folders of other projects, folders on unavailable volumes and the compilation cache are never released; if only those remain, the view says the quota is still exceeded and names the worktrees in use. The app applies the quota every time the folder sizes have been measured, and shows the usage against the quota (marked “automatic” for the automatic one), in the sidebar too, and the folders it released until you dismiss the notice. taxilane xcode trim applies it from the command line.
taxilane xcode # this repository's DerivedData folders with their packages, the orphans and the shared cachestaxilane xcode clean # delete the orphaned folderstaxilane xcode clean --swift-build # delete the .build folders of the worktrees not in usetaxilane xcode trim [--dry-run] # release folders until DerivedData fits the quotataxilane clean --yes --delete-derived-data # also delete them after removing worktreesCompilation cache
Section titled “Compilation cache”compilationCache is optional. With it, Taxilane writes a machine-wide ~/.taxilane/xcode/compilation-cache.xcconfig that turns on Xcode’s compilation caching with Swift and Clang prefix mapping, and every worktree’s environment gets XCODE_XCCONFIG_FILE pointing to it, so a new worktree’s first xcodebuild reuses what the others already compiled (in a test project, 16.5 s down to 1.8 s). The section shows the size of the shared compilation cache, which Xcode grows without Taxilane bounding it.
- It needs Xcode 26 or later and helps
.xcodeprojand.xcworkspaceprojects; Swift packages got no reuse between worktrees. - It reaches agents like any per-worktree variable. An
XCODE_XCCONFIG_FILEyou set yourself in that shell is replaced; declare it inenvinstead and it takes precedence over the provider’s. - Xcode opened from the Dock doesn’t inherit the agent’s shell. Set the build settings in the project if you want caching there too.
Swift packages and package caches
Section titled “Swift packages and package caches”Xcode resolves a project’s Swift packages into its DerivedData folder (SourcePackages), so each worktree has its own checkouts, which count against the quota and go away with the folder. They come from Xcode’s shared repository cache, so a new worktree resolves them without the network. The section and taxilane xcode show how much of each worktree’s folder are packages (“App.xcodeproj · packages 800 MB”), measured and remembered with the folder’s size; checkouts aren’t shared between worktrees.
The shared package caches, SwiftPM’s (~/Library/Caches/org.swift.swiftpm) and CocoaPods’ (~/Library/Caches/CocoaPods), are shown below the compilation cache when they exist. Like it, they don’t count against the quota and Taxilane never deletes them; only their default locations are measured.
Swift package builds
Section titled “Swift package builds”A repository that is a Swift package (a Package.swift in the worktree’s main folder) built with swift build leaves a .build folder in each worktree, which Xcode’s DerivedData doesn’t cover. With the Xcode provider declared, Taxilane reads each worktree’s .build folder too: the section lists it as a row of its worktree (“TASK-123 · .build”, with its packages from .build/checkouts and .build/repositories), and taxilane xcode by its path. Its last access is the last time a build wrote to it, and its size is measured and remembered like a DerivedData folder’s.
The .build folders count against the DerivedData quota, and the quota releases them like the DerivedData of a worktree that is not in use, the least recently built first. “Delete unused .build” in the section, and taxilane xcode clean --swift-build, delete the .build folders of the worktrees that are not in use right away; the next swift build recreates them. A .build folder is never orphaned: removing a worktree removes it with the rest of the worktree’s files.
CocoaPods
Section titled “CocoaPods”A CocoaPods project’s Pods folder is usually ignored by Git, so a fresh worktree can’t build until pod install runs. Turn on cocoaPods and Taxilane gives each new or provisioned worktree the base repository’s pods:
{ "providers": { "xcode": { "cocoaPods": true } } }For every Podfile.lock tracked by Git, at any depth, whose worktree has no Pods yet, Taxilane compares it with the base’s Pods/Manifest.lock, the same check CocoaPods’ “Check Pods Manifest.lock” build phase makes. When they match, the base’s Pods is cloned into the worktree with APFS copy-on-write (cp -c): instant, and it takes no disk until a file changes. When they don’t match, the base never ran pod install, or the volume can’t clone, nothing is copied (never a slow full copy) and taxilane new (also when it creates a multirepo group), taxilane provision and the worktree creation hook say which folders need pod install and why, with the same notice as the desktop app’s message after creating a worktree or a multirepo change. Their JSON (pods) also lists the folders whose pods were cloned, which the text leaves out. Pods are prepared after the files are copied and before the post-creation commands, so a pod install declared there finds them in place; a problem with the pods never fails the worktree.
Flutter
Section titled “Flutter”A fresh worktree of a Flutter repository doesn’t build: .dart_tool/, android/local.properties (with the flutter.sdk the Android build needs), ios/Flutter/Generated.xcconfig and ios/.symlinks are ignored by Git and only appear after flutter pub get. Turn on the Flutter provider and Taxilane runs it in every new or provisioned worktree:
{ "providers": { "flutter": {}, "gradle": {}, "emulator": {}, "ios-simulator": {}, "xcode": { "cocoaPods": true } } }flutter pub get runs in the worktree’s main folder after the files are copied and the pods are prepared, and before the post-creation commands, so a dart run build_runner build declared there finds the packages resolved. It runs whether or not the repository is approved: the command is fixed by Taxilane and runs no code of the repository. With a warm pub cache it resolves offline in seconds. taxilane new, taxilane provision and the worktree creation hook report the outcome (flutter.pubGet in their JSON). When it fails, because flutter isn’t on the PATH, a package can’t be downloaded or anything else, the worktree is kept and the report says flutter pub get is still needed and why. The desktop app started from Finder doesn’t inherit the shell’s PATH: it finds Flutter installed with Homebrew, but not always an SDK unpacked by hand elsewhere.
- FVM. When the repository has
.fvmrc, Taxilane runsfvm flutter pub get, so the version the repository pins is used. A version that isn’t installed is reported asflutter pub getstill needed. - The other providers do the rest. Flutter’s Android build is an ordinary Gradle build in
android/, so thegradleprovider handles its daemons, cache and memory, and theemulatorprovider its devices.xcodebuild, which Flutter runs for iOS, writes DerivedData thexcodeprovider attributes to the worktree, and theios-simulatorprovider gives it a simulator. Stack detection suggests all of them for a project made from Flutter’s template. - Devices. Flutter doesn’t read
ANDROID_SERIAL, and other worktrees’ devices are online too, soflutter runwithout-dasks or picks the wrong one. Start the worktree’s device withtaxilane emulator startortaxilane simulator start, then pass it explicitly:flutter run -d "$ANDROID_SERIAL"orflutter run -d "$IOS_SIMULATOR_UDID", and the same forflutter test integration_testandflutter drive. Never launch emulators withflutter emulators --launch, which starts one outside Taxilane’s pool. TheSessionStarthook tells Claude so, naming only the device providers the repository declares, andfvm flutterwhen it has.fvmrc. - CocoaPods. With
cocoaPodson, a new worktree gets the base repository’s pods next to the trackedios/Podfile.lock. Flutter’s first build in that worktree still runspod installitself, because it decides from a fingerprint kept inbuild/; with the pods already in place it downloads nothing. A “needspod install” report is handled by Flutter’s own build too. - Ports.
flutter runbinds its VM service and DevTools to free ports it picks, so worktrees don’t collide. If the repository fixes the web server port, reserve one per worktree withenvand pass it on:"env": { "FLUTTER_WEB_PORT": "${port}" }andflutter run -d chrome --web-port "$FLUTTER_WEB_PORT". build/and.dart_tool/stay per worktree: they hold absolute paths and incremental compiler state. The pub cache (~/.pub-cache) is already shared by every worktree.
A fresh worktree of a Node repository doesn’t run: node_modules is ignored by Git, so every script, test runner and dev server fails until the dependencies are installed. Turn on the Node provider and every new or provisioned worktree gets them:
{ "providers": { "node": {} } }- Package manager. Taxilane finds it from the lockfile in the repository’s main folder:
package-lock.jsonornpm-shrinkwrap.json(npm),pnpm-lock.yaml(pnpm),yarn.lock(Yarn) orbun.lock/bun.lockb(bun). With several lockfiles,packageManagerinpackage.jsondecides; otherwise pnpm, Yarn, bun and npm, in that order. A repository without a lockfile is reported as needing its dependencies, and nothing runs. - Cloned when the base matches. On macOS, when the worktree’s lockfile equals the base repository’s and the base was installed after its lockfile last changed (npm’s
node_modules/.package-lock.json, pnpm’snode_modules/.modules.yaml, Yarn’snode_modules/.yarn-integrityor.yarn-state.yml), every ignorednode_modulesof the base is cloned with copy-on-write. It takes seconds, uses no extra disk until files change, and runs nothing. If a clone fails, the clones made so far are removed and the dependencies are installed instead. - Installed otherwise, once the repository is approved. When they can’t be cloned (the branch changed the lockfile, the base isn’t installed, bun or Yarn Plug’n’Play, Linux or Windows), Taxilane runs
npm ci,pnpm install --frozen-lockfile,yarn install --immutable(Yarn Berry, with.yarnrc.yml) oryarn install --frozen-lockfile, orbun install --frozen-lockfilein the worktree. Installing runs the repository’s and its dependencies’ scripts, so it only happens when the repository is approved: declaringnodemakes the approval cover it, and the approval dialogs andtaxilane trustsay so. Until then the report says the dependencies are needed and which command to run. - Workspaces. npm, pnpm, Yarn and bun workspaces keep one lockfile at the root, so the one clone covers every package’s
node_modules, and the one install at the root fills them. Independent Node projects in subfolders, each with its own lockfile, aren’t prepared yet: declare their installs as post-creation commands. - Order and reports. The dependencies are prepared after the files are copied, the pods prepared and
flutter pub get, and before the post-creation commands, so anpm run builddeclared there finds them. A worktree that already hasnode_modulesis left as is.taxilane new,taxilane provisionand the worktree creation hook report the outcome (node.dependenciesin their JSON). A failed install (the manager isn’t on thePATH, the lockfile is out of sync withpackage.json) keeps the worktree and says why. - Ports. Give dev servers a port per worktree with
env, such as"env": { "PORT": "${port}" }, and start them with that variable instead of a fixed port. - After a clone. Files that the repository’s own scripts generate into
node_modules(a Prisma client, for example) come from the base’s checkout; run the generator again when the branch changed their sources. TheSessionStarthook tells Claude to reinstall with the repository’s manager afterpackage.jsonor the lockfile change, and never to link or copynode_modulesfrom another worktree. taxilane doctorchecksnodeand the manager of the lockfile (onlybunfor bun).
Python
Section titled “Python”A fresh worktree of a Python repository doesn’t run: its virtual environment is ignored by Git, so tests, scripts and dev servers fail until someone creates it again. Turn on the Python provider and every new or provisioned worktree gets its own .venv:
{ "providers": { "python": {} } }- Tool from the main folder.
uv.lockmeans uv,poetry.lockmeans Poetry, andrequirements.txtmeans pip, in that order when there are several (a Poetry repository that exports arequirements.txtis installed with Poetry). A repository with none of them is reported as needing an environment, without writing a lockfile. - Created, never cloned. A virtual environment holds absolute paths into the folder that created it:
bin/activate, the scripts’ first lines and the editable install of the project itself point there. A copy of the base’s.venvwould make the worktree run the base’s code, so each worktree’s environment is created by the tool:uv sync --locked,poetry install --no-interactionwithPOETRY_VIRTUALENVS_IN_PROJECT=trueso Poetry keeps it in the worktree, orpython3 -m venv .venvfollowed by.venv/bin/python -m pip install -r requirements.txt(pythonand.venv\Scripts\python.exeon Windows). None of them rewrites the lockfile. uv fills the environment from its cache, so a second worktree takes seconds. - Only once the repository is approved. Installing builds the project and any source package, which runs their build scripts, so it only happens when the repository is approved: declaring
pythonmakes the approval cover it, and the approval dialogs andtaxilane trustsay so. Until then the report says the environment is needed and which commands to run. - Ignored and never half made.
.venvgets a.gitignorethat ignores everything in it when the tool didn’t write one, so the worktree stays clean. When a step fails, the.venvit created is removed so the nexttaxilane provisiontries again; the worktree is kept and the report says why (the tool isn’t on thePATH, the lockfile is out of sync withpyproject.toml). - Order and reports. The environment is prepared after the Node dependencies and before the post-creation commands, so a
uv run python manage.py migratedeclared there finds it. A worktree that already has.venvis left as is.taxilane new,taxilane provisionand the worktree creation hook report the outcome (python.environmentin their JSON). - Your own settings. If your shell sets
UV_PROJECT_ENVIRONMENT, uv puts the environment there instead of.venv, and every provision syncs again. A Poetry repository withvirtualenvs.create = falseinstalls into whichever Python runs Poetry; don’t declare the provider for it. - Ports. Give dev servers a port per worktree with
env, such as"env": { "PORT": "${port}" }, and start them with that variable instead of a fixed one. - The
SessionStarthook tells Claude to sync the environment with the repository’s tool after its dependency files change, and never to link or copy.venvfrom another worktree. taxilane doctorchecksuvfor a uv repository, the Python interpreter andpoetryfor Poetry, and the interpreter for pip.