For complex projects with multiple parallel task streams, you can use git worktrees to isolate work by category, story, or individual task. mcp-tasks supports both manual and automatic worktree management.
Use automatic mode (:worktree-management? true) when:
Use manual mode when:
Enable automatic worktree management in .mcp-tasks.edn:
{:worktree-management? true} ; Automatically enables :branch-management? true
How it works:
Worktree creation - When executing a task or story:
../<project-name>-<task-or-story-name>:branch-management? convention)../mcp-tasks-add-git-worktree-managementWorktree reuse - On subsequent task executions:
Cleanup workflow - After task/story completion:
git worktree remove <path>Benefits of automatic mode:
For category-based organization or custom workflows, manually create worktrees:
# Create a worktree for each category
git worktree add ../project-feature feature-branch
git worktree add ../project-bugfix bugfix-branch
git worktree add ../project-refactor refactor-branch
Manual workflow:
Separate task streams - Each worktree can have its own .mcp-tasks/tasks.ednl with relevant tasks
Process tasks independently - Work in each worktree:
cd ../project-feature
# Run /mcp-tasks:next-feature
cd ../project-bugfix
# Run /mcp-tasks:next-bugfix
Merge appropriately - Integrate completed work:
# In main repository
git merge feature-branch
git merge bugfix-branch
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |