name: wt-start description: Create a new branch in a fresh worktree and move into it allowed-tools: Bash(wt switch:), Bash(wt list:), Bash(jq:), Bash(cd:)
Your task
Spin up an isolated worktree for a new branch and land inside it.
- Take the branch name from the user's argument. If no argument was provided, ask the user for one before continuing.
- Run
wt switch --create <branch> --no-cdto create the worktree and branch off the default branch.--no-cdskips the shell integration so we can change directory explicitly in the next step. - Resolve the new worktree path:
wt list --format json | jq -r '.[] | select(.branch=="<branch>") | .path' cdinto that path so subsequent tool calls run inside the new worktree.- Print the new path and stop. Do not start implementation work.