Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

RajaRakoto/taskmaster-cli

Open more actions menu

Repository files navigation

taskmaster-cli 🧩

forthebadge forthebadge forthebadge forthebadge forthebadge

Git GitHub

TaskMaster CLI is an interactive command-line interface for managing complex projects with TaskMaster AI. It wraps task-master-ai core commands with an intuitive menu-driven interface, supporting task generation from PRDs, hierarchical task decomposition, cross-tag organization, AI research, dependency management, and multi-provider AI orchestration.

TaskMaster AI is an advanced AI agent orchestrator that maintains long-term context across large-scale projects, automates PRD creation and task breakdown, and supports multiple AI providers (Anthropic, OpenAI, Google, Groq, xAI, OpenRouter, Mistral, Azure, Ollama) with multi-role configuration (main, research, fallback).


πŸš€ Getting Started

Prerequisites

  • Node.js 18+ or Bun 1.0+
  • TaskMaster AI Core v0.43.1+ (installed via CLI setup or manually)
  • API keys for at least one AI provider (see Configuration)

Installation

npm install -g @raja-rakoto/taskmaster-cli
# or
bun install -g @raja-rakoto/taskmaster-cli

Configuration

Create a .env file in your project root with API keys for your chosen providers:

# Anthropic (Claude models)
ANTHROPIC_API_KEY=sk-ant-...

# OpenAI (GPT models)
OPENAI_API_KEY=sk-...

# Google (Gemini models)
GOOGLE_API_KEY=...

# Groq (Llama models - free tier available)
GROQ_API_KEY=gsk_...

# xAI (Grok models)
XAI_API_KEY=...

# OpenRouter (multi-model aggregator)
OPENROUTER_API_KEY=sk-or-...

# Mistral
MISTRAL_API_KEY=...

# Azure OpenAI
AZURE_OPENAI_API_KEY=...
AZURE_OPENAI_ENDPOINT=https://...

# Ollama (local models, no key needed)
OLLAMA_BASE_URL=http://localhost:11434

# Claude Code (local, no key needed)
# Uses local Claude Code installation

# Task Master Tools Mode (optional)
TASK_MASTER_TOOLS=all

TASK_MASTER_TOOLS modes:

  • all - All available tools (default)
  • standard - Core + research + tags
  • core - Basic CRUD operations only

Supported Providers:

  • anthropic - Claude Haiku, Sonnet, Opus
  • openai - GPT-4, GPT-4 Turbo, GPT-3.5
  • google - Gemini Pro, Gemini 1.5
  • groq - Llama 3.3 70B, Llama 3.1 8B, DeepSeek R1
  • xai - Grok models
  • openrouter - 200+ models via aggregator
  • mistral - Mistral Small, Medium, Large
  • azure - Azure OpenAI deployment
  • ollama - Local models (Llama, Mistral, etc.)
  • claude-code - Local Claude Code (no API key)
  • claude-codex - Claude Codex (no API key)

Workflow

  1. Initialize - Set up project, configure AI models, select language
  2. Generate - Parse PRD and auto-generate tasks with AI
  3. Manage - CRUD operations, show multiple tasks, manage statuses
  4. Organize - Create tags, move tasks across tags, manage workstreams
  5. Research - Execute AI research queries with optional project context
  6. Dependencies - Add, validate, and manage task dependencies
  7. Analyze - Generate complexity reports and documentation
  8. Backup - Save/restore project state across slots

Command Tree

