Allow tasks to share a worktree #415
Open
+400
−26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
shared_worktree_task_idfield to tasks, allowing multiple tasks to run in the same git worktree directoryshared_worktree_task_idset, it reuses the referenced task's worktree instead of creating its owntaskyou_create_taskwithshared_worktree_task_id), CLI (task create --share-worktree 42), and preserved through edit/move operationsChanges
SharedWorktreeTaskIDfield,CountTasksSharingWorktreehelper, updated all queries/scansshared_worktree_task_idcolumnsetupWorktreehandles shared worktrees;CleanupWorktree/ArchiveWorktreecheck shared count before removaltaskyou_create_taskacceptsshared_worktree_task_idparameter--share-worktreeCLI flagSharedWorktreeTaskIDduring edit and project moveTest plan
go test ./...)SharedWorktreeTaskIDpersistence (create, read, update)CountTasksSharingWorktree(active vs done tasks, multiple sharers)taskyou_create_taskwithshared_worktree_task_id🤖 Generated with Claude Code