- Add missing --tag flags to commands that were implemented but not documented - Add missing --file flags to tag management commands - Add --bedrock flag to models command documentation - Synchronize CLI documentation with actual implementation in commands.js - Enhance dev_workflow.mdc with comprehensive tagged task lists guidance - Add patterns for when to introduce tags (git branching, team collaboration, experiments) - Consolidate and refine changesets for upcoming release
6.8 KiB
task-master-ai
| task-master-ai |
|---|
| minor |
Introduces Tagged Lists: AI Multi-Context Task Management System
This major feature release introduces Tagged Lists, a comprehensive system that transforms Taskmaster into a multi-context task management powerhouse. You can now organize tasks into completely isolated contexts, enabling parallel (agentic) development workflows, team collaboration, and project experimentation without conflicts.
🏷️ Tagged Task Lists Architecture:
The new tagged system fundamentally improves how tasks are organized:
- Legacy Format:
{ "tasks": [...] } - New Tagged Format:
{ "master": { "tasks": [...], "metadata": {...} }, "feature-xyz": { "tasks": [...], "metadata": {...} } } - Automatic Migration: Existing projects will seamlessly migrate to tagged format with zero user intervention
- State Management: New
.taskmaster/state.jsontracks current tag, last switched time, migration status and more. - Configuration Integration: Enhanced
.taskmaster/config.jsonwith tag-specific settings and defaults.
By default, your existing task list will be migrated to the master tag.
🚀 Complete Tag Management Suite:
Core Tag Commands:
task-master tags [--show-metadata]- List all tags with task counts, completion stats, and metadatatask-master add-tag <name> [options]- Create new tag contexts with optional task copyingtask-master delete-tag <name> [--yes]- Delete tags (and attached tasks) with double confirmation protectiontask-master use-tag <name>- Switch contexts and immediately see next available tasktask-master rename-tag <old> <new>- Rename tags with automatic current tag reference updatestask-master copy-tag <source> <target> [options]- Duplicate tag contexts for experimentation
🤖 Full MCP Integration for Tag Management:
Task Master's multi-context capabilities are now fully exposed through the MCP server, enabling powerful agentic workflows:
list_tags: List all available tag contexts.add_tag: Programmatically create new tags.delete_tag: Remove tag contexts.use_tag: Switch the agent's active task context.rename_tag: Rename existing tags.copy_tag: Duplicate entire task contexts for experimentation.
Tag Creation Options:
--copy-from-current- Copy tasks from currently active tag--copy-from=<tag>- Copy tasks from specific tag--from-branch- Creates a new tag using the active git branch name (foradd-tagonly)--description="<text>"- Add custom tag descriptions- Empty tag creation for fresh contexts
🎯 Universal --tag Flag Support:
Every task operation now supports tag-specific execution:
task-master list --tag=feature-branch- View tasks in specific contexttask-master add-task --tag=experiment --prompt="..."- Create tasks in specific tagtask-master parse-prd document.txt --tag=v2-redesign- Parse PRDs into dedicated contextstask-master analyze-complexity --tag=performance-work- Generate tag-specific reportstask-master set-status --tag=hotfix --id=5 --status=done- Update tasks in specific contextstask-master expand --tag=research --id=3- Break down tasks within tag contexts
This way you or your agent can store out of context tasks into the appropriate tags for later, allowing you to maintain a groomed and scoped master list. Focus on value, not chores.
📊 Enhanced Workflow Features:
Smart Context Switching:
use-tagcommand shows immediate next task after switching- Automatic tag creation when targeting non-existent tags
- Current tag persistence across terminal sessions
- Branch-tag mapping for future Git integration
Intelligent File Management:
- Tag-specific complexity reports:
task-complexity-report_tagname.json - Master tag uses default filenames:
task-complexity-report.json - Automatic file isolation prevents cross-tag contamination
Advanced Confirmation Logic:
- Commands only prompt when target tag has existing tasks
- Empty tags allow immediate operations without confirmation
- Smart append vs overwrite detection
🔄 Seamless Migration & Compatibility:
Zero-Disruption Migration:
- Existing
tasks.jsonfiles automatically migrate on first command - Master tag receives proper metadata (creation date, description)
- Migration notice shown once with helpful explanation
- All existing commands work identically to before
State Management:
.taskmaster/state.jsontracks current tag and migration status- Automatic state creation and maintenance
- Branch-tag mapping foundation for Git integration
- Migration notice tracking to avoid repeated notifications
- Grounds for future context additions
Backward Compatibility:
- All existing workflows continue unchanged
- Legacy commands work exactly as before
- Gradual adoption - users can ignore tags entirely if desired
- No breaking changes to existing tasks or file formats
💡 Real-World Use Cases:
Team Collaboration:
task-master add-tag alice --copy-from-current- Create teammate-specific contextstask-master add-tag bob --copy-from=master- Onboard new team memberstask-master use-tag alice- Switch to teammate's work context
Feature Development:
task-master parse-prd feature-spec.txt --tag=user-auth- Dedicated feature planningtask-master add-tag experiment --copy-from=user-auth- Safe experimentationtask-master analyze-complexity --tag=user-auth- Feature-specific analysis
Release Management:
task-master add-tag v2.0 --description="Next major release"- Version-specific planningtask-master copy-tag master v2.1- Release branch preparationtask-master use-tag hotfix- Emergency fix context
Project Phases:
task-master add-tag research --description="Discovery phase"- Research taskstask-master add-tag implementation --copy-from=research- Development phasetask-master add-tag testing --copy-from=implementation- QA phase
🛠️ Technical Implementation:
Data Structure:
- Tagged format with complete isolation between contexts
- Rich metadata per tag (creation date, description, update tracking)
- Automatic metadata enhancement for existing tags
- Clean separation of tag data and internal state
Performance Optimizations:
- Dynamic task counting without stored counters
- Efficient tag resolution and caching
- Minimal file I/O with smart data loading
- Responsive table layouts adapting to terminal width
Error Handling:
- Comprehensive validation for tag names (alphanumeric, hyphens, underscores)
- Reserved name protection (master, main, default)
- Graceful handling of missing tags and corrupted data
- Detailed error messages with suggested corrections
This release establishes the foundation for advanced multi-context workflows while maintaining the simplicity and power that makes Task Master effective for individual developers.