Dependencies define the order work should happen in. When task 5 depends on task 3, Taskmaster ensures task 3 is completed before recommending task 5.
# Task 5 depends on task 3 — task 3 must be done first
tm add-dependency --id=5 --depends-on=3
# Remove a dependency
tm remove-dependency --id=5 --depends-on=3
Dependencies power several Taskmaster features:
tm next only recommends tasks whose dependencies are all satisfiedtm list --ready filters to tasks that are unblocked and ready to starttm list --blocking shows tasks that other tasks are waiting ontm clusters groups tasks by dependency level for parallel executionThe --ready and --blocking filters help you focus on what matters:
# Tasks you can start right now (all dependencies met)
tm list --ready
# Tasks that are holding up other work
tm list --blocking
# The sweet spot — tasks you can start that also unblock others
tm list --ready --blocking
Check your dependency graph for problems:
# Check for circular dependencies or references to missing tasks
tm validate-dependencies
# Automatically fix invalid dependencies
tm fix-dependencies
done or cancelledfeature-auth can depend on task 3 in coredone, all its subtasks are automatically marked done tootm next command walks the full dependency graph to find the highest-priority unblocked tasktm validate-dependencies after reorganizing tasks--ready --blocking — This combo surfaces the most impactful work