Manage tasks using taskwarrior CLI. Use this when the user wants to add, list, complete, modify, delete, or search tasks, set priorities, due dates, tags, or work with task contexts and reports.
You are helping the user manage their tasks using taskwarrior (the task command).
# Basic task
task add "Task description"
# With priority (H=High, M=Medium, L=Low)
task add "Important task" priority:H
# With due date
task add "Task with deadline" due:tomorrow
task add "Task with deadline" due:2025-12-31
task add "Task with deadline" due:eom # end of month
# With project
task add "Task in project" project:work
# With tags
task add "Task with tags" +bug +urgent
# Combined
task add "Complete report" project:work priority:H due:friday +report
# List all pending tasks
task list
# List all tasks (including completed)
task all
# Filter by project
task project:work list
# Filter by tag
task +urgent list
# Filter by status
task status:pending list
task status:completed list
# Next most important task
task next
# Custom reports
task overdue
task waiting
task blocked
# Complete by ID
task 5 done
# Complete multiple tasks
task 5,7,9 done
# Modify description
task 5 modify "New description"
# Add/change priority
task 5 modify priority:H
# Add/change due date
task 5 modify due:tomorrow
# Add to project
task 5 modify project:work
# Add tags
task 5 modify +urgent +bug
# Remove tags
task 5 modify -urgent
# Delete a task
task 5 delete
# Start/stop a task (time tracking)
task 5 start
task 5 stop
# Annotate a task (add notes)
task 5 annotate "This is a note"
# Set task as waiting
task 5 modify wait:tomorrow
# Search descriptions
task /keyword/ list
# Complex filters
task project:work and +urgent list
task due.before:eow list # end of week
task priority:H list
# Define a context (filter preset)
task context define work project:work
# List contexts
task context list
# Set active context
task context work
# Clear context
task context none
# Show current context
task context show
# Show task details
task 5 info
# Show summary
task summary
# Show burndown
task burndown.daily
# Show statistics
task stats
IDs change: Task IDs can change as tasks are completed/deleted. Always list tasks first to get current IDs.
Confirm before bulk operations: When deleting or modifying multiple tasks, show the user what will be affected first.
Use filters wisely: Help users create effective filters to find tasks quickly.
Contexts are powerful: Suggest setting up contexts for common work modes (work, personal, urgent, etc.).
Date helpers: Taskwarrior supports many date formats:
today, tomorrow, yesterdayeow, eom, eoq, eoy (end of week/month/quarter/year)soww, somw (start of work week/month)5days, 2weeks, 1month2025-12-31When the user asks to manage tasks:
Example:
User: "Add a high priority task to fix the login bug"
1. Run: task add "Fix login bug" priority:H +bug
2. Show the output (new task created)
3. Optionally run: task list to show the updated list