Skip to content

aleksanderem/taskmaster-workspaces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

TaskMaster Workspaces ๐Ÿš€

Buy Me A Coffee

A workspace management system for Claude Task Master, enabling isolated task contexts for different features, projects, or workflows.

Features โœจ

  • ๐Ÿ—‚๏ธ Multiple Workspaces - Create isolated task environments for different features or projects
  • ๐Ÿ”„ Easy Switching - Quick context switching between workspaces
  • ๐Ÿ“Š Task Statistics - Track progress per workspace
  • ๐Ÿ—ƒ๏ธ Archive System - Safely delete workspaces with automatic archiving
  • ๐ŸŽฏ Full TaskMaster Integration - Works seamlessly with all TaskMaster MCP tools
  • ๐Ÿ’ป Interactive CLI - User-friendly menu and command-line interface

Prerequisites ๐Ÿ“‹

  1. Node.js (v16 or higher)
  2. Claude Task Master initialized in your project:
    npx task-master-ai init

Installation ๐Ÿ› ๏ธ

  1. Clone this repository or download the files:

    git clone https://github.com/aleksanderem/taskmaster-workspaces.git
    cd taskmaster-workspaces
  2. Run the installation script:

    ./install.sh

    Or manually:

    chmod +x tm-workspace taskmaster-workspace.cjs tmw.cjs
    # Optionally add to your PATH or create an alias
    echo 'alias tm="/path/to/taskmaster-workspaces/tm-workspace"' >> ~/.zshrc

Usage ๐ŸŽฎ

Interactive Menu

./tm-workspace
# or with alias
tm

Quick Commands

# Show current workspace and task count
./tm-workspace current

# List all workspaces
./tm-workspace list

# Create new workspace
./tm-workspace create feature-auth "Authentication system"

# Switch workspace
./tm-workspace switch feature-auth

# Show tasks in current workspace
./tm-workspace tasks

# Get next task
./tm-workspace next

Integration with TaskMaster MCP

After switching workspaces, all TaskMaster MCP commands automatically use the active workspace:

# Switch to a workspace
./tm-workspace switch feature-payments

# All MCP commands now use this workspace
mcp__taskmaster-ai__add_task prompt="Implement Stripe integration" projectRoot="/your/project"
mcp__taskmaster-ai__get_tasks projectRoot="/your/project"
mcp__taskmaster-ai__next_task projectRoot="/your/project"

Workspace Structure ๐Ÿ“

.taskmaster/
โ”œโ”€โ”€ workspaces/
โ”‚   โ”œโ”€โ”€ default/
โ”‚   โ”‚   โ”œโ”€โ”€ tasks.json      # Tasks for default workspace
โ”‚   โ”‚   โ”œโ”€โ”€ metadata.json   # Workspace metadata
โ”‚   โ”‚   โ””โ”€โ”€ reports/        # Complexity reports
โ”‚   โ”œโ”€โ”€ feature-auth/
โ”‚   โ”‚   โ”œโ”€โ”€ tasks.json
โ”‚   โ”‚   โ”œโ”€โ”€ metadata.json
โ”‚   โ”‚   โ””โ”€โ”€ reports/
โ”‚   โ””โ”€โ”€ [your-workspace]/
โ”œโ”€โ”€ tasks/
โ”‚   โ””โ”€โ”€ tasks.json          # Active workspace (auto-managed)
โ”œโ”€โ”€ config.json             # TaskMaster config + workspace info
โ””โ”€โ”€ archive/                # Deleted workspaces

Examples ๐Ÿ’ก

Feature Development Workflow

# Create workspace for new feature
./tm-workspace create feature-notifications "Push notification system"

# Switch to it
./tm-workspace switch feature-notifications

# Parse PRD specific to this feature
mcp__taskmaster-ai__parse_prd input="notifications-prd.txt" projectRoot="/your/project"

# Work on tasks
./tm-workspace tasks
./tm-workspace next

Bug Fixing Workflow

# Create dedicated bugfix workspace
./tm-workspace create bugfix-sprint-23 "Sprint 23 bug fixes"
./tm-workspace switch bugfix-sprint-23

# Add bugs to fix
mcp__taskmaster-ai__add_task prompt="Fix login timeout issue #234" projectRoot="/your/project"
mcp__taskmaster-ai__add_task prompt="Resolve payment calculation bug #235" projectRoot="/your/project"

# Track progress
./tm-workspace current

Context Switching

# Working on feature
./tm-workspace current
# > ๐Ÿ“ Current workspace: feature-notifications
# > Tasks: 12 (3 in-progress, 2 done, 7 pending)

# Urgent bugfix needed!
./tm-workspace switch bugfix-critical
./tm-workspace next

# Back to feature work
./tm-workspace switch feature-notifications

Commands Reference ๐Ÿ“–

Command Description
tm-workspace Launch interactive menu
tm-workspace current Show current workspace info
tm-workspace list List all workspaces
tm-workspace create <name> [desc] Create new workspace
tm-workspace switch <name> Switch to workspace
tm-workspace delete <name> Delete (archive) workspace
tm-workspace tasks Show tasks in current workspace
tm-workspace next Get next task to work on
tm-workspace menu Force interactive menu

Configuration โš™๏ธ

Workspaces are stored in .taskmaster/workspaces/ in your project. The system automatically:

  • Migrates existing tasks to a default workspace on first run
  • Updates .taskmaster/config.json with workspace information
  • Maintains backward compatibility with TaskMaster

Tips & Best Practices ๐Ÿ’ก

  1. Naming Convention:

    • Features: feature-<name>
    • Bugfixes: bugfix-<issue-number> or bugfix-<sprint>
    • Experiments: exp-<name>
    • Releases: release-<version>
  2. Temporary Workspaces:

    ./tm-workspace create temp-investigation "Quick investigation"
    # ... work ...
    ./tm-workspace delete temp-investigation  # Auto-archived
  3. Regular Cleanup:

    • Review and delete completed feature workspaces
    • Archives are kept in .taskmaster/archive/

Troubleshooting ๐Ÿ”ง

"TaskMaster not initialized"

  • Run npx task-master-ai init in your project root

"Workspace already exists"

  • Choose a different name or delete the existing one

Changes not reflected after switch

  • Ensure .taskmaster/tasks/tasks.json was updated
  • Try running ./tm-workspace current to verify

Can't add tasks via CLI

  • Use TaskMaster MCP tools directly: mcp__taskmaster-ai__add_task
  • The CLI add command has known formatting issues with some shells

Contributing ๐Ÿค

Contributions are welcome! Please feel free to submit a Pull Request.

Author ๐Ÿ‘จโ€๐Ÿ’ป

Alex M.
GitHub: @aleksanderem

Support the Project โ˜•

If you find this tool useful, consider buying me a coffee!

Buy Me A Coffee

License ๐Ÿ“„

MIT License - feel free to use in your projects!

Acknowledgments ๐Ÿ™

Built by Alex M. to enhance Claude Task Master with workspace management capabilities.

About

A workspace management system for Claude Task Master, enabling isolated task contexts for different features, projects, or workflows.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors