Skip to content

Task 104: Implement 'scope-up' and 'scope-down' CLI Commands for Dynamic Task Complexity Adjustment#1069

Merged
Crunchyman-ralph merged 3 commits into
nextfrom
task-104
Aug 2, 2025
Merged

Task 104: Implement 'scope-up' and 'scope-down' CLI Commands for Dynamic Task Complexity Adjustment#1069
Crunchyman-ralph merged 3 commits into
nextfrom
task-104

Conversation

@eyaltoledano

@eyaltoledano eyaltoledano commented Aug 2, 2025

Copy link
Copy Markdown
Owner

Task Overview

Implementation of scope-up and scope-down CLI commands for dynamic task complexity adjustment with strength levels, custom prompts, and MCP integration.

Subtasks Completed

  • 104.1: Extended CLI with scope-up and scope-down commands
  • 104.2: Implemented task/subtask retrieval and context gathering
  • 104.3: Developed core complexity adjustment logic
  • 104.4: Implemented task update and persistence logic
  • 104.5: Integrated with MCP tool and added comprehensive error handling

Implementation Details

  • Full CLI command integration with strength parameters (light/regular/heavy)
  • MCP tool equivalents for integrated environments like Cursor
  • Comprehensive test coverage using TDD methodology
  • AI-powered complexity adjustment with context awareness
  • Robust error handling and validation
  • Added new CLI commands: task-master scope-up and task-master scope-down
  • Support for comma-separated task/subtask IDs
  • Custom prompt functionality for targeted adjustments
  • Three strength levels: light, regular, heavy

Testing

  • Unit tests added with full TDD coverage
  • Integration tests for CLI and MCP interfaces
  • Manual testing completed across different scenarios
  • All existing tests still passing

Breaking Changes

None - purely additive functionality.

Related Tasks

Completes Task 104 and enables dynamic task complexity management workflows.

Files Added/Modified

  • New MCP Tools: scope-up.js, scope-down.js
  • New Core Logic: scope-adjustment.js
  • CLI Integration: Updated commands.js and task-manager.js
  • Test Coverage: scope-adjustment.test.js
  • Documentation: test_workflow.mdc

Usage Examples

# Scope up a single task with regular strength
task-master scope-up --id=5

# Scope down multiple tasks with light strength
task-master scope-down --id=10,11,12 --strength=light

# Custom scoping with specific instructions
task-master scope-up --id=7 --prompt="Focus on adding more error handling and edge cases"

Summary by CodeRabbit

  • New Features

    • Introduced "Scope Up" and "Scope Down" actions in the UI and CLI, allowing users to dynamically increase or decrease task complexity with adjustable strength and optional custom prompts.
    • Added support for batch complexity adjustment on multiple tasks simultaneously.
    • Provided new documentation and usage examples for complexity adjustment commands.
    • Integrated complexity adjustment tools into MCP environments and the extension interface.
  • Bug Fixes

    • Improved task template importing and tag preservation.
  • Documentation

    • Added comprehensive guides on testing workflows and complexity adjustment features.
  • Tests

    • Added unit tests for task complexity adjustment logic.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants