Overview
Git worktrees enable parallel development by creating separate working directories for different branches within the same repository. In Maestro, worktrees are integrated with the Auto Run and batch processing system to allow safe concurrent work without file conflicts.Git worktrees create isolated workspace directories for different branches, allowing you to run Auto Run on multiple branches simultaneously without conflicts.
Prerequisites
Configuration
Worktrees are configured in the Batch Runner modal when setting up an Auto Run:Basic Setup
- Enable Worktree - Toggle the worktree checkbox
- Worktree Directory - Choose a base directory where worktrees will be created
- Branch Name - Specify the branch name for this worktree
- Computed Path - Review the full path:
baseDir/branchName
Validation States
Maestro validates worktree configuration before starting:- Valid
- Warning
- Error
✅ Existing worktree on same branch - continues work✅ New worktree location - creates fresh worktree
Pull Request Creation
When GitHub CLI is authenticated, you can enable automatic PR creation:Benefits
Parallel Development
Run Auto Run on multiple branches simultaneously:- Main branch: Production documentation
- Feature branch: New feature docs via worktree
- No file conflicts between the two
Safe Experimentation
Worktrees provide isolation:Automated Workflow
Complete workflow from changes to PR:- Configure worktree and branch
- Run batch Auto Run
- Review generated changes
- Automatic commit, push, and PR creation
SSH Remote Support
Worktrees work with SSH remote sessions:For remote sessions, enter the path on the remote server. The Browse button is disabled for SSH remotes.
Example Workflow
Related Features
- Auto Run Playbooks - Save worktree configurations in playbooks
- CLI Tool - Run playbooks with worktrees from command line
- Batch Processing - Process multiple documents