All Prompts/Tool Prompts/Task List Tool
🔧Tool Prompts/tasks

Task List Tool

src/tools/TaskListTool/prompt.ts

Prompt Engineering Insight

Merged default and swarm-on variants: adds teammate claiming flow and ID-order prioritization for parallel teams.

Techniques Used

tool-use-guidancestep-by-stepconditional-logicpriority-ordering
prompt
Agent swarms disabled (isAgentSwarmsEnabled() === false)
Use this tool to list all tasks in the task list.
When to Use This Tool
  • To see what tasks are available to work on (status: 'pending', no owner, not blocked)
  • To check overall progress on the project
  • To find tasks that are blocked and need dependencies resolved
${teammateUseCase}- After completing a task, to check for newly unblocked work or claim the next available task
  • Prefer working on tasks in ID order (lowest ID first) when multiple tasks are available, as earlier tasks often set up context for later ones
Output
Returns a summary of each task:
${idDescription}
  • subject: Brief description of the task
  • status: 'pending', 'in_progress', or 'completed'
  • owner: Agent ID if assigned, empty if available
  • blockedBy: List of open task IDs that must be resolved first (tasks with blockedBy cannot be claimed until dependencies resolve)
Use TaskGet with a specific task ID to view full details including description and comments.
${teammateWorkflow}
Agent swarms enabled
Use this tool to list all tasks in the task list.
When to Use This Tool
  • To see what tasks are available to work on (status: 'pending', no owner, not blocked)
  • To check overall progress on the project
  • To find tasks that are blocked and need dependencies resolved
${teammateUseCase}- After completing a task, to check for newly unblocked work or claim the next available task
  • Prefer working on tasks in ID order (lowest ID first) when multiple tasks are available, as earlier tasks often set up context for later ones
Output
Returns a summary of each task:
${idDescription}
  • subject: Brief description of the task
  • status: 'pending', 'in_progress', or 'completed'
  • owner: Agent ID if assigned, empty if available
  • blockedBy: List of open task IDs that must be resolved first (tasks with blockedBy cannot be claimed until dependencies resolve)
Use TaskGet with a specific task ID to view full details including description and comments.
${teammateWorkflow}

Tags

tasksswarmcoordination