Skip to content

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.

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.

{ "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.

Terminal window
taxilane gradle # list the daemons, their memory, state and worktree
taxilane 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 worktrees

Daemon inspection needs ps (macOS and Linux).

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_OPTS you set yourself in that shell is replaced; declare it in env instead 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.properties and don’t share daemons with agent builds. Put the limits in gradle.properties too 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.bat too, 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.

Terminal window
taxilane maven # list the Maven daemons, their memory, state and worktree
taxilane 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 worktrees

Daemon inspection needs ps and lsof (macOS and Linux).

{ "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_NAME is <repository folder>-<worktree folder>, lowercased, with every character other than letters, digits, - and _ replaced by - (main-repo and TASK-123 give main-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. A COMPOSE_PROJECT_NAME declared in env takes precedence.
  • portVariables is 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}:5432 without colliding. Names follow the variable name rule and can’t be reserved names; a name also declared in env gets the declared value and no port.

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.

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.

Terminal window
taxilane compose up # start this worktree's services (detached) with its project name and ports
taxilane compose up --build -- api # build first, and only the api service
taxilane compose build # build this worktree's services
taxilane compose # the Compose projects of the worktrees and what removed worktrees left
taxilane 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 project
taxilane compose prune # list the networks and images left by removed worktrees
taxilane 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 images

Docker is only run for repositories that declare the provider, and only the Docker CLI is used.

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:

Terminal window
taxilane emulator start # start this worktree's emulator and wait for it
taxilane emulator status # emulator-5556 running
taxilane emulator stop
  • On each machine, the project configuration chooses the AVD (or leaves it automatic) and whether it runs without a window; --avd and --no-window override 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 .ini file 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 clean or 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 --audio keeps 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.dir in local.properties (the main folder’s, or else that of a Gradle build in a subfolder such as android/) 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, -e or -d. The SessionStart hook tells Claude so.

When Google’s android CLI is on the PATH, agents use it on the worktree’s own emulator, not against the pool:

  • The SessionStart hook and taxilane guide resources tell Claude to start the worktree’s emulator with taxilane emulator start and pass --device "$ANDROID_SERIAL" to android run, install, layout, screen and input, because android doesn’t read ANDROID_SERIAL and other worktrees’ emulators are online too.
  • They also tell it never to start or stop emulators with android emulator start or stop. Those take no port, so they would run an emulator outside Taxilane’s pool. The pool keeps launching emulators with the SDK’s emulator, whether or not android is installed.
  • android sends 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 with taxilane android metrics on or in the desktop app’s Preferences › Tools; the rule then stops asking for the flag.
  • android init copies Google’s android-cli skill into the skills folder of every agent it finds on the machine (~/.claude/skills, ~/.agents/skills, ~/.codex/skills and others). That skill manages emulators with android emulator and lists serials with adb devices. Taxilane never runs android init or suggests it, tells agents that its rules take precedence over the skill for emulators and devices, and taxilane doctor warns when the skill is installed.
  • taxilane android shows where android is, its version, the metrics setting and the folders that have the skill (android).

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.

Terminal window
taxilane headless start # launch the app hidden, without taking focus
taxilane headless capture # PNG of its window, even while hidden
taxilane headless status
taxilane headless stop

The 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.

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".

Terminal window
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 it
taxilane simulator stop

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.

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 -rf command 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.

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 adb sees, by USB or wireless debugging, and every iPhone or iPad xcrun devicectl reports 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 its ro.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_SERIAL or TAXILANE_IOS_DEVICE_UDID and passes it explicitly (adb -s "$TAXILANE_ANDROID_DEVICE_SERIAL", xcodebuild -destination "id=$TAXILANE_IOS_DEVICE_UDID"). ANDROID_SERIAL and IOS_SIMULATOR_UDID keep 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 status prints 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 devices runs only when something needs the devices, once every 2 seconds at most, shared with the emulator states, and getprop once 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.

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 acquire fails naming taxilane trust.
  • On demand. A worktree takes a slot with taxilane pool acquire <name> when it needs it, which runs acquire with its slot; running it again renews the lease and runs acquire again, so make the command safe to repeat. taxilane pool release <name> runs release and 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 release for its holder first; if that release fails, 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 max in 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 with eval "$(taxilane env)".
  • Removal. Removing or cleaning up a worktree runs release for each slot it holds and frees them even if release fails, which is reported.
  • Status. taxilane pool status lists the repository’s pools with their holders and waiters, and taxilane status shows each worktree’s slots (pool=db#2). The desktop app doesn’t show custom pools yet.
  • Limit. max is the only limit a repository sets: the capacity profile and Preferences don’t change it.

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 --wait and taxilane simulator start --wait wait 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 status says “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 run taxilane emulator start before 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 trim stop the idle ones, longest idle first, until they are within the limit.
  • taxilane pool status shows 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.

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 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.

Terminal window
taxilane xcode # this repository's DerivedData folders with their packages, the orphans and the shared caches
taxilane xcode clean # delete the orphaned folders
taxilane xcode clean --swift-build # delete the .build folders of the worktrees not in use
taxilane xcode trim [--dry-run] # release folders until DerivedData fits the quota
taxilane clean --yes --delete-derived-data # also delete them after removing worktrees

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 .xcodeproj and .xcworkspace projects; Swift packages got no reuse between worktrees.
  • It reaches agents like any per-worktree variable. An XCODE_XCCONFIG_FILE you set yourself in that shell is replaced; declare it in env instead 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.

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.

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.

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.

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 runs fvm flutter pub get, so the version the repository pins is used. A version that isn’t installed is reported as flutter pub get still needed.
  • The other providers do the rest. Flutter’s Android build is an ordinary Gradle build in android/, so the gradle provider handles its daemons, cache and memory, and the emulator provider its devices. xcodebuild, which Flutter runs for iOS, writes DerivedData the xcode provider attributes to the worktree, and the ios-simulator provider 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, so flutter run without -d asks or picks the wrong one. Start the worktree’s device with taxilane emulator start or taxilane simulator start, then pass it explicitly: flutter run -d "$ANDROID_SERIAL" or flutter run -d "$IOS_SIMULATOR_UDID", and the same for flutter test integration_test and flutter drive. Never launch emulators with flutter emulators --launch, which starts one outside Taxilane’s pool. The SessionStart hook tells Claude so, naming only the device providers the repository declares, and fvm flutter when it has .fvmrc.
  • CocoaPods. With cocoaPods on, a new worktree gets the base repository’s pods next to the tracked ios/Podfile.lock. Flutter’s first build in that worktree still runs pod install itself, because it decides from a fingerprint kept in build/; with the pods already in place it downloads nothing. A “needs pod install” report is handled by Flutter’s own build too.
  • Ports. flutter run binds 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 with env and pass it on: "env": { "FLUTTER_WEB_PORT": "${port}" } and flutter 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.json or npm-shrinkwrap.json (npm), pnpm-lock.yaml (pnpm), yarn.lock (Yarn) or bun.lock/bun.lockb (bun). With several lockfiles, packageManager in package.json decides; 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’s node_modules/.modules.yaml, Yarn’s node_modules/.yarn-integrity or .yarn-state.yml), every ignored node_modules of 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) or yarn install --frozen-lockfile, or bun install --frozen-lockfile in the worktree. Installing runs the repository’s and its dependencies’ scripts, so it only happens when the repository is approved: declaring node makes the approval cover it, and the approval dialogs and taxilane trust say 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 a npm run build declared there finds them. A worktree that already has node_modules is left as is. taxilane new, taxilane provision and the worktree creation hook report the outcome (node.dependencies in their JSON). A failed install (the manager isn’t on the PATH, the lockfile is out of sync with package.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. The SessionStart hook tells Claude to reinstall with the repository’s manager after package.json or the lockfile change, and never to link or copy node_modules from another worktree.
  • taxilane doctor checks node and the manager of the lockfile (only bun for bun).

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.lock means uv, poetry.lock means Poetry, and requirements.txt means pip, in that order when there are several (a Poetry repository that exports a requirements.txt is 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 .venv would make the worktree run the base’s code, so each worktree’s environment is created by the tool: uv sync --locked, poetry install --no-interaction with POETRY_VIRTUALENVS_IN_PROJECT=true so Poetry keeps it in the worktree, or python3 -m venv .venv followed by .venv/bin/python -m pip install -r requirements.txt (python and .venv\Scripts\python.exe on 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 python makes the approval cover it, and the approval dialogs and taxilane trust say so. Until then the report says the environment is needed and which commands to run.
  • Ignored and never half made. .venv gets a .gitignore that ignores everything in it when the tool didn’t write one, so the worktree stays clean. When a step fails, the .venv it created is removed so the next taxilane provision tries again; the worktree is kept and the report says why (the tool isn’t on the PATH, the lockfile is out of sync with pyproject.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 migrate declared there finds it. A worktree that already has .venv is left as is. taxilane new, taxilane provision and the worktree creation hook report the outcome (python.environment in 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 with virtualenvs.create = false installs 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 SessionStart hook tells Claude to sync the environment with the repository’s tool after its dependency files change, and never to link or copy .venv from another worktree.
  • taxilane doctor checks uv for a uv repository, the Python interpreter and poetry for Poetry, and the interpreter for pip.