Worktree runtime uses git worktrees on your local machine. Each workspace gets its own directory, but worktrees share the sameDocumentation Index
Fetch the complete documentation index at: https://mux-sidebar-t7ry.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
.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: