@aidanhibbard/copse
v0.0.1
Published
Git worktree manager — create worktrees and open editors for parallel development
Maintainers
Readme
Copse
/käps/ - a small group of trees.
Git worktree manager — create worktrees and open editors for parallel development.
Work on multiple features simultaneously, each in its own editor window. No more stashing, no more branch switching.
Install
npm install -g @aidanhibbard/copseUsage
Create a worktree
# Create a worktree for a branch and open it in Cursor
copse add feature/auth
# Use a different editor
copse add feature/api --editor code
# Custom path
copse add feature/dashboard --path ./dashboard-wt
# Create without opening an editor
copse add feature/tests --no-openList worktrees
copse listOpen an existing worktree
# Open in Cursor (default)
copse open feature/auth
# Open in VS Code
copse open feature/auth --editor codeRemove a worktree
copse remove feature/auth
# Force remove
copse remove feature/auth --forceSupported Editors
| Editor | Flag value |
| -------- | ---------- |
| Cursor | cursor |
| VS Code | code |
| Zed | zed |
| WebStorm | webstorm |
| Neovim | nvim |
| Vim | vim |
Any other value is treated as a command name — pass whatever editor CLI you have on your PATH.
How It Works
Copse wraps git worktree to manage worktrees as sibling directories:
projects/
├── my-repo/ # main worktree
├── my-repo-feature-auth/ # copse add feature/auth
├── my-repo-feature-api/ # copse add feature/api
└── my-repo-fix-bug/ # copse add fix/bugEach worktree gets its own directory with a full working copy, and copse opens it in a separate editor instance so you can work on features in parallel.
License
MIT
