.git directory as your main checkout.
How worktrees work
A worktree is a separate directory on the same filesystem as the main repository.- It has its own working tree (files on disk) and checkout state.
- It shares a
.gitwith the main repository.
.git is shared, commits created in any worktree are immediately visible to your other worktrees (including your main checkout).
Worktrees aren’t locked to a branch. The agent can switch branches, enter detached HEAD, or create new branches as needed. If you want to constrain branching behavior, do it via your instruction files.
Filesystem layout
Worktree workspaces are stored in~/.mux/src/<project-name>/<workspace-name>.
Example layout: