Command-line reference
taxilane runs Taxilane’s worktree operations from a terminal, a script or an agent hook. It works on the Git repository that contains the current directory (the main checkout, a subfolder or any of its worktrees), and uses that repository’s project from the desktop app when there is one: its worktrees folder, local files and main branch. See Installation to put it on your PATH.
taxilane new TASK-123 # new feature/TASK-123 worktree, provisioned; prints its pathtaxilane new --branch hotfix/login # worktree for an existing branchtaxilane provision ../other-worktree # copy the declared files into a worktree made by another tooltaxilane status # every worktree with its changes, divergence and merged statetaxilane status --json # the same, as one JSON document for scriptstaxilane base # the branch this worktree's branch was created from, its pull request's basetaxilane overlap # the files this worktree changes that another worktree changes tootaxilane remove TASK-123 # remove one worktree and stop its emulator and simulatortaxilane repair # re-link the worktrees after the repository movedtaxilane open TASK-123 --herdr # open a worktree in Herdr with its environment and the project's agenttaxilane open TASK-123 --orca # the same in Orcataxilane open TASK-123 # the same in the runner chosen in the desktop app's Settingstaxilane clean --yes # remove merged or missing worktrees (without --yes it only lists them)taxilane stacks # the stacks detected in the repository and the providers they suggesttaxilane multirepo show # in a multirepo: its name, repositories, defaults and agenttaxilane project add # register this repository as a project of the desktop apptaxilane app --settings # open the desktop app on this repository's project settingseval "$(taxilane env)" # load this worktree's variables from .taxilane.json "env"Output is plain English text; scripts should use --json, which every command that reports a result accepts (see JSON output). Standard output and standard error are always UTF-8, whatever the system’s locale or code page, so paths with accents reach scripts and agent hooks intact; on a Windows console set to another code page they may show garbled.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 |
Success. |
1 |
The operation failed; the reason is on standard error. Failures a command doesn’t handle specifically are printed as one line starting with taxilane:, never as a stack trace. |
2 |
Wrong usage: unknown command or option, missing argument, or hook input that isn’t the expected JSON. |
3 |
provision --check found differences between the worktree and the base repository. |
130 |
The command was interrupted (Ctrl+C or a termination signal) and stopped cleanly, e.g. leaving the line of a start --wait. |
Worktrees
Section titled “Worktrees”taxilane new <task-id> [--fix] [--from <ref>] [--fetch] [--worktrees-root <dir>]taxilane new --branch <branch> [--fetch] [--worktrees-root <dir>]Creates a worktree, copies the declared files into it, prepares its environment and prints its absolute path, alone on standard output, so cd "$(taxilane new TASK-123)" works.
- With a task id, the worktree gets a new
feature/<task-id>branch, orfix/<task-id>with--fix. The branch starts at the HEAD of the worktree you run the command in, or at--from <ref>(a branch, tag or commit; an unknown ref fails before anything is created). Standard output has only the new worktree’s path; standard error says the commit the branch starts at, for examplebranched from origin/develop at a41d265 Merge pull request #12(withoutfrom <ref>when there’s no--from). - With
--branch, the worktree checks out an existing branch.--fixand--fromaren’t accepted with it. A branch that exists only onorigin, given as<name>ororigin/<name>, gets a local branch of that name tracking it; a local branch with that name takes precedence. - A new branch never tracks its start point, so pushing it never targets the branch it started from.
- The branch it starts from is recorded as the new branch’s base: the current worktree’s branch, or the branch
--fromnames (origin/developis recorded asdevelop). A tag, a commit or a detached HEAD records nothing, and--branchkeeps whatever an existing branch already has. --fetchrunsgit fetch --prune originfirst, so--from origin/developor a remote branch is current. It never waits for credentials: if the fetch fails, Git’s error is printed, nothing is created and the exit code is 1.--worktrees-root <dir>sets where the worktree goes. It’s required when the repository has no project in the desktop app; relative paths are resolved against the current directory.- A task id containing
/(team/TASK-1) keeps the/in the branch (feature/team/TASK-1) and becomes one folder,team-TASK-1. - If creating the worktree fails after Git created it or its new branch, both are removed, so retrying with the same task id works. A branch that existed before is never deleted.
- It works in submodules and in repositories whose Git folder is separate from the working tree. In a bare repository it fails saying bare repositories aren’t supported yet, and in a repository without commits it fails asking for a first commit.
- When Git fails for a cause it recognizes (branch already exists, lock file present, permission denied…), a
hint:line after Git’s message explains it and suggests what to do, for exampletaxilane new --branch feature/TASK-123.
provision
Section titled “provision”taxilane provision [<path>]taxilane provision --check [<path>]Copies the project’s local files and the repository’s declared copy files into an existing worktree (the current directory by default), links its link files, reserves its ports, writes its envFile and runs the hooks.postCreate commands. Use it for worktrees created by another tool. Prints one path per line: linked files end in (linked), and files declared in link that were copied because symbolic links aren’t available end in (copied: symbolic links aren't available). Then it lists the files it removed because they were deleted from their local folder in the base repository, ending in (removed: deleted from the base folder), and the symbolic links it skipped inside local folders, ending in (skipped: symbolic link). taxilane new and the worktree-create hook note the skipped links on standard error.
With --check nothing is changed: it compares the files provisioning would give the worktree with the base repository’s and prints one line per difference, <path>: missing, <path>: differs (a copy whose content changed in the base repository) or <path>: not linked (a link file that isn’t a symbolic link to the base repository’s file) or <path>: deleted in base (a file copied from a local folder that the base folder no longer has; the next taxilane provision removes it). It exits with 0 when everything matches, 3 when there is any difference, and 1 on an error.
Post-creation commands run, and the variables the repository declares in env and its envFile apply, only when the repository is approved on this machine (see Approving a repository). On a terminal taxilane new and taxilane provision print the commands, the declared variables (NAME = template) and the environment file before preparing the worktree’s environment, and ask Approve them on this machine? [y/N] on standard error; only an explicit yes approves and applies them. Without a terminal they skip them, print taxilane: skipped N post-creation commands not approved on this machine; run 'taxilane trust' in <repo> to review them and taxilane: skipped environment variables not approved on this machine (PORT, …); run 'taxilane trust' in <repo> to review them on standard error and succeed.
When a post-creation command fails
Section titled “When a post-creation command fails”The worktree is kept. taxilane new prints its path on standard output, the failure (command, exit code and error output) on standard error, and exits with 1. taxilane provision prints the failure on standard error and exits with 1.
taxilane trust [<path>] [--yes] [--revoke]Prints what the repository asks Taxilane to run or apply, and whether it is approved on this machine: its post-creation commands, one per line, then Environment variables declared by <repo>: with one NAME = template line per variable, Environment file: <path>, and Pools declared by <repo>: with each custom pool, its max, its acquire and release commands and its variables, and a line saying Node dependencies will be installed when the repository declares the node provider. On a terminal it asks to approve them; --yes approves without asking, so scripts and CI can do it, and --revoke removes the repository’s approval. It says so when the repository declares no commands, variables, environment file, pools nor Node install. An agent reading a note about variables awaiting approval should ask you to run it rather than run it itself. Exit code 0 unless something fails.
status
Section titled “status”Lists every worktree of the repository, one per line: path, branch (or (detached)), then details:
| Detail | Meaning |
|---|---|
main |
The main checkout. |
origin=taxilane|claude-code|herdr|orca|other |
Where the worktree was created. |
base=develop |
The recorded base of its branch. |
locked |
Held by an agent session. |
desktop(until 14:10), desktop(waiting 1/2) |
It holds the desktop turn until that time, or waits for it in that place of the line. |
build(running 2), build(waiting 1/3) |
It runs that many builds through the build turn, or waits for a build slot in that place of the line. |
android-device(Pixel 8), ios-device(waiting 1/2) |
It holds that physical device (, disconnected when it’s unplugged), or waits for one of that platform in that place of the line. |
pool=db#2, pool=db(waiting 1/2), pool=db(taken for main-repo · TASK-3) |
It holds slot 2 of that custom pool, waits for one in that place of the line, or lost its slot to that worktree. |
agents=claude(blocked, app-task-123),codex |
Agents running in it, with their state (working, blocked, done, idle) when Herdr or Orca reports it or, for Claude, when its hooks do. A Claude agent also lists, after its state, the names of its live sessions whose folder is in that worktree, as Claude Code’s session registry has them (claude(app-task-123) when there’s no state). |
listening=8765,10011 |
The ports Orca sees it listen on, while Orca runs. |
changes=N |
Uncommitted changes. |
ahead=N behind=N |
Divergence from its upstream. |
base-ahead=N base-behind=N of develop |
Divergence from its base: the recorded base when it resolves, otherwise the main branch. |
merged |
Merged into its base or into the main branch. |
not-started |
The branch never had commits of its own (shown instead of merged). |
folder-missing |
The folder was deleted by hand. |
status-unavailable (reason) |
Its status couldn’t be read, with Git’s reason. |
status --json
Section titled “status --json”taxilane status [--json]Prints one compact JSON object on a single line instead of the text lines. Errors still go to standard error as text, with nothing on standard output. For example (wrapped here):
{ "repository": "/home/dev/projects/main-repo", "mainBranch": "main", "worktrees": [ { "path": "/home/dev/projects/main-repo", "branch": "main", "head": "4f1c2e9a0b7d3c58e1f6a2b94d07c3e5a8f1b620", "main": true, "locked": false, "folderMissing": false, "origin": null, "base": null, "agents": [{ "name": "claude", "state": "blocked", "stateSource": "claude-code", "herdrState": null, "sessions": [{ "name": "main-repo-task-123", "pid": 4242 }], "activity": null }], "status": { "uncommittedChanges": 0, "upstream": { "ahead": 0, "behind": 0 }, "mainBranch": null, "base": null, "merged": false, "lastCommitAt": "2026-10-18T09:12:44Z", "createdAt": "2026-10-17T16:40:02Z" }, "listeningPorts": [{ "port": 8765, "process": "Python", "url": "http://127.0.0.1:8765" }] } ]}| Field | Meaning |
|---|---|
repository, mainBranch |
The repository’s path and its resolved main branch (null if it can’t be resolved). |
branch, head |
The checked-out branch (null when detached) and the commit. |
main, locked, folderMissing |
The main checkout, held by an agent session, folder deleted by hand. |
origin |
taxilane, claude-code, herdr, orca or other; null for the main checkout. |
base |
The recorded base of its branch; null when none is recorded or it’s detached. |
agents |
The agents running in it: name, state (working, blocked, done, idle; null when nothing reports one), stateSource (herdr, orca, claude-code or null), herdrState, the state when Herdr is the source and null otherwise, and sessions, the agent’s live Claude Code sessions in that worktree (name and pid; empty for other agents or when none is found), and activity, what Orca reports about it, or null when Orca doesn’t report the agent: waitingOn ({ "tool", "input" } while it waits on a tool, otherwise null), prompt and lastMessage, each null when missing. |
status |
null when the folder is missing or its status couldn’t be read. |
statusProblem |
Only present when the status couldn’t be read: Git’s reason. |
status.uncommittedChanges, status.merged |
Uncommitted changes; merged into its base or into the main branch. |
status.upstream, status.mainBranch |
{ "ahead": n, "behind": n } against the upstream and the main branch; null when there is none. |
status.base |
{ "branch", "ahead", "behind" } against its base: the recorded base when it resolves (origin/<base> first, the local branch otherwise), otherwise the main branch; null when there is none or the worktree is on it. |
status.lastCommitAt |
Time of the last commit in ISO-8601 UTC, or null. |
listeningPorts |
The ports Orca sees it listen on, sorted: { "port", "process", "url" }, url being the address a dev server printed in an Orca terminal, or null. null when Orca isn’t installed, isn’t running or couldn’t be asked. |
desktop |
null, or the worktree’s desktop turn: { "role": "holder", "since", "expiresAt" } when it holds it, { "role": "waiting", "position", "since" } when it waits for it, with ISO-8601 UTC times. |
build |
null, or the worktree’s builds: { "running", "waiting" }, the number of builds it runs through the build turn and its place in the build queue (null when it doesn’t wait). |
devices |
{ "android", "ios" }, each null, { "role": "holder", "id", "alias", "model", "connected", "expiresAt" } when the worktree holds that platform’s physical device, or { "role": "waiting", "position", "since" } when it waits for one, with ISO-8601 UTC times. Devices are only read while some worktree holds or waits for one. |
pools |
The custom pools the worktree holds, waits for or lost a slot of: a list of { "name", "role": "holder", "slot", "expiresAt" }, { "name", "role": "waiting", "position", "since" } or { "name", "role": "lost", "at", "forWorktree" }, with ISO-8601 UTC times; empty when none. |
status.createdAt |
Time the worktree was created, in ISO-8601 UTC, read from Git’s administrative folder for it; null for the main checkout or when it can’t be read. |
Every field is always present, with null when it doesn’t apply. The field names are a contract: later versions only add fields and never rename, remove or change the type of one.
taxilane base [<task id | path | branch>] [--set <branch>] [--json]Prints the branch a worktree’s branch was created from, alone on standard output, so gh pr create --base "$(taxilane base)" opens its pull request against the right branch. Without a target it’s the worktree containing the current directory.
- Taxilane records it when it creates a branch:
taxilane new, Claude Code’sWorktreeCreatehook, the desktop app’s “New worktree” and the worktrees of a multirepo group, which start from each repository’s main branch. - It’s stored in the repository’s Git config as
branch.<branch>.gh-merge-base, the keygh pr createalready reads as its default base. Nothing goes into the working tree; every worktree of the repository sees it, renaming the branch keeps it and deleting the branch removes it. status,cleanand branch deletion count a branch as merged when it’s merged into its recorded base or into the main branch, so a feature branch of an epic can be cleaned up once it reaches the epic. A branch merged with squash or rebase counts too, once that branch holds its changes. A base that doesn’t resolve (deleted, never fetched) falls back to the main branch.- When none is recorded (a worktree created by Herdr or
git worktree add, or a branch from before Taxilane recorded bases), it says so on standard error, suggests--setand exits with1. A detached worktree has no branch and also exits with1. --set <branch>records it, replacing any previous value. The value must be a local branch or a branch of a remote, whose remote prefix is dropped (origin/developis recorded asdevelop); a tag or an unknown name records nothing and exits with1.--jsonprints{ "path", "branch", "base" }, withbasenull(and exit code1) when none is recorded.
overlap
Section titled “overlap”taxilane overlap [<task id | path | branch>] [--all] [--json]Lists the files that more than one worktree of the repository is changing at once, so parallel changes find out before their pull requests collide.
- A worktree changes a file when the file differs between its working tree and the commit where its branch left its base: the branch’s commits, staged and unstaged edits and deletions, plus new files Git doesn’t ignore. The base is the one
taxilane statuscompares with, the recorded base or the main branch; changes the base made after the branch left it don’t count. - Two worktrees overlap on a file when both change it, whatever the lines. Worktrees with different bases are reported together, each one with its base, since the conflict arrives when one base is merged into the other.
- Inside a linked worktree, or with a target, it lists only the files that worktree shares; in the main checkout, every overlap of the repository. Each file is followed by one line per worktree: its branch (
(detached)without one), its base and its path. - Files the repository expects to be edited in parallel are left out when
.taxilane.jsondeclares them inoverlap.ignore;--allincludes them. - A worktree that can’t be compared (its folder is missing, it has no base, or Git fails to read it) is reported on standard error and the others are still compared.
- It exits with
0whether or not it finds overlaps. --jsonprints{ "repository", "worktree", "files", "skipped" }:worktreeis the target’s path ornull, each file is{ "path", "worktrees": [{ "path", "branch", "base" }] }and each skipped worktree is{ "path", "branch", "reason" }.
taxilane hooks install [--project] [--yes] [--json]taxilane hooks uninstall [--project] [--yes] [--json]taxilane hooks install --herdr [--yes] [--json]taxilane hooks status [--json]Manages Taxilane’s Claude Code hooks in Claude Code’s settings file: $CLAUDE_CONFIG_DIR/settings.json, or ~/.claude/settings.json; with --project, the repository’s .claude/settings.json.
installadds theWorktreeCreate,WorktreeRemove,SessionStart,UserPromptSubmit,Notification,Stop,SessionEndandPreToolUsehooks (the last one six times: forBashcommands that mentioncomputerand for Claude’s computer-use tools that act on the desktop, which take the desktop turn, and forBashcommands that mentiongradle,mvn,xcodebuildorswift, which go through the build turn), keeping every other setting and hook. A hook is Taxilane’s when its command starts withtaxilane hook; installing again adds the missing ones, replaces the ones whose command, tool matcher oriffilter differ and never duplicates. It prints what it will add (+), replace (~) or remove (-) and asks[y/N]unless--yesis given; answering no writes nothing and exits with0.uninstallremoves every Taxilane hook, keeps everything else, and drops an event left empty.statussays whether the hooks areinstalled,outdated(naming the events that are missing or different) ormissing, for the user settings and, inside a repository, for the repository’s.- With Herdr installed,
statusadds aherdr plugin:line for Taxilane’s Herdr plugin:installed,disabled,broken,missing, orunknownwith Herdr’s message whenherdr plugin listfails, followed by its source and folder. The plugin isbrokenwhen Herdr reports warnings for it, such asmanifest unavailablewhen it is linked to a folder that no longer exists; Herdr then stops running its hooks without any error. The warnings follow on their own lines, and a broken or missing plugin ends with the command that fixes it. install --herdrreinstalls the plugin from the repository when it is broken or missing: it removes the current install (herdr plugin unlinkfor a linked plugin,herdr plugin uninstallfor a GitHub one) and runsherdr plugin install CiroFeliu/Taxilane/integrations/herdr --yes. It prints the Herdr commands and asks[y/N]unless--yesis given. When the plugin is installed or disabled it runs nothing; it exits with1when Herdr isn’t installed, can’t be checked or a command fails, stopping at that command. It can’t be combined with--project,uninstallorstatus.- A settings file that isn’t valid JSON is never written: the command prints its path and the problem on standard error and exits with
1. - With
--jsonnothing is asked:installanduninstallwrite only with--yes, and printpath,appliedand theadded,replacedandremovedhooks.status --jsonprintsuserandproject(nulloutside a repository), each withpath,stateandevents, andherdr(nullwithout Herdr) withstate,source,root,warningsanderror.install --herdr --jsonprints thestepsas command lines,applied, andherdrwith the plugin’s state afterwards.
taxilane guide [<topic>] [--plain]taxilane guide --migrate [--file <path>]taxilane guide install (--agent codex|gemini | --project | --file <path>) [--yes] [--json]taxilane guide uninstall (--agent codex|gemini | --project | --file <path>) [--yes] [--json]taxilane guide status [--file <path>] [--json]Taxilane’s workflow rules for agents, in the topics worktrees, parallel, resources and cleanup. See Using with agents.
guide [<topic>]prints the first line (the rules are defaults; the project’sAGENTS.mdand the person’s instructions take precedence) and then the rules of the topic, or of every topic, that apply in the current directory: main checkout or worktree, whether the runner in use is available (Herdr answering, or Orca installed) and which providers the repository declares. The rule about opening sessions names that runner:taxilane open <id> --orcawhen Orca is in use;--plainnames it too. The rules that don’t apply follow under “Not applicable here:”, each with the condition it needs. An unknown topic is a usage error (exit2) listing the topics; outside a Git repository it exits with1and points to--plain.--plainprints every rule of the requested topics with its condition, without looking at the current directory, so it works anywhere.--migrateprints every rule with its id and an instruction for an agent: compare the given file with the rules, list what it repeats, propose removing it and show the diff without applying anything until the person confirms. It doesn’t read or write the file.installwrites a block that says to runtaxilane guidebetween<!-- taxilane:guide v1 -->and<!-- /taxilane:guide -->into a file chosen with--agent(codex:$CODEX_HOME/AGENTS.md, or~/.codex/AGENTS.md;gemini:~/.gemini/GEMINI.md),--project(the repository’sAGENTS.md) or--file; one of them is required, and Cursor has no user-level file, so--agent cursoris a usage error. It creates the file when missing, keeps every other byte, never duplicates the block, replaces one from an older version, prints what it will write and asks[y/N]unless--yesis given; answering no writes nothing and exits with0.uninstallremoves the block and the line breakinstalladded from the same targets, leaving everything else.statussays for the Codex and Gemini files, the repository’sAGENTS.md(inside a repository) and--filewhether the block isinstalled,outdatedormissing.installandstatuswarn on standard error when a file mentionstaxilane new,taxilane openortaxilane cleanoutside the block, suggestingguide --migrate, andstatuswarns when Claude Code’sSessionStarthook is installed and the repository’sAGENTS.mdor the--filealso has the block, since Claude Code would get the rules twice. Warnings never change a file.- With
--json,installanduninstallask nothing and write only with--yes, and printpath,applied,stateandwarnings;status --jsonprintstargets({ target, path, state, duplicates }) andwarnings.
remove
Section titled “remove”taxilane remove <task id | path | branch> [--force|-f] [--delete-branch | --force-delete-branch] [--keep-compose-project | --compose-volumes]Removes one linked worktree, the way the desktop app’s remove does. The target is, in this order, the path of a worktree, the exact name of its branch, or a task id (the worktree at <worktrees folder>/<task id>); no match, or more than one, removes nothing and fails (listing the candidates). The main worktree is never removed.
Without --force it refuses a worktree with uncommitted or untracked changes, a locked one (taxilane: <path> is locked (<reason>); use --force to remove it anyway), or one where an agent is running (taxilane: claude is running in <path>; use --force to remove it anyway), and exits with 1. With --force it removes it anyway, overriding the lock. The branch is kept unless you pass --delete-branch, which deletes it only when it’s merged into its recorded base or into the project’s main branch (deleted branch …, or kept branch … (not merged into its base or the main branch); a kept branch doesn’t make the command fail). --force-delete-branch deletes it even if it isn’t merged.
After removing it, the command stops what the repository’s providers keep for that worktree: its Android emulator (stopped emulator …), its iOS simulator (stopped simulator …) and the idle Gradle daemons whose last build was in it (stopped Gradle daemon …). It also deletes the worktree’s copies of its emulator’s AVD (deleted AVD …), stopping that emulator first; an AVD that can’t be deleted is reported on standard error without changing the exit code. A resource that can’t be stopped is reported on standard error and the exit code is 1; the worktree is already removed by then. Its Herdr workspace is closed too, and so are its Orca terminals while Orca is running (Orca is never started for this; a terminal that can’t be closed is reported on standard error without changing the exit code). Its headless desktop app, if running, is stopped before the folder is removed. If Git can’t delete the folder because a program is using it (typically a Herdr or Orca shell on Windows), the workspace, the Herdr panes inside the worktree and its Orca terminals are closed and the removal is retried once; a worktree Git had already unregistered but whose folder is left is finished by deleting that folder, and a folder still in use fails with a message saying so.
When the repository declares the docker-compose provider, the worktree’s Compose project is taken down after the folder is removed (docker compose -p <name> down), and the networks and built images it leaves are removed, keeping its volumes, as clean --down-compose-projects does (took down Compose project …, removed image …, kept volume …). --compose-volumes removes its volumes too, and --keep-compose-project leaves the project as it is; the two can’t be combined, and in a repository without the provider either one only prints a warning that it has no effect. A project that can’t be taken down, or Docker being unavailable (taxilane: Docker isn't available (…), so the Compose project was kept), is reported on standard error without changing the exit code.
repair
Section titled “repair”taxilane repairRe-links the worktrees after the repository or the worktrees folder moved, as the desktop app does when you change a project’s folders: the worktrees Git still lists at their old location are looked for under the project’s worktrees folder, by their folder name, and re-linked (repaired <path>). With nothing to re-link it prints Nothing to repair. It needs the repository’s project from the desktop app, since that’s where the worktrees folder is stored; without it, it exits with 2.
taxilane open <task id | path | branch> --herdr [--agent <name>]Opens one worktree in Herdr, the way the desktop app’s “Open in Herdr” does: a focused workspace under the repository’s space, a shell with the worktree’s environment (what taxilane env prints) and the project’s agent launch command running in it (opened <path> in Herdr with Claude (pane w1:p2)). When Herdr already has the worktree open and one of its panes runs an agent (Herdr reports a status for it, idle and done included), that agent’s pane is focused and nothing is typed (focused <path> in Herdr (already open, pane w1:p3)). When the workspace is open but no pane has a live agent, for example after quitting it, the agent is started in a new pane of that workspace with the worktree’s environment, and the other panes are kept (started Claude in <path>'s open Herdr workspace (pane w1:p4)). Every line names the agent’s pane, so an orchestrator knows where to write.
When the agent command runs Claude Code (claude, a path ending in /claude, or either after headroom wrap or environment assignments) as a single command without its own -n/--name, open adds -n <name> so the session can be told apart when messaging it: <project>-<id> for a worktree, where <project> is the repository’s folder name and <id> the worktree’s folder name (main-repo-task-123), and <project> for the main worktree. Names are lowercase letters, digits and single hyphens (other characters become a hyphen, at most 64 characters), and when a live Claude session already has the name, -2, -3… is appended. Another agent, or a command that chains several (source env.sh && claude), is typed unchanged. After the agent starts, open waits up to 10 more seconds for the session to appear under that name in Claude Code’s session registry (~/.claude/sessions, or $CLAUDE_CONFIG_DIR/sessions) and appends it to the line (opened <path> in Herdr with Claude (pane w1:p2) as session main-repo-task-123). When it only focuses a live Claude agent, it reports the live session in that folder, preferring the name it would have given and otherwise the most recently started one. Without a confirmed name the line has no session and the open still succeeds. The registry is Claude Code’s internal format, read only and tolerantly: if it changes or can’t be read, names are simply not reported.
After typing the agent command, open waits up to 10 seconds for Herdr to detect the agent in that pane. If it doesn’t, the command fails with exit code 1, naming the pane and the command, and the pane is left open: an agent Herdr can’t recognise, or a slow start, can be checked there.
The target is found as in remove, except that the main worktree is allowed. --herdr is the destination; without --herdr or --orca, open uses the runner in use, the one chosen in the desktop app’s Settings while it’s installed, or else the first installed of Herdr and Orca; --agent <name> runs another of the project’s agents, matched by name ignoring case, and an unknown name exits with 2 listing the project’s agents. If Herdr isn’t installed, its command fails or the agent doesn’t start, the error is on standard error and the exit code is 1.
taxilane open <task id | path | branch> --orca [--agent <name>]Opens one worktree in Orca, the way the desktop app’s “Open in Orca” does (see Orca). Orca is started when it isn’t running (up to 30 seconds), the repository is registered with Orca when needed, and the repository’s non-Orca worktrees are made visible when Orca would hide this one. When one of the worktree’s Orca terminals has a live agent, that terminal is focused and nothing is typed (focused <path>'s running agent in Orca (terminal term_…)). Otherwise a new focused terminal runs the agent command with the worktree’s environment (env 'NAME=value' … <agent>, or PowerShell assignments on Windows), named as with --herdr, and open waits up to 10 seconds for Orca to report the agent in it (opened <path> in Orca with Claude (terminal term_…) as session main-repo-task-123); if it doesn’t, the command fails with exit code 1, naming the terminal and the command, and the terminal is left open. At most one of --herdr and --orca is accepted; with neither, open uses the runner in use. If Orca isn’t installed (the message names onorca.dev), doesn’t start, or its command fails, the error is on standard error and the exit code is 1. When the repository declares the emulator provider and the worktree’s emulator is running, or the iOS simulator provider and its simulator is booted, that device is shown in the worktree’s emulator view in Orca first, and the line ends with , with emulator-5556 in its emulator view (or the simulator’s UDID); failing to show it doesn’t fail the open. When both are running, neither is shown and standard error says why. After opening in Orca, the worktree’s board status, comment and pull request or issue links are updated in Orca (see Orca); if that fails, taxilane: couldn't update <path> in Orca: … goes to standard error and the exit code stays 0. In a multirepo folder --orca opens the group’s worktrees or the multirepo agent; see Multirepos.
taxilane orca sync [<task id | path | branch>] [--json]Updates the board status, comment and pull request or issue links of a worktree in Orca, or of every worktree of the repository without a target, by the same rules as the desktop app, which doesn’t need to be open. It prints updated <path> in Orca for each worktree whose card it changed; worktrees already in step and ones Orca doesn’t list print nothing. Each failed update prints taxilane: couldn't update <path> in Orca: … on standard error. Orca is never started: when it isn’t running, taxilane: Orca isn't running, so its board wasn't updated goes to standard error. The exit code is 1 when Orca isn’t running or an update failed, and 0 otherwise. --json prints {"orcaRunning": true, "updated": [paths], "failures": [{"path", "message"}]} instead of the lines. Claude Code’s agent-state hook runs it in the background for the session’s worktree.
taxilane clean [--yes|-y] [--delete-branches] [--stop-gradle-daemons] [--stop-maven-daemons] [--stop-emulators] [--delete-simulators] [--delete-derived-data] [--down-compose-projects [--compose-volumes]]Selects the same worktrees as the desktop app’s “Clean up”: not the main one, not locked, not one where an agent is running, and either merged with no uncommitted changes or with their folder gone. Without --yes it only lists what it would do (would remove …) and ends with the command to run, repeating the options you gave and naming only what would be removed; with --yes it does it (removed …). With nothing to do it prints Nothing to clean up.
A worktree where an agent is running is listed as kept <path> (claude is running); if running agents can’t be checked on the platform, a note on standard error says so. A worktree whose status couldn’t be read is listed as skipped <path> (status unavailable: <reason>).
| Option | Also… |
|---|---|
--delete-branches |
Deletes the removed worktrees’ branches if they’re merged into their recorded base or into the project’s main branch (kept branch … otherwise). |
--stop-gradle-daemons |
Stops the idle Gradle daemons whose last build was in a removed worktree. |
--stop-maven-daemons |
Stops the idle Maven daemons whose last build was in a removed worktree (would stop Maven daemon … without --yes). |
--stop-emulators |
Stops the removed worktrees’ Android emulators. |
--delete-simulators |
Deletes the removed worktrees’ iOS simulators and orphaned Taxilane simulators. |
--delete-derived-data |
Deletes orphaned Xcode DerivedData, the removed worktrees’ folders included. |
--down-compose-projects |
Takes down the Docker Compose projects of the removed worktrees and removes the networks and built images they leave, keeping their volumes (took down Compose project …, removed image …, kept volume …; would take down Compose project … without --yes). Only for repositories that declare the docker-compose provider; a project that can’t be taken down, or Docker being unavailable, is reported on standard error without changing the exit code. |
--compose-volumes |
With --down-compose-projects, also removes the volumes of the removed worktrees’ projects. Without --down-compose-projects it is a usage error. |
The copies of the emulator’s AVD that removed worktrees had are deleted too (would delete AVD … in the listing, deleted AVD … once removed), stopping their emulators first; one that can’t be deleted is reported on standard error without changing the exit code. The Herdr workspaces and Orca terminals of removed worktrees are closed too (would close Herdr workspace of … and would close Orca terminals of … in the listing; Orca is only asked while it runs). A daemon, emulator, Herdr workspace or Orca terminal that can’t be stopped or closed is reported on standard error without changing the exit code.
Multirepos
Section titled “Multirepos”In a multirepo folder (see Multirepos and groups), new, status, open and clean act on its groups, and taxilane multirepo configures it.
taxilane multirepo init [--worktrees-root <dir>] [--name <name>] [--use-worktrees-root | --keep-worktrees-folder] [--yes]taxilane multirepo showtaxilane multirepo trust [<folder>] [--yes | --revoke]taxilane multirepo name <name> | --cleartaxilane multirepo add-repo <alias> <path> [--use-worktrees-root | --keep-worktrees-folder]taxilane multirepo remove-repo <alias>taxilane multirepo defaults <alias>[,<alias>...] | --cleartaxilane multirepo agent <command> [--name <name>] [--headroom]taxilane multirepo workspace set [--alias <alias>] [--default] | clear | detecttaxilane multirepo env [set <alias> <name> <template> | unset <alias> <name>]taxilane multirepo worktrees-root <dir>taxilane multirepo deletetaxilane new <task-id> [--repos <alias>[,<alias>...]] [--fix] [--fetch]taxilane open <task id | branch> --herdrtaxilane open --herdrmultirepo initin a folder that already has a declaration (for example one that moved) shows the same review asmultirepo trustand asks before approving it (--yesapproves without asking; without a terminal, or with--json, and without--yesit exits with1; answering no changes nothing). Once approved it registers the multirepo and a project for each declared repository without one (asking about<worktreesRoot>/<alias>asadd-repodoes);--worktrees-rootand--nameexit with2there. It never forgets other known multirepos, even when their folder can’t be reached. Its--jsonfor an existing declaration hasname,path,declaration,registered(false when it was already approved and known) and the registeredprojects.multirepo namesets the name the multirepo is shown with; a blank name exits with2.showprints the name first, and its--jsonhasname.multireposubcommands work in the multirepo folder or anywhere in its repositories and worktrees, and accept--json; outside a multirepo they exit with1. A wrong alias exits with2.- Only multirepos approved on this machine apply (Approving a multirepo). Under a declaration that isn’t approved,
new,status,openandcleanbehave as outside a multirepo and print a note on standard error naming the file andtaxilane multirepo trust; hooks print nothing.multirepo showstill shows it, withnot approved on this machine("approved": falsein--json); the subcommands that write exit with1. multirepo trustshows the nearest declaration (or the one in<folder>): its declared name, each repository with its resolved path, the worktrees root and the workspace repository, marking paths outside the folder’s parent. On a terminal it asks ([y/N]) and approves on yes;--yesapproves without asking; without a terminal and without--yesit exits with1.--revokeforgets the multirepo and keeps the file. Its--jsonobject haspath,declaration,name(when declared),approved,changed,repos(withoutsideParent),worktreesRoot,worktreesRootOutsideParent,workspaceandignoredDeclaredAgent; without--yesit only reports.multirepo agentkeeps the multirepo agent on this machine, never in the declaration; anagentleft in the declaration by an earlier version is ignored, andshowsays so (ignoredDeclaredAgentin--json). The agent runs its command as is;--headroomwraps it withheadroom wrap.--no-headroom, from earlier versions where Headroom was on by default, is still accepted and changes nothing; combined with--headroomit exits with2.new <id>in the multirepo folder covers the default repositories, or--reposfrom anywhere in the multirepo; it prints the path of each worktree it creates on standard output and one line per repository on standard error, and exits with1if any repository failed.--branch,--fromand--worktrees-rootdon’t apply to a group and exit with2. For each created repository it also names, on standard error and prefixed with its alias, the folders that needpod installand why, as a singlenewdoes. Its--jsonobject has thebranchand areposlist with eachalias,path,result(created,existingorfailed), skipped post-creation commands,pods(the same{ cloned, installNeeded, error }as a singlenew, empty unless the worktree was created) anderror.- When the multirepo folder is a Git repository it is the multirepo’s workspace repository (alias
workspaceunless declared otherwise):showlists it, markeddetecteduntilworkspace setdeclares it (--aliasrenames it,--defaultadds it to the default repositories)workspace clearturns detection off andworkspace detectremoves the setting so it’s detected again (exiting with1when the aliasworkspaceis taken by a declared repository); in a folder that isn’t a repositoryworkspace setandworkspace detectexit with1.new <id> --repos workspace,appincludes it, with its worktree in<worktreesRoot>/workspace/<id>.project addandapprun in that folder register the workspace repository as a member of the multirepo and no project of the folder’s own (appjust opens the app), unless detection is off.--jsonofshowmarks each repository withworkspaceanddetected. multirepo envlists the shared variables by repository (--json:{"env": {<alias>: {<name>: <template>}}}, as inshow);env set <alias> <name> <template>adds or replaces one after checking it (an invalid template exits with1, an unknown alias with2), andenv unset <alias> <name>removes one (1when it isn’t declared). Both keep the multirepo approved and exit with1while it needs review;envalone lists them anyway.remove-repo, andworkspace clear, exit with1while another repository’s shared variable references the repository, naming the variables.statusin the multirepo folder prints each group’s branch followed by one line per repository, thenungrouped, with each Claude agent’s session names asstatusshows them (agents=claude(working, app-task-123));--jsonprintsgroups(each withbranch,titleandreposwithalias,path,branch,base,folderMissing,uncommittedChanges,ahead,behind,merged,agents),ungroupedandfailures.open <id> --herdropens each worktree of the group with its project’s agent (--agentexits with2), reporting each asopendoes for one worktree (opened, agent started in its open workspace, or focused, with its pane); a worktree that fails, or whose agent doesn’t start, is reported on standard error, the others still open, and the exit code is1. An id matching bothfeature/<id>andfix/<id>exits with2, no match with1.open --herdrwithout a target opens the multirepo’s agent the same way: it focuses its live agent, starts it in a new pane of its open workspace when it has none, or opens a new workspace, and checks that it started. Each Claude session gets a name as withopenfor one worktree:<alias>-<id>for a worktree of the group, where<id>is the group’s branch without its prefix (app-task-123,api-task-123), and the multirepo’s name for the multirepo agent, so a coordinating session can tell the group’s sessions apart and message each by name.open <id> --orcaopens each worktree of the group in Orca, one after another, asopen --orcadoes for one worktree (agent started or focused, with its terminal), with its project’s agent (--agentexits with2) and the same session names as with--herdr. A failure is reported on standard error, the others still open, and the exit code is1; ambiguous and unknown ids exit as with--herdr. Without Orca installed, it says so once and exits with1.open --orcawithout a target runs the multirepo agent in the Orca workspace whose path is the multirepo folder: it focuses its live agent or starts it in a new terminal and checks that it started. A Git multirepo folder unknown to Orca is registered; a folder that isn’t a Git repository and has no workspace in Orca fails with exit code1, explaining how to add it in Orca’s app, and registers nothing.cleanlists the candidate groups (would remove the group …) and the kept ones with their reason (kept feature/TASK-2 (api isn't merged)), and accepts every option ofclean. After the groups it lists the loose worktrees of each repository (would remove api <path>) that are clean, merged and without a running agent, and removes them with--yes; with nothing to remove it printsNothing to clean up.hook agent-staterecords the sessions of a multirepo folder that isn’t a Git repository in a store under~/.taxilane/agent-sessions/; for any other directory that isn’t a repository it still writes nothing.
Projects and the app
Section titled “Projects and the app”project
Section titled “project”taxilane project add [<path>] [--json]taxilane project list [--json]taxilane project remove [<path>] [--json]add registers the repository containing the path (the current directory by default, or its main checkout when run from a worktree) as a project of the desktop app, with the values the app’s “Add project” form proposes: the folder’s name as the project name, <parent>/<name>-worktrees as the worktrees folder, no local files and the main branch detected. Nothing inside the repository is written. A repository that is already registered is left exactly as it was (its settings aren’t touched) and the command says so, exiting with 0.
list prints one line per project (name repository path) and works outside a repository. remove unregisters the repository’s project and leaves the repository and its worktrees on disk; it finds a project whose folder no longer exists by the path it was registered with, and exits with 1 when the repository has no project.
A running app picks up the change when its window regains focus or on View > Reload.
taxilane app [<path>] [--settings]Opens the desktop app on the project of the repository containing the path (the current directory by default), registering the repository first if it has no project. When the path is inside one of the project’s linked worktrees, the app opens with that worktree selected in “All worktrees”, or on its project if the worktree no longer exists. With --settings it opens the project’s settings instead of its worktrees, which needs a repository (exit code 2 without one). Outside a repository, without a path, it just opens the app or brings it to the front. With a path that isn’t a repository it exits with 1 and asks for nothing.
The command returns as soon as the app has been asked, without waiting for it:
- The app is open: it serves the request in a second or so, through the same navigation as the sidebar. Its window, size and position are kept, and a form with unsaved changes asks whether to discard them instead of being replaced. If the project’s settings are already open, nothing changes.
- The app is closed:
taxilanelaunches it and the app opens on the project once started. This works where the app’s own launcher is thetaxilanecommand (macOS with Homebrew, Linux.deb, Windows.msi). From the standalone zip, with no app installed, the command says the desktop app isn’t available from that install and exits with1.
Installation
Section titled “Installation”doctor
Section titled “doctor”taxilane doctor [--json]Checks, without changing anything, what Taxilane needs on this machine and prints one line per check with ok, warn, fail or -- (an optional tool that isn’t installed), and the fix under each check that didn’t pass:
ok Git 2.45.1 (/usr/bin/git)ok PATH of the process that started Taxilaneok taxilane command at /opt/homebrew/bin/taxilanewarn Claude Code hooks aren't installed in ~/.claude/settings.json fix: Run 'taxilane hooks install', or install them from the desktop app's Preferences › Claude Code-- Orca not found fix: Install Orca if you use it: https://www.onorca.devfail main-repo: 1 local file unavailable in ~/projects/main-repo fix: local.properties: not found at ~/projects/main-repo/local.properties. Create it there, or remove it from the project's local fileswarn main-repo: Android SDK at ~/Library/Android/sdk has no Android Virtual Device fix: Create a virtual device in Android Studio's Device Managerok Multirepo product (~/projects/product): api, app; 1 groupThe checks, in order: Git is found and is 2.29 or later; where the PATH comes from (the process’s for the CLI; the desktop app reads the login shell’s and warns when it couldn’t); the taxilane command is on the PATH and its launcher exists; Claude Code’s hooks in the user settings (CLAUDE_CONFIG_DIR or ~/.claude) are installed and the taxilane they run is usable; Claude Code, Herdr and Orca are found; and every registered project’s base folder exists and has every local file that creating a worktree would copy or link, with the same reasons and fixes as new; the tools of the providers each project’s .taxilane.json declares: the Gradle or Maven wrapper or command and its version, and the Java it runs (JAVA_HOME’s, else the one on the PATH), which must work and suit that version (Gradle 9 and Maven 4 need Java 17, and each Java version needs a minimum Gradle, such as 8.5 for Java 21); when the build chooses them, the Java Gradle’s daemon runs (Gradle’s daemon JVM criteria, else org.gradle.java.home) and the Java toolchains its build scripts declare, which must be installed where Gradle finds Java or downloadable by Gradle; the Java the Android Gradle Plugin needs on the daemon (Java 17 for AGP 8); the Android SDK and at least one virtual device for emulator, an iOS runtime for ios-simulator, Xcode (not only its Command Line Tools) and, with cocoaPods, pod for xcode, docker compose 2.0 or later and Docker’s daemon running for docker-compose, flutter (or fvm) for flutter, and node and the package manager of its lockfile for node; for emulator, also Google’s optional android CLI with its path and version, and whether its android-cli agent skill is installed in an agent’s skills folder (a warning, since that skill manages emulators outside the pool); and every multirepo Taxilane knows: its .taxilane-multirepo.json exists and is valid, each repository is a Git repository, it’s trusted on this machine, and no group has a worktree whose folder was deleted. A missing provider tool is a warning, since only that provider needs it; a multirepo with an invalid declaration or a missing repository fails. It exits with 1 when a check failed and with 0 otherwise: warnings and tools that aren’t installed don’t fail it. The desktop app runs the same check from Help › Check Installation….
migrate
Section titled “migrate”taxilane migrate [--check] [--yes] [--json]Cleans what ShogunAi left behind. Until January 10, 2027 every command prints a notice on standard error while something is left, in JSON mode and in hooks too, naming what it found; hook session-start also asks the agent to tell you.
migrate lists each leftover with what it will do to it and asks before changing anything, unless --yes is given:
~/.shogunaiis moved to~/.taxilane, or deleted when~/.taxilanealready exists.- The current repository’s
.shogunai.jsonand the multirepo folder’s.shogunai-multirepo.jsonare renamed; commit the renamed files. - Hooks whose command starts with
shogun hook, in the user settings or the repository’s.claude/settings.json, becometaxilane hookcommands, keeping every other hook and setting. - The
shogunai.worktreesHerdr plugin is replaced bytaxilane.worktrees, the Gradle init scripts get their Taxilane names, and theshoguncommand orPATHentry the app installed for ShogunAi is replaced bytaxilaneand the transitionshoguncommand. ShogunAi.appis moved to the Trash.- An installation held by the
shogunaiHomebrew cask, Scoop’sshogunaimanifest or winget’sCiroFeliu.ShogunAiis listed with the command that moves it, whichmigratedoesn’t run.
Every step runs even when an earlier one fails. The command reports what it did, what failed and why, what is left, and the registered projects whose repositories still have .shogunai.json. It exits with 0 when nothing failed. --check only lists the leftovers, and exits with 1 when any is left. --json asks nothing and changes nothing without --yes, and prints complete, applied, leftovers, cleaned, failed (each with its error), remaining, renamedFiles and otherProjects; each leftover is { "kind", "label", "action" }.
The transition shogun command, installed next to taxilane by every installer, prints that shogun is now taxilane on standard error and runs taxilane with the same arguments, input and exit code.
android
Section titled “android”taxilane android [--json]taxilane android metrics on|off [--json]android shows Google’s android CLI as Taxilane sees it: where it is on the PATH and its version (read with android --no-metrics --version, the only android command Taxilane runs), whether its usage metrics are allowed, and the agent skills folders that have its android-cli skill:
Android CLI 1.1.16919734 at /opt/homebrew/bin/androidMetrics: off; Taxilane passes --no-metrics and tells agents to pass it (turn them on with 'taxilane android metrics on')android-cli skill: ~/.claude/skillsIt exits with 0 whether or not android is installed. android metrics on allows its metrics: the session rule stops asking agents to pass --no-metrics, while Taxilane’s own calls still pass it. android metrics off (the default) asks for the flag again. The setting is the same as the switch in the desktop app’s Preferences › Tools.
Environment
Section titled “Environment”taxilane env [<path>] [--format sh|dotenv|json]Prints the environment of the worktree containing the path (or the current directory), from .taxilane.json env (once the repository is approved) and the providers, reserving its ports the first time. Declared variables awaiting approval aren’t printed; a note on standard error names them and taxilane trust. sh (the default) prints export NAME='value' lines for eval "$(taxilane env)"; dotenv and json suit other tools. An empty environment prints nothing.
Stacks
Section titled “Stacks”stacks
Section titled “stacks”taxilane stacksPrints one line per stack detected in the repository (Maven evidence=pom.xml maven=suggested): the files that revealed it and, per provider it suggests, suggested or declared when .taxilane.json already has it. Providers the operating system doesn’t support are not mentioned. After the stacks it prints one Secret <path> kind=<kind> link=<pattern> line per mobile secret nothing provisions yet and one Warning line per keystore path that leaves the repository. It changes nothing, prints No known stack detected. and exits with 0 when there is nothing, and exits with 1 outside a Git repository. See detecting stacks.
Providers
Section titled “Providers”These commands act on the providers a repository declares in .taxilane.json. Where a command needs a provider the repository doesn’t declare, it says so and exits with 1.
gradle
Section titled “gradle”taxilane gradletaxilane gradle stop [<pid>...]gradle lists the Gradle and Kotlin daemons on the machine: pid, kind and version, memory=, state=busy|idle|unknown (with idle-for=) and worktree=<path>|removed|other-project, then the total (No Gradle or Kotlin daemons running. when there are none). Under a busy daemon, an indented line names the build that holds it: held by pid 81234 (benchRun) in <dir> for 2h14m, session 963d9441 of <worktree>, with the client’s process id and tasks, and the agent session that started it, only when they can be traced; otherwise held by a build in <dir> …. --json adds holder to each daemon: null, or { "directory", "startedAt", "clientPid", "tasks", "session": { "id", "agent", "worktree" } }, with null for what isn’t known. It works outside a repository too. Inside a Gradle repository without Gradle’s build cache, it ends with a notice.
gradle stop stops every idle daemon, or only the given process ids; busy and unknown daemons are kept (kept <pid> … (<reason>)). A pid that isn’t a daemon exits with 1.
taxilane maventaxilane maven stop [<pid>...]maven lists the Maven daemons (mvnd) on the machine: pid, memory=, state=busy|idle|unknown (with idle-for= when idle) and, inside a Git repository, worktree=<path>|removed|other-project|unknown, then the total (No Maven daemons running. when there are none). It works outside a repository too.
maven stop stops every idle Maven daemon, or only the given process ids; busy daemons and those whose state is unknown are kept (kept <pid> Maven (<reason>)). A pid that isn’t a Maven daemon exits with 1.
compose
Section titled “compose”taxilane composetaxilane compose up [<worktree>] [--build] [-- <args>...]taxilane compose build [<worktree>] [-- <args>...]taxilane compose down [<worktree>] [--volumes]taxilane compose prune [--volumes] [--yes]compose lists the Docker Compose projects of the repository’s worktrees: name, status= and worktree=<path>|removed, then one leftover <kind> <name> project=<project> line per volume, network or image left by a removed worktree, with the compose prune command that removes them. When a project of a removed worktree still exists, it ends with Run 'taxilane compose down' to take down the projects of removed worktrees.
compose up starts the services of the given worktree, or of the one containing the current directory, with docker compose up --detach run in that worktree with its environment (its COMPOSE_PROJECT_NAME and port variables); --build adds --build, and the arguments after -- are passed to Docker Compose as they are. compose build runs docker compose build the same way. Docker Compose’s output is shown as it runs, then started Compose project <name> for <path> (or built …); a failure is printed on standard error with exit code 1.
compose prune lists the networks and built images left by removed worktrees (would remove …) and the volumes it would keep (would keep …); with --yes it removes them (removed …, kept …), and their volumes too with --volumes. Nothing is forced, so a resource still used by a container is reported on standard error and the exit code is 1. With nothing left it prints Nothing to remove. compose down takes down the projects of removed worktrees, or the project of the given worktree (found as in remove, the main one allowed), with docker compose -p <name> down: volumes are kept unless --volumes is given. It prints took down <name> (volumes kept), reports a failure on standard error and exits with 1 for it. If the repository doesn’t declare the docker-compose provider, or the given worktree doesn’t exist, it exits with 1 and runs no Docker command.
emulator
Section titled “emulator”taxilane emulator start|stop|status [<path>] [--avd <name>] [--no-window] [--audio] [--wait] [--wait-timeout <minutes>]Starts (and waits for), stops or shows the Android emulator of the worktree. --avd and --no-window only apply to start and override the project’s settings for that start. The emulator runs the worktree’s own copy of the chosen AVD, made on its first start (see Providers › Android emulator), without audio unless the repository declares "audio": true or start gets --audio. status prints emulator-5556 running|booting|stopped|unresponsive, or not acquired before the first start, and asks adb only about the worktree’s own emulator, so another worktree’s emulator never slows it down. unresponsive means adb lists the emulator but it doesn’t answer; standard error then says to wait and check again, or restart it with taxilane emulator stop and taxilane emulator start. A start whose emulator is still unresponsive when the boot wait ends fails with that same advice, and a stop the emulator doesn’t answer fails naming its console port, so its emulator process can be ended. Every start renews the worktree’s lease, and prints export ANDROID_SERIAL=… with the serial to use. The first start reserves the console port (releasing an emulator whose lease expired if the pool is full, reported on standard error); run it before every use of the device, since it re-acquires one if it was released. When the worktree is open in a running Orca, start also shows the emulator in the worktree’s emulator view in Orca (shown emulator-5556 in Orca's emulator view on standard error), unless the worktree’s iOS simulator is running too, which Orca would shut down: then it says so on standard error. If Orca can’t show it, it says why on standard error and the start still succeeds; Orca is never started for this (see Orca). After a release, status prints not acquired (released for <worktree> at <time>). With every emulator protected it fails with exit code 1 naming the worktrees that hold them and when their leases expire.
With --wait, start waits in line instead of failing when the pool is full and none can be released, and starts the emulator as soon as it can acquire one. The wait lasts 30 minutes at most, or the minutes given with --wait-timeout (which implies --wait); then it fails with exit code 1, saying how long it waited and who holds the emulators, having reserved nothing. Waiters of a pool are served first in, first out across every repository on the machine, and while anyone waits, a start without --wait (or from the desktop app) can’t take the emulator they’re waiting for: its error says how many are waiting. A waiter that is interrupted or whose process ends leaves the line. While it waits, the command prints on standard error its place in the line, who holds each emulator and when the next lease expires, again only when that changes, and waited <time> once it has the emulator. Agents should run a waiting start in the background, since it outlasts their shell’s time limit. --wait and --wait-timeout only apply to start.
simulator
Section titled “simulator”taxilane simulator start|stop|status [<path>] [--device <type>] [--runtime <runtime>] [--wait] [--wait-timeout <minutes>]taxilane simulator gradle-init install|uninstall [--yes|-y]taxilane simulator storage [--json]taxilane simulator runtime delete <runtime> [--yes|-y] [--json]taxilane simulator clean-unavailable [--yes|-y] [--json]Creates if needed, boots (and waits for) and opens, shuts down or shows the iOS simulator of the worktree (macOS only). --device and --runtime only apply when start creates the simulator. --wait and --wait-timeout wait for a full simulator pool as they do for emulator. In a Kotlin Multiplatform repository, status also says whether the KMP tests use the simulator. When the worktree is open in a running Orca, start also shows the simulator in the worktree’s emulator view in Orca, as emulator start does with the emulator (shown <udid> in Orca's emulator view on standard error), unless the worktree’s emulator is running too.
gradle-init install installs a machine-wide Gradle init script that makes every project’s KMP simulator tests use the worktree’s simulator; it shows the script and asks [y/N] unless --yes is given. uninstall removes it.
storage lists the machine’s simulator runtimes with their size, last use and users, or why each one is kept, the devices left without a runtime and the dyld caches, with the sudo rm -rf command for the folders of another macOS build; it works from any folder (see Simulator storage). runtime delete takes a runtime’s identifier, name (iOS 26.5) or version (26.5); without --yes it only says what it would delete, and it exits with 1 when the runtime is in use, bundled with Xcode, has a booted simulator, or matches none or several runtimes. clean-unavailable lists the devices whose runtime is gone and deletes them with --yes. taxilane clean never deletes runtimes or unavailable devices.
headless
Section titled “headless”taxilane headless start [<path>] [--visible] [--fresh] [--json]taxilane headless capture [<path>] [--output <file>] [--json]taxilane headless stop|status [<path>] [--json]Runs the worktree’s Compose Desktop app in the background (macOS only, repositories with the desktop-app provider). start launches it through Compose Hot Reload without taking focus, waits for its window, hides it and prints <pid> running hidden; on an app already running it launches nothing and hides it again. --visible leaves the window shown, behind the app you’re using. --fresh empties the app’s isolated home first. A failed build exits with 1 and the end of the launch log; an app that exits before showing its window, with the end of its own log. If macOS denies hiding it, the app keeps running visible and standard error names the Accessibility permission.
capture saves a PNG of the app’s window, taken from the window itself, so it shows the app even while hidden or covered; without --output it goes to a new file in the worktree’s Git folder, and the command prints its path. It needs the Screen Recording permission for the application that runs taxilane, such as your terminal. stop ends the app (stopped <pid>, or stopped when it wasn’t running); status prints its state, the isolated home, the launch log and any missing permission. See Checking a desktop app in the background.
desktop
Section titled “desktop”taxilane desktop acquire [<path>] [--wait] [--wait-timeout <minutes>] [--json]taxilane desktop release [<path>] [--json]taxilane desktop status [--json]The desktop (screen, mouse, keyboard and the focused app) is one resource for the whole machine, so agents that check something with computer use take turns: one worktree holds the desktop turn at a time, on any platform. acquire gives the turn to the worktree containing the path or the current directory and prints acquired the desktop until 14:10; run by the holder again, it renews the turn (renewed the desktop until 14:15). The turn expires on its own after the desktop turn duration (10 minutes by default, in Preferences › Resources) unless it’s renewed, so an agent that crashes doesn’t keep it; the agent working doesn’t renew it. Claude Code’s Stop and SessionEnd hooks release it when the holder’s response or session ends, and removing or cleaning up a worktree releases its turn and drops its waits.
While another worktree holds the turn, acquire fails with exit code 1, naming the holder, when its turn expires and how many worktrees are waiting. With --wait it waits in line instead, for 30 minutes at most or the minutes given with --wait-timeout (which implies --wait), printing on standard error its place in the line and who holds the desktop until when, only when that changes, and waited <time> once it has the turn. Waiters are served first in, first out across every repository, and an acquire without --wait can’t take the turn while anyone waits. Agents run a waiting acquire in the background.
release gives the turn back (released the desktop), says nobody holds the desktop when nobody does, and fails with exit code 1, changing nothing, when another worktree holds it; the desktop app can release anyone’s turn. status prints the holder with since when and until when, or desktop free, followed by the waiters in order. The turn is cooperative: it keeps agents that follow the workflow rules from colliding, it doesn’t stop a program that ignores it. With the hooks installed, Claude Code takes the turn by itself before its own computer use or Orca’s orca computer acts on the desktop, and is held back while another worktree has it (hook desktop-turn).
taxilane build run [--wait-timeout <minutes>] -- <command> [<arguments>]taxilane build status [--json]Heavy builds and test runs (Gradle, Maven, xcodebuild, swift build and swift test) share the machine’s memory and cores, so agents working in parallel take turns to run them: the machine has a number of build slots, shared by every repository, and each build holds one while it runs. run takes a slot for the worktree containing the current directory, runs the command in the current directory with the terminal’s input, output and environment, frees the slot when the command ends and exits with the command’s exit code (127 when it can’t be started). The command is run as given after --, without a shell; wrap a pipeline with sh -c when it needs one. A slot belongs to the taxilane build run process, so a build that crashes or is killed frees it without waiting for any expiry, and a long build keeps it as long as it runs.
When every slot is taken, run waits in line, first in, first out across every repository, for 30 minutes at most or the minutes given with --wait-timeout, printing on standard error its place in the line and the worktrees whose builds hold the slots, only when that changes. When the wait times out it exits with 1 without running the command. Agents run it in the background or with a long shell timeout.
The number of slots follows the capacity profile in Preferences › Resources: 1 with Light, 2 with Balanced, no limit with One per worktree, and with Automatic one per 16 GB of memory and at most one per 4 cores, between 1 and 4; Custom uses its own “Builds at once” number, which can also be no limit. status prints the slots in use, each running build with its command and since when, and the builds waiting in order. The turn is cooperative: with the hooks installed, Claude Code turns away a heavy build run outside it and tells the agent to run it through taxilane build run -- (hook build-turn).
device
Section titled “device”taxilane device list [--all] [--json]taxilane device acquire [<path>] [--android|--ios] [--name <alias-or-name>] [--model <text>] [--wait] [--wait-timeout <minutes>] [--json]taxilane device release [<path>] [--android|--ios] [--json]taxilane device status [<path>] [--json]taxilane device lend|withdraw|forget <device> [--json]taxilane device rename <device> <alias> [--json]Lends the Android phones and tablets connected to the machine by USB or wireless debugging, and the iPhones and iPads paired with the Mac, to one worktree at a time. Every device adb or xcrun devicectl reports is recorded in the machine’s inventory (~/.taxilane/devices.json) the first time it’s seen, keyed by its ro.serialno or its UDID, so it keeps its entry, alias and holder when it moves from USB to Wi-Fi. A recorded device is lent to agents until you withdraw it. Emulators and simulators are never listed; pairing a device (adb pair, Xcode) stays manual. iOS devices are only listed on macOS.
list prints the connected devices with their alias or name, id, platform, model, OS version, connection (USB or network, or what the device needs first: allowing USB debugging, pairing, developer mode), whether they’re lent and who holds them; --all adds the recorded devices that aren’t connected, with when they were last seen. With --json it prints an array of devices with id, alias, name, platform, manufacturer, model, marketingName, osVersion, connection, usability, serial or udid, lent, lastSeen and holder.
acquire gives the worktree containing the path or the current directory a lent, connected, usable device that no other worktree holds, and prints it with the line to export: export TAXILANE_ANDROID_DEVICE_SERIAL=<serial> or export TAXILANE_IOS_DEVICE_UDID=<udid>. --android and --ios choose the platform; --name matches an alias, then a device name, exactly and ignoring case; --model matches part of the model or marketing name. With no option, the platform is the only one that has a free device, and both is a usage error (exit code 2). A worktree holds at most one device per platform: acquiring again renews its lease (already held …), and asking for another device of the same platform fails until it releases the first. A device whose lease expired (the machine’s lease duration, 20 minutes by default, renewed while the worktree’s agent works) is taken over when none is free, first from a worktree with no agent session, then one whose agent is done or idle, then one whose agent is blocked; the loser’s device status says who took it and when. While a device is unplugged, its holder keeps it and nobody can take it over.
When nothing can be acquired, acquire exits with code 1 and says why: no recorded device matches, the matching ones aren’t connected (with when they were last seen), they’re withdrawn, they aren’t usable yet, or they’re held (naming each holder and its lease) and how many worktrees wait. With --wait it waits in line instead, for 30 minutes at most or the minutes given with --wait-timeout, printing its place and the reason on standard error only when they change, and checking for connected devices every 5 seconds; a request no recorded device matches fails at once. Waiters are served first in, first out per platform, a waiter whose request doesn’t match a freed device doesn’t hold back the ones behind, and an acquire without --wait can’t take a device a waiter matches. With --json it prints android and ios (the acquired device under its platform: id, alias, model, connection, connected, serial or udid, expiresAt), renewed, waited (seconds, null without --wait), takenFrom and orcaView.
When the worktree is open in Orca, acquiring an Android device shows it in the worktree’s emulator view, unless the worktree’s simulator is booted; an iPhone or iPad is reported as not shown, since Orca can’t stream one. Standard error says what happened; orcaView is shown, not-open, skipped, unsupported or failed.
release gives back the worktree’s devices, or one platform’s, without changing anything on them (released Android device Pixel 8, or held no physical device). status prints, per platform, the held device with its serial or UDID, connection and lease, or none and why it lost the last one, or its place in line; after a device reconnects over Wi-Fi it prints the new serial. lend, withdraw, rename and forget take a device’s id, alias or name: withdrawing a held device releases it, an alias must be unique, and a forgotten device seen again comes back as a new, lent one. A name that matches several devices fails listing their ids.
While a worktree holds a device, its environment (taxilane env, the SessionStart hook and the environment file) carries TAXILANE_ANDROID_DEVICE_SERIAL or TAXILANE_IOS_DEVICE_UDID, unless env declares a variable of the same name. ANDROID_SERIAL and IOS_SIMULATOR_UDID keep pointing to the worktree’s emulator and simulator, so an adb command reaches a physical device only when given -s "$TAXILANE_ANDROID_DEVICE_SERIAL". Removing or cleaning up a worktree releases its devices and drops its waits. See Providers › Physical devices.
taxilane pool status [--json]taxilane pool trim [--json]taxilane pool acquire <name> [<path>] [--wait] [--wait-timeout <minutes>] [--json]taxilane pool release <name> [<path>] [--json]status prints each pool (emulators 1/2, simulators 0/1, gradle daemons 3/2 over the limit) with the limit of the machine’s capacity profile and, under it, the project, worktree and state of every resource in use (an emulator that doesn’t answer adb is listed as unresponsive, and isn’t released to make room), followed by the worktrees waiting for an emulator or simulator (waiting: main-repo · TASK-2 since 14:10), in queue order. After the pools come the lent physical devices of each platform that has any (Android physical devices: 1 of 2 free), each connected or held one with its holder and lease expiry or free, and the worktrees waiting for that platform; with --json, physicalDevices holds { "android", "ios" }, each with devices (as in device list --json) and waiting. Then come the repository’s custom pools (pool db 2/3), each slot in use with its worktree and its lease expiry, agent working or running a command, and the worktrees waiting for it; with --json, customPools lists { name, max, holders, waiting }, each holder being { worktree, slot, expiresAt, agentWorking, running }. trim stops idle Gradle daemons, longest idle first, until they are within the limit, and prints what it stopped and kept.
acquire gives the worktree containing the path or the current directory a slot of the named pool, runs its acquire command in the worktree, and prints acquired slot 2 of pool db, lease until 14:32 and an export NAME=value line per variable of the pool. Running it again keeps the slot, renews the lease and runs acquire again (renewed slot 2 …). When the pool is full it takes over a slot whose lease expired, running release for its holder first (…, taken from main-repo · TASK-1). It fails with exit code 1 when the pool isn’t declared, the repository isn’t approved (naming taxilane trust), a command fails (naming it, with its exit code and error output; a failed acquire frees the slot) or the pool is full and nothing can be taken over (naming each holder with its slot and lease, and how many worktrees wait). --wait and --wait-timeout wait in line as for emulator, printing the place in line and the holders on standard error only when they change. release runs the pool’s release command and frees the slot (released slot 2 of pool db, or held no slot of pool db); a failing release keeps the slot and exits with 1. With --json, acquire prints pool, slot, expiresAt, renewed, takenFrom, waited (seconds, null without --wait) and variables (an object of names and values), and release prints pool, slot (null when none was held) and released.
taxilane xcodetaxilane xcode clean [--swift-build]taxilane xcode trim [--dry-run]xcode lists the DerivedData folders of the repository’s worktrees with their size and, when they have Swift packages, (packages <size>), the orphaned folders on the machine (orphans: N (size)), the compilation cache size when compilation caching is declared, and the sizes of the shared SwiftPM and CocoaPods caches when they exist (SwiftPM cache: <size>, CocoaPods cache: <size>). xcode also lists the .build folder of each worktree of a Swift package by its path (<worktree>/.build <size>). xcode clean deletes the orphaned folders (deleted <path>, freed <size>, or Nothing to delete.); with --swift-build it deletes instead the .build folders of the worktrees that are not in use (deleted <path> <size>, freed <size>, kept <path> (in use)), and exits with 1 if one couldn’t be deleted. xcode trim counts and releases the .build folders like the DerivedData of worktrees. xcode trim applies the DerivedData quota set in Preferences > Resources, automatic by default (a quarter of the free disk space plus what DerivedData takes, between 20 and 200 GB): when the folders add up to more than the quota it releases orphaned folders first and then the least recently accessed folders of worktrees of your saved projects that are not in use, and stops as soon as the total fits (released <path> <size>, freed <size>, usage <size> of <quota>, followed by (automatic) for the automatic quota). A worktree is in use while its agent is working or blocked or its folder was accessed within the last hour, and folders of other projects, on unavailable volumes and the compilation cache are never released; if only those remain it prints quota still exceeded and the worktrees in use. --dry-run prints would release and would free without deleting. With “No quota” it says so and deletes nothing, and when the automatic quota can’t be computed because the free disk space is unknown it says that instead. The xcode commands remember each folder’s size between runs, shared with the app, and only measure again the folders Xcode has used since, several at a time. Without the Xcode provider, or off macOS, xcode says the provider isn’t active and exits with 0.
JSON output
Section titled “JSON output”Besides status --json above, every command that reports a result accepts --json: new, base, provision, trust, remove, repair, open, clean, gradle, gradle stop, stacks, maven, maven stop, compose, compose up, compose build, compose down, compose prune, pool status, pool trim, pool acquire, pool release, device, project add, project list, project remove, xcode, xcode clean, xcode trim, emulator, simulator, hooks, doctor, android and guide install|uninstall|status (not simulator gradle-init, env, hook, help or --version; on those it is an unknown option and exits with 2). The option can go anywhere after the command.
The rules are the same for all of them:
- One compact JSON object on a single line on standard output, instead of the text, with the same exit code as the text output.
- An error before the result exists is printed as text on standard error, with nothing on standard output.
- It never asks a question. Post-creation commands and declared variables that aren’t approved on this machine are skipped and listed (
taxilane trustapproves them), andtrustonly reports unless--yesis given. - Every documented field is always present,
nullwhen it doesn’t apply, lists empty rather than missing, and enumerations in lowercase. Paths are absolute. Later versions only add fields, never rename, remove or change the type of one.
| Command | Object |
|---|---|
new |
path, branch, created (always true), skippedPostCreateCommands (a list of argv lists), skippedVariables (the names of the declared variables left out), postCreateFailure: null, or { command, exitCode, stderr } when a post-creation command failed, skippedLinks, the symbolic links skipped inside local folders, and pods: { cloned, installNeeded, error } with the folders whose CocoaPods pods were cloned from the base, { folder, reason } for those that need pod install (reason base-has-no-pods, base-pods-differ or clone-failed) and error (null unless the pods couldn’t be prepared), and, only when the repository declares the flutter provider, flutter: { pubGet: { status, reason } }, with status resolved or needed and reason only when needed, and, only when it declares the node provider, node: { dependencies: { status, manager, folders, reason, command } }, with status cloned, installed, present or needed, folders only when cloned, and reason and the install command only when needed. When a post-creation command failed, the object is still printed, since the worktree exists, and the exit code is 1. |
provision |
path, copied, linked and copiedInsteadOfLinking (file paths), skippedPostCreateCommands, skippedVariables and postCreateFailure, as in new, removed (files deleted because their local folder no longer has them), skippedLinks, pods, flutter and node, as in new. When a command failed, the three file lists are empty. |
provision --check |
path and drift: a list of { path, state } with state missing, differs, not-linked or deleted-in-base. The exit code is 3 when drift isn’t empty. |
trust |
repository, commands (argv lists), env (a list of { name, template }), envFile (or null), pools (a list of { name, max, acquire, release, env }, with release null when not declared and env a list of { name, template }), nodeInstall (true when the repository declares the node provider), approved and changed (this run approved or revoked it). A repository that declares nothing is approved: true with empty lists. --revoke reports approved: false when there was something to approve. |
remove |
path, branch (the worktree’s, or null if detached), branchDeleted (the name, or null when it was kept or no branch deletion was requested), branchKeptReason (why a requested deletion didn’t happen, or null), providers (emulatorsStopped serials, simulatorsStopped udids, gradleDaemonsStopped pids, avdsDeleted names, composeProjectsDown names and composeResources as in compose prune, both null when the Compose project wasn’t taken down, and composeUnavailable with the reason when Docker wasn’t available, or null) and failures (messages of what couldn’t be stopped, exit code 1). |
hooks install, hooks uninstall |
path, applied (written this run) and the added and removed hooks as { event, command } plus replaced as { event, from, to }. |
hooks status |
user and project (null outside a repository): path, state (installed, outdated, missing) and events; herdr (null without Herdr): state (installed, disabled, broken, missing, unknown), source, root, warnings and error. |
hooks install --herdr |
steps (the Herdr command lines), applied and herdr as in hooks status. |
guide install, guide uninstall |
path, applied (written this run), state (installed, outdated, missing) and warnings (messages). |
guide status |
targets: { target, path, state, duplicates } with target codex, gemini, project or file and duplicates true when the file mentions taxilane new, open or clean outside the block; and warnings. |
repair |
repaired: the re-linked worktree paths. |
doctor |
checks: a list of { id, state, summary, fix }, with id git, path, taxilane, claude-hooks, claude-code, herdr, orca, project:<name>, provider:<project>:<tool> (gradle, maven, android-sdk, android-cli, ios-simulator, xcode, cocoapods, docker-compose, flutter, node, npm, pnpm, yarn, bun, or providers when they can’t be read), android-cli-skill or multirepo:<name>, state passed, warning, failed or not_found, and fix null when it passed; and failed, true when a check failed (the exit code is then 1). |
android |
installed, path and version (null when it isn’t installed or the version couldn’t be read), metrics, and skillFolders, the folders that have the android-cli skill; `android metrics on |
project add, project remove |
action (added, alreadyRegistered or removed), and the project’s id, name and repository. |
project list |
projects: { id, name, repository }, empty without projects. |
open |
With --orca: path, branch, orca (started-agent or focused), terminal (the agent’s terminal handle), agent, session_name, emulator (the serial of the running emulator shown in Orca’s emulator view, or null), simulator (the UDID of the booted simulator shown there, or null) and devicesSkipped (true when both were running and neither was shown). With --herdr: path, branch (or null if detached), herdr (opened, started-agent or focused), pane_id (the agent’s pane), agent (the started agent’s name, or the one Herdr reports in the focused pane) and session_name (the Claude Code session’s confirmed name, or null). In the multirepo folder with a target: branch and repos: { alias, path, result, pane_id, agent, session_name, error } with result opened, started-agent, focused or failed. Without a target: path, opened (false only when focused), herdr, pane_id, agent and session_name. With --orca in the multirepo folder, with a target: branch and repos: { alias, path, result, terminal, agent, session_name, emulator, simulator, devicesSkipped, error } with result started-agent, focused or failed; without a target: path, orca (started-agent or focused), terminal, agent and session_name. |
clean |
dryRun; candidates: { path, branch, reason } with reason merged or folder-missing; keptForAgents: { path, agents }; skipped: { path, reason } (status unavailable); removed; deletedBranches; failures: { path, message }; and providers: gradleDaemonsStopped, mavenDaemonsStopped, emulatorsStopped, simulatorsDeleted, avdsDeleted, derivedDataDeleted and, with --down-compose-projects, composeProjectsDown and composeResources (removed, kept, failures, as in compose prune). Without --yes (dryRun: true) removed, deletedBranches and the providers lists are empty. |
gradle |
daemons: { pid, kind, version, memoryBytes, state, idleSince, worktree } with kind gradle or kotlin, state busy, idle, unknown or untracked, idleSince in ISO-8601 UTC (only when idle) and worktree a path, removed, other-project or null outside a repository; and totalMemoryBytes. |
gradle stop |
stopped (pids), kept: { pid, kind, reason } with reason busy, state-unknown or build-running, notDaemons (pids) and failures: { pid, message }. The exit code is 1 when either of the last two isn’t empty. |
stacks |
stacks: { stack, evidence, providers } with stack gradle, android, xcode, maven or docker-compose, evidence the files that revealed it and providers: { id, declared } for each provider it suggests; secrets: { path, kind, pattern } with kind local-properties, signing-properties, keystore or firebase-config; and keystoreWarnings: { file, key, value }. |
maven |
daemons: { pid, memoryBytes, state, idleSince, worktree } with state busy, idle or unknown, idleSince in ISO-8601 UTC (only when idle), and worktree a path, removed, other-project or null (unknown, or outside a repository); and totalMemoryBytes. |
maven stop |
stopped (pids), kept: { pid, reason } with reason busy or state-unknown, notDaemons (pids) and failures: { pid, message }. The exit code is 1 when either of the last two isn’t empty. |
compose |
projects: { name, status, worktree } with worktree a path or removed; leftovers: { kind, name, project } with kind network, image or volume. |
compose up, compose build |
worktree, project, succeeded and, on failure, message. Docker Compose’s output goes to standard error. |
compose prune |
dryRun; removed and kept: { kind, name, project }; failures: { resource, message }. Without --yes removed is what it would remove. |
compose down |
takenDown (project names) and failures: { name, message }. The exit code is 1 when failures isn’t empty. |
xcode |
active (false when the provider isn’t active, with the rest empty), folders: { kind, path, sizeBytes, sourcePackagesBytes, worktree } with kind derived-data or swift-build, orphans: { path, sizeBytes, sourcePackagesBytes }, unavailableVolumeFolders (a count), compilationCacheBytes (null unless declared), and swiftPmCacheBytes and cocoaPodsCacheBytes (null when the cache doesn’t exist). |
xcode clean |
active, deleted (paths), freedBytes and failures: { path, message }; with --swift-build, also inUse (paths kept). |
xcode trim |
active, quotaMode (automatic, fixed or none), quotaBytes (null without a quota or when the automatic one can’t be computed), dryRun, usageBeforeBytes, usageAfterBytes, exceeded, released (paths, those that would be released with --dry-run), freedBytes, inUse (worktree paths) and failures: { path, message }. |
emulator start|stop|status |
worktree, serial and state (running, booting, stopped or unresponsive). serial and state are null when the worktree has no emulator port reserved yet. waited is the whole seconds a start --wait waited for capacity (0 if there was room), null otherwise. start adds orcaView: shown, not-open (Orca not installed or running, or not listing the worktree), skipped (the worktree’s simulator is running too) or failed. |
desktop acquire|release|status |
holder (null, or { repository, worktree, since, expiresAt }) and waiting: { repository, worktree, since } in line order, with ISO-8601 UTC times. acquire adds renewed and waited (whole seconds waited, 0 when the desktop was free, null without --wait); release adds released. |
build status |
limit (a number, or null without a limit), running: { repository, worktree, command, since } for each build holding a slot, and waiting: { repository, worktree, since } in line order, with ISO-8601 UTC times. |
simulator start|stop|status |
worktree, udid, name and state (shutdown, booting or booted), null when the worktree has no simulator yet, and waited as for emulator. start adds orcaView as for emulator, with skipped when the worktree’s emulator is running too. The KMP wiring hint isn’t part of it. |
taxilane clean --json | jq -r '.candidates[].path'taxilane emulator status --json | jq -r '.serial'taxilane provision --check --json | jq -e '.drift | length == 0'Agent hooks
Section titled “Agent hooks”These commands are meant to be called by agents and tools, not typed. How to configure them is in Using with agents.
| Command | Called by |
|---|---|
taxilane hook worktree-create |
Claude Code’s WorktreeCreate hook. Reads name and cwd from standard input, creates (or reuses) a provisioned worktree on feature/<name> starting at the HEAD of the worktree in cwd, and prints its path. If a post-creation command fails it still prints the path as the last line and exits with 0, with the failure on standard error, so Claude Code uses the worktree. Unapproved post-creation commands and declared variables are skipped with a note on standard error; it never asks. |
taxilane hook worktree-remove |
Claude Code’s WorktreeRemove hook. Removes the worktree in worktree_path, deletes its branch only if it’s merged into its recorded base or into the project’s main branch (a branch merged only into its own upstream is kept, with a note on standard error) and closes its Herdr workspace and its Orca terminals. When the repository declares the docker-compose provider, it also takes the worktree’s Compose project down and removes the networks and built images it leaves, keeping its volumes; a problem with Docker is reported on standard error and the hook still succeeds. |
taxilane hook session-start |
Claude Code’s SessionStart hook. Inside a Git repository, prints the context. Only when the repository is registered as a project does it append the worktree’s environment to CLAUDE_ENV_FILE (nothing when the repository declares no env) and print a line naming the variables, without their values; declared variables awaiting approval are named on a line of their own, telling the agent to ask you to review them with taxilane trust, and aren’t delivered. Then come the short workflow rules that apply to that location, at most ten lines, starting with the precedence line and ending with a pointer to taxilane guide. Without Herdr it leaves out the rules about taxilane open --herdr and messaging sessions; the emulator and simulator rules appear only when the repository declares those providers. Outside a Git repository it prints nothing and exits with 0. |
taxilane hook agent-state |
Claude Code’s UserPromptSubmit, Notification, Stop and SessionEnd hooks. Reads the hook’s JSON from standard input and records the session’s state (working, blocked, done) for the worktree containing cwd, or removes the record on SessionEnd; a Notification of type idle_prompt means done and auth_success is ignored. When the state is working it also renews the leases of the emulator and simulator the worktree holds. When Orca is installed and the worktree isn’t the main one, it then starts taxilane orca sync for the worktree in the background, without waiting for it. It prints nothing, never blocks the session and exits with 0 also outside a repository; input that isn’t JSON exits with 2. See Agent states outside Herdr. |
taxilane hook desktop-turn |
Claude Code’s PreToolUse hook for Bash and for Claude’s computer-use tools. Before a computer-use tool that acts on the desktop (under mcp__computer-use__ or mcp__remote-devices__computer_: clicks, mouse moves and drags, typing, keys, scrolling, open_application, write_clipboard and computer_batch; screenshots, zoom, the cursor position, waiting, switching the display, reading the clipboard, listing apps and requesting access are left alone), and when a Bash command runs an orca computer (or orca-ide computer) command that acts on the desktop, anything but capabilities, permissions, list-apps, list-windows and get-app-state without --restore-window, it takes the desktop turn for the worktree containing cwd, or renews it, and prints nothing. When another worktree holds the turn or others wait for it, it prints a deny decision whose reason names the holder, its expiry and the waiters and says to run taxilane desktop acquire --wait in the background. It never prints an allow, does nothing for other tools, other commands and directories outside a repository, and exits with 0 also when the turn can’t be read; input that isn’t JSON exits with 2. See Orca. |
taxilane hook build-turn |
Claude Code’s PreToolUse hook for Bash commands that mention gradle, mvn, xcodebuild or swift . When the command starts a heavy build outside the build turn (gradle or gradlew, mvn or mvnw, xcodebuild, swift build or swift test, also after cd … &&, environment assignments or env, time and nice), it prints a deny decision whose reason quotes the build prefixed with taxilane build run -- and says to run it in the background or with a long shell timeout. It lets everything else run and prints nothing: tool names that only appear as text (inside quotes, in a comment or a heredoc body, or as an argument such as grep -n mvnw README.md), builds already run through taxilane build run, light invocations (Gradle’s --stop, --status, --version and only help or tasks; Maven’s --version; xcodebuild -version, -list, -showsdks, -showdestinations and -showBuildSettings), directories outside a repository, the One per worktree profile, and input it can’t read. It reads the command as the shell splits it: ;, &&, ` |
taxilane hook herdr |
The Taxilane plugin for Herdr, on worktree.created (provisions the worktree, skipping unapproved post-creation commands with a note) and worktree.removed (deletes its branch if merged into its recorded base or into the project’s main branch). Reads HERDR_PLUGIN_EVENT, HERDR_PLUGIN_EVENT_JSON and HERDR_BIN_PATH. |
taxilane hook orca setup |
Orca’s scripts.setup in orca.yaml. Provisions the worktree at ORCA_WORKTREE_PATH like taxilane provision (ORCA_ROOT_PATH finds the repository when the worktree’s Git metadata can’t), prints the copied files and, when the worktree is outside the project’s worktrees folder, a note saying so. Exits with 2 without ORCA_WORKTREE_PATH and 1 when provisioning fails. See Orca. |
taxilane hook orca archive |
Orca’s scripts.archive. Frees the emulator, simulator and idle Gradle daemons of the worktree at ORCA_WORKTREE_PATH, leaving the worktree and its branch to Orca, and always exits with 0, printing what it couldn’t free on standard error. Another action exits with 2. |
Help and version
Section titled “Help and version”| Command | Prints |
|---|---|
taxilane help, -h, --help |
The usage summary. |
taxilane <command> --help, -h |
The usage and options of that command, with exit code 0. |
taxilane version, -v, --version |
taxilane <version>, the same version as the app. |