Worktree settings
Worktree settings control where Git worktrees are created, how new task branches are named, and which commands each project runs on create and destroy. Binding a session to a tree is described in Worktree. This article covers the settings page only.
The project must already be a Git repository before a worktree can be created.
Entry point
Open Settings, then Worktrees. The page has two blocks: Global worktree settings at the top, Project worktree settings below.
Global worktree settings
These two fields apply to every project:
- Workspace directory: root used when creating task worktrees and temporary project directories. Type a path or Browse with the folder dialog. Empty uses the product default location.
- Branch prefix: default prefix for new task branches, for example
vibex. The task id is appended after this prefix.
Empty prefix, spaces, a leading or trailing /, //, and the characters ~ ^ : ? * [ \ are rejected. Invalid input disables Save and shows the reason on the page.
Save in that block writes only these two fields. Project settings below are saved separately.
Project worktree settings
The Project dropdown lists projects you have opened. Each project has its own configuration. With no opened project, the dropdown shows No opened projects yet.
Lifecycle commands
- Command after create: runs after the worktree exists on disk and before the first session on that tree, for example
pnpm install. Empty skips the command. - Command before destroy: runs before VibeX deletes that worktree, for example
pnpm run clean. A failing command cancels the delete; the tree stays so you can read the output.
Commands run on the Host machine. The working directory is that worktree. The toolchain those commands call must already be installed there.
Cleanup reminder
- Prompt before exceeding the limit: when on, creating another worktree that would push this project over the cap shows a confirmation.
- Worktree count limit: a positive integer. The page also shows how many worktrees the project already has.
The confirmation offers:
- Continue creating: create anyway, past the cap.
- View worktrees: abandon this create and go manage existing trees.
Worktrees owned by a running turn or automation run count toward the total and are kept on delete. Deleting the folder in the file manager leaves a stale registration, so the count drifts. Remove trees with the in-app Git worktree actions.
Save settings in the project block. Success shows Worktree settings saved.
Automations
Automations default to one independent worktree per run. They use this page’s global root and branch prefix. Project lifecycle commands run on that project’s trees. See Automations.

