Vibe code in parallel using git worktrees or clones.
██╗ ██╗ ██╗ ██████████╗
██║ ██║ ██║ ╚═══██╔═══╝
██║ ██╗ ██║ ██████╗ ██████╗ ██║ ██╗ ██║ ██████╗ ██╗ ██╗
██║████╗██║ ██╚═══██║ ██╔═══╝ █████╔╝ ██║ ██╔═══╝ ██╗ ██╔╝
███║ ███╔╝ ██████╔╝ ██║ ██╔═██╗ ██║ ██║ ████╔╝
╚══╝ ╚══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ██╔╝
██ Vibe code in parallel using git worktrees or clones ██║
█████████████████████████████████████████████████████████║
╚════════════════════════════════════════════════════════╝
Work on multiple features in parallel — each in its own isolated worktree or clone, with Claude Code ready to go.
wk (or worktry) sets up your repo for parallel AI development:
- 🤖 Auto-configures Claude Code permissions in each worktree/clone
- 📁 Copies config files (
.env,.idea/) to new worktrees/clones - 🚀 Jump between worktrees or clones instantly (
wk 1,wk 2, etc.)
# Install dependencies
npm install -g @johnlindquist/worktree
# Install wk
git clone https://github.com/ovitrif/worktry.git
cd worktry && ./install.sh
# In your project
cd your-project
wk init # Setup worktrees.json
wk config # Add files to copy-over list
wt setup feature -c # Create worktree with setup
wk 1 # Jump to worktree
wk 0 # Jump back to main- Node.js (v18+) — nodejs.org
- worktree-cli —
npm install -g @johnlindquist/worktree ~/.local/binin your PATH
git clone https://github.com/ovitrif/worktry.git
cd worktry
./install.shThis installs:
wkscript to~/.local/bin/(withworktryalias)- Shell function to
~/.zshrc(or~/.bashrc) for navigation
cd your-project
wk init # or: wk iCreates:
worktrees.json— Config forwt setup+copy-overlist.worktree-setup.sh— Setup script (Claude permissions + file copying)
wk config # or: wk cEdit the copy-over array in worktrees.json:
{
"setup-worktree": ["bash $ROOT_WORKTREE_PATH/.worktree-setup.sh"],
"copy-over": [
".env",
"local.properties",
".idea/"
]
}wt setup feature-name -cCreates a worktree with:
- New branch
feature-name .claude/settings.local.jsonwith permissions- Copies of files from
copy-overlist
If you prefer cloning over worktrees:
gh repo clone user/repo repo-2 # Clone manually
wk setup ../repo-2 # Apply wk setup to clonewk 0 # Jump to main repo
wk 1 # Jump to first worktree/clone
wk 2 # Jump to second worktree/clone
wk go feature-name # Jump by branch name (worktree mode)
wk back # Jump back to main (alias: b)| Command | Alias | Description |
|---|---|---|
wk init |
i |
Initialize repo for wk |
wk list |
ls, l |
List worktrees or clones |
wk go <name> |
— | Navigate to worktree by branch name |
wk back |
b |
Navigate back to main worktree |
wk config |
c |
Edit worktrees.json config |
wk setup <dir> |
s |
Apply wk setup to a clone |
wk new <name> [-b BASE] |
n |
Create worktree with setup |
wk 0-9 |
— | Navigate to worktree/clone by index |
wk --help |
-h |
Show help |
Note:
worktryis also available as an alias forwk.
| File | Description |
|---|---|
worktrees.json |
Config for wt setup + copy-over list |
.worktree-setup.sh |
Setup script (Claude permissions, file copying) |
Contributions welcome! Feel free to:
- Fork the repo
- Create a feature branch
- Submit a PR
This project supports vibe-coding with AI agents. See AGENTS.md for project context and coding rules.
The Unlicense — Public domain. Do whatever you want.
See LICENSE.
