feat: Add --append flag to parsePRD command to append generated tasks #967

Closed
opened 2025-10-14 16:32:07 -06:00 by navan · 0 comments
Owner

Originally created by @eyaltoledano on 4/13/2025

"As a user, I want to be able to append newly generated tasks to my existing task list when parsing multiple PRDs, enabling a more flexible and incremental workflow."

Originally via #163

Motivation

Currently, the parsePRD command overwrites the existing task list, restricting workflows that require iterative or PRD-by-PRD task generation. By adding an --append option, users can build upon existing tasks, facilitating incremental development and promoting better project continuity and organization.

Proposed Solution

Enhance the parsePRD command by introducing an --append flag that, when specified, appends newly generated tasks to the existing tasks.json instead of overwriting it.

High-Level Workflow

  1. Update the parsePRD command to include the --append flag.
  2. Adjust task generation logic to support appending rather than overwriting tasks when the flag is active.
  3. Ensure task IDs continue sequentially from the last existing task.
  4. Test extensively to ensure stability and reliability in task management.

Key Elements

  • CLI Command Update:
    • Add --append flag to parsePRD command
  • Sequential Task IDs:
    • Automatically generate new task IDs sequentially after the last existing task id
  • Robustness:
    • Ensure data integrity and correct task ID sequencing, use any existing dependencies (potentially pass entire tasks.json file as well or a leaner version with title/dependencies only)
  • Enhanced Workflow:
    • Facilitate incremental and flexible task management workflows

Example Workflow

$ task-master parsePRD --input="requirements_v2.txt" --append
→ Parsing PRD and appending tasks...
✓ Successfully appended 5 new tasks to tasks.json

This way you can use Taskmaster by exploring each main feature with AI and codifying into its own PRD (soon using generate-prd #37), one PRD per main release/feature/milestone (however you want to organize it), and be able to generate x number of new tasks based on a PRD (that taskmaster will help you create too)

Implementation Considerations

  • Ensure backward compatibility and clear CLI feedback
  • Validate correct sequencing and continuity of task IDs
  • Thorough testing for task ID integrity and overall stability

Out of Scope (Future Considerations)

  • Additional flags or options beyond simple append functionality
  • Changes to existing task modification logic
*Originally created by @eyaltoledano on 4/13/2025* > "As a user, I want to be able to append newly generated tasks to my existing task list when parsing multiple PRDs, enabling a more flexible and incremental workflow." Originally via #163 ### Motivation Currently, the `parsePRD` command overwrites the existing task list, restricting workflows that require iterative or PRD-by-PRD task generation. By adding an `--append` option, users can build upon existing tasks, facilitating incremental development and promoting better project continuity and organization. ### Proposed Solution Enhance the `parsePRD` command by introducing an `--append` flag that, when specified, appends newly generated tasks to the existing `tasks.json` instead of overwriting it. ### High-Level Workflow 1. Update the `parsePRD` command to include the `--append` flag. 2. Adjust task generation logic to support appending rather than overwriting tasks when the flag is active. 3. Ensure task IDs continue sequentially from the last existing task. 4. Test extensively to ensure stability and reliability in task management. ### Key Elements - **CLI Command Update:** - Add `--append` flag to `parsePRD` command - **Sequential Task IDs:** - Automatically generate new task IDs sequentially after the last existing task id - **Robustness:** - Ensure data integrity and correct task ID sequencing, use any existing dependencies (potentially pass entire tasks.json file as well or a leaner version with title/dependencies only) - **Enhanced Workflow:** - Facilitate incremental and flexible task management workflows ### Example Workflow ```shell $ task-master parsePRD --input="requirements_v2.txt" --append → Parsing PRD and appending tasks... ✓ Successfully appended 5 new tasks to tasks.json ``` This way you can use Taskmaster by exploring each main feature with AI and codifying into its own PRD (soon using generate-prd #37), one PRD per main release/feature/milestone (however you want to organize it), and be able to generate x number of new tasks based on a PRD (that taskmaster will help you create too) ### Implementation Considerations - Ensure backward compatibility and clear CLI feedback - Validate correct sequencing and continuity of task IDs - Thorough testing for task ID integrity and overall stability ### Out of Scope (Future Considerations) - Additional flags or options beyond simple append functionality - Changes to existing task modification logic
navan 2025-10-14 16:32:11 -06:00
Sign in to join this conversation.
No labels
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:installation
area:installation
area:installation
area:installation
area:installation
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:vscode-extension
area:vscode-extension
area:vscode-extension
area:vscode-extension
area:vscode-extension
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
help wanted
help wanted
help wanted
help wanted
help wanted
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
integration request
integration request
integration request
integration request
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
low-priority
low-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
provider:anthropic
provider:anthropic
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:gemini-cli
provider:openai
provider:perplexity
question
question
question
question
question
question
question
question
question
question
question
question
question
question
refactor
refactor
wontfix
wontfix
wontfix
wontfix
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/claude-task-master#967
No description provided.