TaskMaster CLI
β”œβ”€β”€ 1. Initialize & Configuration
β”‚   β”œβ”€β”€ Install/Upgrade TaskMaster AI
β”‚   β”œβ”€β”€ Initialize project
β”‚   β”œβ”€β”€ Configure AI models (interactive)
β”‚   β”œβ”€β”€ Configure AI models (quick)
β”‚   β”œβ”€β”€ Set response language
β”‚   └── Add editor rules
β”‚
β”œβ”€β”€ 2. Generate & Decompose
β”‚   β”œβ”€β”€ Generate tasks from PRD (AI)
β”‚   β”œβ”€β”€ Generate task files
β”‚   └── Decompose all tasks (AI)
β”‚
β”œβ”€β”€ 3. Manage Tasks (CRUD)
β”‚   β”œβ”€β”€ List & Navigate
β”‚   β”‚   β”œβ”€β”€ List tasks
β”‚   β”‚   β”œβ”€β”€ Show task details
β”‚   β”‚   β”œβ”€β”€ Show next task
β”‚   β”‚   └── Show multiple tasks (comma-separated IDs)
β”‚   β”‚
β”‚   β”œβ”€β”€ Add Tasks
β”‚   β”‚   β”œβ”€β”€ Add task (AI)
β”‚   β”‚   β”œβ”€β”€ Add tasks from PRD (AI)
β”‚   β”‚   β”œβ”€β”€ Add subtask (AI)
β”‚   β”‚   └── Add subtask (manual)
β”‚   β”‚
β”‚   β”œβ”€β”€ Update Tasks
β”‚   β”‚   β”œβ”€β”€ Update task (AI)
β”‚   β”‚   β”œβ”€β”€ Update multiple tasks (AI)
β”‚   β”‚   β”œβ”€β”€ Update subtask (AI)
β”‚   β”‚   β”œβ”€β”€ Update task/subtask status
β”‚   β”‚   β”œβ”€β”€ Convert task to subtask
β”‚   β”‚   └── Convert subtask to task
β”‚   β”‚
β”‚   └── Delete Tasks
β”‚       β”œβ”€β”€ Delete task (with subtasks)
β”‚       β”œβ”€β”€ Delete subtask
β”‚       β”œβ”€β”€ Delete all subtasks from task
β”‚       β”œβ”€β”€ Delete all dependencies (safe)
β”‚       └── Delete all dependencies (unsafe)
β”‚
β”œβ”€β”€ 4. Dependencies
β”‚   β”œβ”€β”€ Add dependency
β”‚   β”œβ”€β”€ Validate dependencies
β”‚   └── Fix dependencies
β”‚
β”œβ”€β”€ 5. Tags & Workstreams
β”‚   β”œβ”€β”€ List tags
β”‚   β”œβ”€β”€ Add tag
β”‚   β”œβ”€β”€ Use tag (switch context)
β”‚   β”œβ”€β”€ Rename tag
β”‚   β”œβ”€β”€ Copy tag
β”‚   β”œβ”€β”€ Remove tag
β”‚   └── Move task(s) to another tag
β”‚       β”œβ”€β”€ --from-tag (source tag)
β”‚       β”œβ”€β”€ --to-tag (destination tag)
β”‚       β”œβ”€β”€ --with-dependencies (move related tasks)
β”‚       └── --ignore-dependencies (skip validation)
β”‚
β”œβ”€β”€ 6. Research
β”‚   β”œβ”€β”€ Enter research query
β”‚   β”œβ”€β”€ Add optional context
β”‚   └── Include project file tree
β”‚
β”œβ”€β”€ 7. Analysis & Reports
β”‚   β”œβ”€β”€ Analyze task complexity
β”‚   β”œβ”€β”€ Show complexity report
β”‚   └── Sync tasks with README.md
β”‚
β”œβ”€β”€ 8. Backup & Restore
β”‚   β”œβ”€β”€ Backup tasks (slot 1-3)
β”‚   β”œβ”€β”€ Restore tasks (slot 1-3)
β”‚   β”œβ”€β”€ Clear all dependencies
β”‚   β”œβ”€β”€ Clear all subtasks
β”‚   └── Clear all tasks + files
β”‚
└── 9. Exit

πŸ—ΊοΈ Roadmap

  • Automatic dependency regeneration
  • Enhanced tag filtering and search
  • Task templates and reusable workflows

❀️ Contributing

Contributions welcome! Report issues, suggest features, or submit PRs to improve TaskMaster CLI or TaskMaster AI Core.

Development

Scripts

Core

  • bun run build - Compile TypeScript
  • bun run start - Run CLI
  • bun run dev - Development mode with watch
  • bun run test - Run test suite
  • bun run type-check - TypeScript type checking

Code Quality

  • bun run biome:check - Check formatting/linting
  • bun run biome:fix - Auto-fix formatting/linting
  • bun run biome:unsafe - Apply risky fixes

Maintenance

  • bun run clean - Remove build artifacts
  • bun run pkg-check - Check for unused dependencies
  • bun run pkg-upgrade - Upgrade dependencies (interactive)

Project Structure

src/
β”œβ”€β”€ core/              # Business logic
β”‚   β”œβ”€β”€ TaskMaster.ts  # Main task management
β”‚   β”œβ”€β”€ exec.ts        # Command handlers
β”‚   └── asks.ts        # Interactive prompts
β”œβ”€β”€ constants/         # Configuration
β”œβ”€β”€ utils/             # Utilities
β”œβ”€β”€ prompt.ts          # Menu definitions
β”œβ”€β”€ @types/            # Type definitions
└── index.ts           # Entry point

Testing

Tests colocate with source files using .test.ts suffix:

bun run test           # Run all tests
bun run test --watch   # Watch mode

Build Target

Targets Node.js with shebang #!/usr/bin/env node for maximum compatibility. Install via npm, pnpm, or bun:

npm install -g @raja-rakoto/taskmaster-cli
pnpm install -g @raja-rakoto/taskmaster-cli
bun install -g @raja-rakoto/taskmaster-cli

Note for local registry testing: Clear Bun cache to avoid version conflicts:

rm -rf ~/.bun/_bun ~/.bun/install/cache/

About

Interactive CLI for Taskmaster AI: simplifies complex project management by orchestrating AI agents, planning, and execution β€” all from your terminal 🧩

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.