spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

Add ability to spawn worktree when creating new branch

Open peterHoburg opened this issue 1 year ago • 7 comments

Add the ability for spec-kit to create a new dir with a git worktree when it creates a new branch. This will allow you to work on multiple tickets at the same time on the same machine.

peterHoburg avatar Sep 07 '25 18:09 peterHoburg

It's essential to be able to work on multiple features at the same time.

dpeckham avatar Sep 25 '25 11:09 dpeckham

And also need an approach to manage git repos properly, currently seems the spec kit only knows creating a new branch ,but seems it doesn't merge the branch to main/master branch once it finishes the spec development.

tianlinzx avatar Sep 26 '25 02:09 tianlinzx

Agreed I'm desiring a similar workflow were I can work on specs from the main branch and use work trees for the actual implementatino... I want to generate multiple specs, I often want to work on specs while the ai is coding.. The current workflow creates a branch so numbering gets wonky fast if you don't get them merged into main. My current workaround is:

  • From main start a spec.. when I'm happy with /tasks output...
  • Merge back into main, rebase back into the branch
  • Go back to main and then setup a work-tree Very cumbersome..

srobertson avatar Sep 29 '25 17:09 srobertson

This feels like the #1 item

acomito avatar Oct 25 '25 12:10 acomito

For the record, Cursor 2.0 is using git worktrees for the new "Parallel agents" feature to run multiple agents locally in parallel https://cursor.com/en-US/docs/configuration/worktrees

Would be great if spec-kit support this

francovp avatar Oct 30 '25 20:10 francovp

This issue has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Apr 03 '26 14:04 github-actions[bot]

This issue has been automatically closed due to inactivity (180 days total). If you believe this issue is still relevant, please reopen it or create a new issue.

github-actions[bot] avatar May 06 '26 00:05 github-actions[bot]