Nudge task expansion and dependency mapping toward critical path reduction#1623
Conversation
…h reduction Replace serial-by-default bias in expand-task AI prompts with guidance to maximize subtask independence and reduce critical path duration. Update add-dependency prompts to challenge necessity and warn about serialization impact rather than suggesting additional dependencies. Closes eyaltoledano#1622
🦋 Changeset detectedLatest commit: 1c53562 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📝 WalkthroughWalkthroughPrompts, docs, and two slash-command implementations were updated to prefer subtask independence and parallelism, and to require explicit justification when adding dependencies by assessing critical-path impact rather than defaulting to serial ordering. No public APIs or exported declarations changed. Changes
Sequence Diagram(s)(omitted — changes are wording/prompt guidance and do not introduce a new multi-component control flow that requires visualization) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Problem
The expand-task AI system prompt explicitly instructed "break down into subtasks that can be implemented sequentially", and the add-dependency prompt encouraged "suggest related dependencies". This over-constrains dependency graphs so the critical path (longest dependency chain) equals total work — zero parallelism.
Changes
src/prompts/expand-task.json(all 3 variants: default, research, complexity-report):packages/claude-code-plugin/commands/expand-task.md+packages/tm-profiles/.../expand-task.ts:packages/claude-code-plugin/commands/add-dependency.md+packages/tm-profiles/.../add-dependency.ts:Test plan
expand-task-prompt.test.jstests pass (5/5)task-master expandon a task and verify subtasks have fewer inter-dependencies than beforeCloses #1622
Note
Low Risk
Text-only prompt/documentation updates with no runtime logic changes; main risk is behavior shifts in AI-generated task graphs and dependency suggestions.
Overview
Updates task expansion and dependency-creation prompts to bias toward parallelizable work:
expand-tasknow explicitly asks for independent subtasks with minimal dependencies and adds post-expansion guidance to show a dependency graph, identify parallel vs sequential subtasks, and surface the critical path.Refines
add-dependencyguidance to challenge whether a dependency is truly blocking and to warn about unnecessary serialization by reporting critical-path impact and suggesting narrower alternatives, with synced wording acrossexpand-task.json, plugin markdown docs, andtm-profilesslash-command strings. Adds a patch changeset for release.Written by Cursor Bugbot for commit 1c53562. This will update automatically on new commits. Configure here.
Summary by CodeRabbit
New Features
Improvements