What problem does it solve?
Provides a reliable, repeatable process for creating isolated git workspaces so developers can work on multiple branches concurrently without polluting the main repository or accidentally committing worktree artifacts.
It prevents common mistakes like unignored worktree directories, ambiguous directory selection, and proceeding with a broken baseline that would confuse implementation and debugging.
Core Features & Use Cases
- Priority-based directory selection: prefers .worktrees, falls back to worktrees, reads CLAUDE.md preferences, or asks the user when ambiguous.
- Safety verification: ensures project-local worktree directories are ignored via git check-ignore and, if not, updates .gitignore and commits the change before creating a worktree.
- Automated creation and bootstrapping: creates a new worktree for a branch, auto-detects project type (Node, Python, Rust, Go) to install dependencies, and runs project tests to verify a clean baseline.
- Decision points and reporting: stops and asks when tests fail, reports worktree location and test results, and enforces conventions to avoid repository pollution.
- Use case: start a feature branch in an isolated workspace, run dependency setup and tests, and confirm readiness before implementation.
Quick Start
Create a hidden project-local .worktrees worktree for branch feature/auth, ensure the directory is added to .gitignore and committed, run the project-specific setup detected from project files, and run tests to verify a clean baseline.