Introduction
wt — instantly create fully configured git worktrees with dependencies installed and .env files in place.
What is wt?
wt is a CLI tool that wraps git worktree add with a four-step setup pipeline: create the worktree, detect your project ecosystem, install dependencies, and wire up environment files — all in one command.
Switching between features in a large codebase means either stashing changes, losing your running dev server, or waiting for bun install / uv sync to finish every time you context-switch. Git worktrees solve the isolation problem, but they arrive as empty checkouts — you still have to manually install packages, copy .env files, and run any required codegen before you can start work.
wt automates all of that.
Quick Demo
Key Features
- Cross-ecosystem detection — Node.js, Python, Rust, Go. Picks the right package manager automatically.
- .env file management — Symlink or copy
.envfiles with a single config line. - Claude Code integration — Worktrees auto-configure when Claude creates them.
- Team-ready config — Commit
.worktreercwith your code. Every developer gets the same setup. - Full lifecycle —
add,list,remove,cd,init, anddoctorcommands. - Shell completions — First-class zsh and bash completion support.
Getting Started
Step 1 — Install wt
Step 2 — Generate a config for your repo
wt init scans for package managers and .env files, then writes a .worktreerc. Review the preview, press Enter to confirm, then commit the file:
Step 3 — Create your first worktree
See Installation for full setup instructions, or jump straight to the Commands Reference.
Config Resolution Order
CLI flags override everything. The full priority chain (highest first):