bd help --doc worktree.
Manage git worktrees with proper beads configuration.
Worktrees allow multiple working directories sharing the same git repository,
enabling parallel development (e.g., multiple agents or features).
Worktrees automatically share the same beads database as the main repository
via git common directory discovery — no manual redirect configuration needed.
Examples:
bd worktree create feature-auth # Create worktree
bd worktree create bugfix —branch fix-1 # Create with specific branch name
bd worktree list # List all worktrees
bd worktree remove feature-auth # Remove worktree (with safety checks)
bd worktree info # Show info about current worktree
bd worktree create
Create a git worktree for parallel development. This command:- Creates a git worktree at ./<name> (or specified path)
- Adds the worktree path to .gitignore (if inside repo root)
bd worktree info
Show information about the current worktree. If the current directory is in a git worktree, shows:- Worktree path and name
- Branch
- Beads configuration (redirect or main)
- Main repository location
bd worktree list
List all git worktrees and their beads configuration state. Shows each worktree with:- Name (directory name)
- Path (full path)
- Branch
- Beads state: “redirect” (uses shared db), “shared” (is main), “none” (no beads)
bd worktree remove
Remove a git worktree with safety checks. Before removing, this command checks for:- Uncommitted changes
- Unpushed commits
- Stashes