worktree_create
Creates an isolated git worktree with a new branch so Cursor Agent can work without affecting your current directory. Fetches the base remote first and symlinks node_modules for Node/TS repos to avoid reinstalling dependencies.
Instructions
Crea un git worktree aislado (+ rama nueva) para que cursor-agent trabaje sin tocar tu working directory actual. Hace git fetch del remoto de base primero. Si el repo es Node/TS, symlinkea node_modules del repo original (no reinstala nada).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Punto de partida (default: origin/main). | origin/main |
| fetch | No | Hacer `git fetch` del remoto de base antes de crear (default: true). | |
| branch | Yes | Nombre de la rama nueva a crear para este trabajo. | |
| repo_path | Yes | Ruta absoluta al repo git (ej. /Users/tu/Desktop/plaxp/frontend). | |
| worktree_path | No | Ruta destino del worktree. Default: ~/.cursor-worktrees/<repo>--<rama>. | |
| link_node_modules | No | Symlinkear node_modules del repo original (default: true). |